Scrollpane stopps working when loaded in swf

Hi,
Hoping someone can help with this issue. I have a nice
scrollpane with easing that works fine when on its own, but when
loaded into another swf the scroll action stops working.
I have tried the _lockroot action on the swf to be loaded but
that seems to stop it working also.
This is the code:
txt.setMask(mask);
scrollbar.onMouseDown = function() {
if (this.hitTest(_root._xmouse, _root._ymouse) &&
txt._height>mask._height) {
this.startDrag(false, scrollbarBG._x, scrollbarBG._y,
scrollbarBG._x, scrollbarBG._height-this._height)
txt.onEnterFrame = scrollThumbs;
dragging = true
scrollbar.onMouseUp = function() {
stopDrag()
dragging = false
delete this.onEnterFrame;
function scrollThumbs() {
var funkyVar =
-this._parent.scrollbar._y*(((this._height-this._parent.scrollbar._height)/(this._parent. scrollbarBG._height-this._parent.scrollbar._height))-1)
this.Y = (funkyVar-this._y)*.2;
this._y += this.Y;
if(Math.abs(funkyVar-this._y)<1 && !dragging){
delete this.onEnterFrame
Help is appreciated, this is driving me mad!!
Cheers,
Pat

You should not nest named functions... a source of problems waiting to happen.  You should go into your Publish settings and select the Permit Debugging option in the Flash section.  That could provide more specific information regarding the source of the error, such as a line number.  I haven't read thru your code beyond a glance, but where you are using e.target in mouse event handler functions, you should try using e.currentTarget instead.

Similar Messages

  • Captivate 6:  Can't get any JavaScript to work when published as SWF

    Version 6.0.1.240
    Windows 7 x64
    I have a button with an action of "Execute JavaScript" and can't event get a simple alert("hello"); to work when published as SWF.  I've tried publishing it with each of the different Flash Player versions.  JavaScript works fine when published as HTML5.

    @Erickj:  Either do what Rod stated (adjusting your Flash Security settings) or test your content from a true web server.  Flash automatically trusts content coming off a true web server where the web address begins with http or https and ends in .htm or .html. 
    The nice thing about Cp 7 is that it has a built-in web server so you don't run into issues like this when testing your content.

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • Component Slider not working when loaded from another swf file

    I have a simple Flash application that uses a component Slider to increase or decrease the size of the text in a TextArea (ta). It works perfectly fine on its own, however, when I try to load the same swf file from another application, I get the following error...
    ReferenceError: Error #1069: Property fl.managers:IFocusManager::form not found
    on fl.managers.FocusManager and there is no default value.
    at fl.controls::Slider/thumbPressHandler()
    Code...
    import fl.events.*;
    import flash.text.TextFormat;
    ta.text = "Lorem ipsum dolor sit amet";
    var tf:TextFormat = new TextFormat();
    tf.color = 0xCCCCCC;
    tf.font = "Trebuchet MS";
    tf.size = 12;
    slider.addEventListener(SliderEvent.THUMB_DRAG, sliderChange);
    style();
    function style():void
        ta.setStyle("textFormat", tf);
    function sliderChange(e:SliderEvent):void
        tf.size = slider.value;
        ta.setStyle("textFormat", tf);
    Could the containing swf file that I'm loading the slider swf file in anyway effect the slider application? I don't quite understand why it works on its own, but not when loaded from another app.

    add a slider component to the main (loading) swf's library.

  • "stop" inside AS 2 Frame doesn't work when loaded inside AS 3 swf

    Hi
    Please help!!!!!!
    I have a flash code where i am loading an AS 2 SWF inside AS 3. The thing is if i put the AS 2 SWF on same domain its working fine but if i put AS 2 SWF on different domain it loads the SWF properly but the "stop()" written inside the AS 2 frame doesnt work... and it keeps on playing all the frames continuously...
    Here is the loading code..
    var context:LoaderContext = new LoaderContext();
    if(Security.sandboxType == Security.REMOTE)
    { context.securityDomain = SecurityDomain.currentDomain };
    var objLoader:Loader = new Loader();
    var mRequest:URLRequest = new URLRequest("SomeURL.swf");
    objLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, onSWFLoadComplete);
    objLoader.load(mRequest, context);
    function onSWFLoadComplete(e:Event):void
    var oLoaderInfo:LoaderInfo = LoaderInfo(e.target);
    var mcChild = oLoaderInfo.content;
    mcChild.addEventListener(MouseEvent.ROLL_OVER, onMouseOverLoader);
    mcChild.addEventListener(MouseEvent.CLICK, onMouseClickLoader);
    addChild(mcChild);
    Have tried
    System.security.allowDomain ("*");
    Thanks for the help

    Hi,
    Actualy the "stop();" will only work when you don't use external as3 file, instead shift all your file code into frame code and remove the class name.
    this is the only way i found out while developing the application.
    What i think is there must be some class which we have to include to use the "stop" in the main scene fram.

  • Preserve frame rate when loading one swf into another

    Is there a way to preserve the frame rate of a swf when
    loading it into another swf that plays at a higher frame rate. I'm
    loading some flash ads that mostly run at around 12-15 frames a
    second into a portfolio site that runs at around 40 frames per
    second. All my ads play too fast. The link is:
    www.dg8tal.com/portfolioidea.html
    Thanks!

    As far as I understand it, there is no option to override the
    frame rate designated by the main movie you are loading into. The
    SWF file you are loading always inherits the framerate of the SWF
    you are loading it into. Here are some suggested work-arounds that
    might help:
    1) Lower the frame rate of the main movie on the website that
    you are loading into.
    2) Expand the timelines of the advertisements just for use in
    your portfolio
    3) Put your menu and thumbnails in one HTML frame that can
    then load each item in another HTML frame above it. Since each SWF
    would load on its own, the framerate of your main swf would not
    matter. You would lose your nice resizing effect though unless you
    did some more complicated integration with javascript I imagine.
    I would recommend going with option 2, since that will take
    the smallest amount of work while preserving your overall design.
    However, with the faster framerate, your advertisements would have
    difference performance characteristics that you'll need to assess.
    I'm trying to think of more options, but these seem to be the
    first things that come to mind.

  • Error 2044 when loading external swf into my site

    Ok what i have is a site made from 1 flash file where i am loading external swf files for my picture galleries. now what is happening is in Flash, dreamweaver and when i test the site, everything is working perfectly, the problem is coming when i go into internet explorer go to the site and click on the flash button to go to the picture gallery, that is when it is giving me a Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
    does anyone know why this is happening and a possible way to fix it? thanks

    See if the following link helps at all...
    http://www.gotoandlearnforum.com/viewtopic.php?f=29&t=20453

  • Crash to desktop when loading embedded swf

    I have a swf that loads two other embedded swfs. The need for an air native extension came up so I've wrapped this swf inside of an AIR app. I install my app as a native installer. (on Windows 7)
    My app has a main menu screen and two buttons that will load two separate swfs to do their own menus and actions.
    Everything has worked great, until I tried to install the AIR app on a computer without internet. I ran the air redistributable, then installed my app. The main menu runs fine, and the main swf can load one of the embedded swfs, but when it tries to load the second embedded swf it crashes to desktop. No warnings, no errors, I just see desktop after clicking a button.
    Here is how I'm loading the offending swf:
    Inside MM_DocumentClass.as
    [Embed(source="../../ContentViewer/bin/ContentViewer.swf")]
            public var CViewSwfClass:Class;
            public var CViewMC:MovieClip;
    Inside MMState_MainMenu.as
         //Load the CView.swf, and add the listener for when it's done loading.
            public function CView_BtnClick(e:Event)
                Globals.stage.removeEventListener(KeyboardEvent.KEY_DOWN, Globals.keyPressHandler);
                menuMC.removeEventListener("Animation_Complete", CView_BtnClick);
                trace(this + "******************************************************");
                trace(this + "Loading ContentView.swf");
                mStateManager.Container.CViewMC = new mStateManager.Container.CViewSwfClass();
                mStateManager.Container.CViewMC.addEventListener(Event.COMPLETE, onCviewLoad);
                mStateManager.ChangeState(new MMState_Empty());
            //Called when CView.swf is done loading
            private function onCviewLoad(e:Event)
                trace(this + "Cview Loaded");
                mStateManager.Container.addChild(mStateManager.Container.CViewMC);
    I load the other swf in the exact same way.
    This problem can be fixed by connecting the computer to internet and trying to run the same actions. The program will pause for a second, during this time I see a visible loading icon in the middle of the screen, then it successfully loads the swf and everything works fine.
    My problem is that I can't guarantee our clients will have internet at all, so I need a solution to install AIR without internet and include whatever it is that my app needs to run.
    Any ideas? 'Cause this one's had me stumped for quite awhile.

    Does this happen whith every subVI or just on particular one? Also, what version of LV and OS?
    Lynn

  • Strange LayoutManager error when loading external swf

    The swf loads and I get no popup errors in the browser.  But in debug mode my FlexBuilder console reads:
    [SWF] C:\~projects\source\flexbuilder\tests\dyvetntive_moderator_test\bin-debug\assets\swf\pres entation.swf - 1,592,516 bytes after decompression
    undefined
        at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:668]
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
        at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]
    Loading other swf's produces the same result.
    What is that?

    Turns out it's probably a bug:
    http://bugs.adobe.com/jira/browse/FB-24339
    Third party vendor wrote:
    We have researched this issue. It's not an issue of ours. The crash happens when the loaded AS2 Movie uses _quality property of the MovieClip object.
    Step 1 to reproduce the issue.
    Create a simples AS2 file with Adobe Flash Studio which has the only line:
    this._quality = "BEST"
    and publish this Flash file into "QualityBug.swf" file.
    Compile the following application with Flex. As you can see there is no code of ours at all:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="onInit()">
       <mx:Script>
          <![CDATA[
             import mx.core.UIComponent;
             import flash.display.Loader;
             import flash.net.URLRequest;
             private function onInit():void
                var loader:Loader = new Loader;
                var container:UIComponent = new UIComponent();
                container.addChild(loader);
                this.addChild(container);
                var request:URLRequest = new URLRequest("QualityBug.swf");
                loader.load(request);
          ]]>
       </mx:Script>
    </mx:Application>
    Launch this application in debug mode. The same crash. This means that issue is related to Adobe product family.
    We will try to report to Adobe about this issue.
    Since the issue happens only when debugging on IE we may recommend using other web browser for these purposes, for example Firefox until Adobe fix the problem with their product.

  • AllowDomain error (#3207) when loading local swf

    I am trying to load a swf that is on my local file system using an AIR application. The swf I am loading has the code Security.allowDomain("*") in it's constructor. I am getting the following runtime error when I load it.
    SecurityError: Error #3207: Application-sandbox content cannot access this feature.
        at flash.system::Security$/allowDomain()
        at ball_fla::MainTimeline/frame1()
    Is there anyway to load this file without recompiling it?

    As you can see Security.allowDomain() is not permitted in the AIR application sandbox. This is because we want to prevent non-application content (possibly from unsafe sources) to access AIR APIs (such as filesystem reading). However, you can cross-script to content from other domains using the sandbox bridge. This lets non-application content access specific methods and properties in your application (and vice versa). For more information, see the following:
    Scripting between content in different domains

  • .hasDefinition no longer working when I move .swf movie to a diff directory

    I am on Flex 3.6 (Sorry, the move to 4.5 is just too darn difficult right now as I am on a tight deadline and I ran into many many migration issues).
    For years I have used the following code in a component I made that subclasses SWFLoader and it works just dandy fine:  
    var mClip:MovieClip;
    var swfAppDomain:ApplicationDomain = this.loaderContext.applicationDomain;
    if (swfAppDomain.hasDefinition(symbolLinkName)){ 
    var classRef:Class = swfAppDomain.getDefinition(symbolLinkName) as Class;mClip = new classRef();
    The .swf's I am loading with the SWFLoader contain various animation MovieClips that I created in Flash CS4 and are stored in the library of that animations.swf.  When I keep the animations.swf in the relative path of the Flex app MyApp.swf  (i.e. I have a folder myApp which has the Flex app MyApp.swf and a folder called assets which has the animations.swf) all works fine.  As soon as I move the assets folder to a different folder that is outside the myApp folder foodchain, the .hasDefinition no longer works.  That is, the hasDefinition() can't find my animation in the library of the animiations.swf
    What on earth could be the issue?  I don't get any exceptions or error messages.  I just don't get the MovieClips out of the library.

    Thank you so much for your prompt and helpful reply. I am both testing locally (using file system relative path url's) and going to deploy using http.  Where do I put the crossdomain.xml file?  In the foodchain of where my app will be running?  If I am testing locally and want to test the http url paths, do I put the crossdomain.xml file inside my html-template folder?
    Thanks again for all your help.

  • Button stops working when load a mc inside.

    Hi if I load a movieclip within a _mc it stops working as a
    button.
    I use
    mcLoader.loadClip (File, Sprite);
    and then:
    mc.play();
    Anyone can help me?

    I have the same problem on ipad and iphone.  The bug was only introduced in iOS 8 and 8.1.2 hasn't fixed it.
    I play music on shuffle when commuting and when it hits a video I have to try and get the ipad out of my bag or switch to my phone which is a major pain on a crowded train.
    I thought it was bluetooth only but it's the same on 3 different devices.  Apple support suggested resetting all my settings.  Er, no thanks.  Tried forgetting and re-selecting devices but no good.  Apple support reported this to their technical support 5 weeks ago but nothing since then, so completely useless.
    Only way around is to create playlists without videos, or delete all of them.

  • AUDIGY 2 ZS: Sound stops working when loading ga

    Hello, I recently upgraded my CPU/mobo and reformatted. Ever since then I've been having a few problems with my sound. I'm using the Audigy 2 ZS. I have the latest drivers off the website. Yes, I have disabled the onboard audio in the BIOS and there are no drivers for it installed in Windows. And yes, I have the latest version of DirectX and SP2 and everything else from Windows Update.
    - I'll play Mp3's in Winamp - using both the DirectSound and waveOut output methods - and the music will play fine. Windows system sounds and AIM sounds play find with this too. When I launch any game however, the sound shuts off.
    For example, I'll load World of Warcraft, and the music will stop playing, when I exit the game the music resumes. Even stranger I noticed that when I WoW is running, the speaker configuration randomly gets changed from headphones to stereo speakers. Changing it back via Creative Audio Console caused the audio console to hang. Trying to change speaker configuration via Windows did nothing. and yes, I checked to ensure my soundcard was selected as the proper playback device, the volume was up, not muted, etc...
    When I run Neverwinter Nights 2, the sound will shut off for the into logo screens and the intro scene. My Mp3 music from Winamp WILL resume playing at the main menu, however, the volume becomes noticeably less. Exitting the game restores the proper volume level.
    Even stranger - if I run NW2 followed by Warcraft, my music will play during WoW, but at a lowered volume similar to Neverwinter nights 2. If I then quit WoW and restart WoW, I am back to no music. Strangely it seems just to get the low-volume music to play during WoW, I have to have previously run Neverwinter Nights 2.
    To summarize:
    - Music and Windows sounds stop altogether while running World of Warcraft
    - Music and Windows sounds play at much lesser volume during neveriwnter nights 2, and not at all during intro
    - sound works in warcraft, but at a lower volume, ONLY if I'd run neverwinter just before runnign warcraft
    - similar buggy low volume / no music at all problems in Medieval 2 Total War
    - one time I had my music become all distored and start skipping/ slowing down when I was trying to reset the speaker configuration back to Headphones when it was magically changed to stereo speakers.
    I highly doubt it's a problem with the games - I've been playing these games and using Winamp and my Audigy 2 ZS for quite a while now, and never had a problem with any of my games screwing around with my WIndows sound levels or cutting it off altogether. I'll keep updating as I install more softwareMessage Edited by xagent on 0-09-20070:9 AM

    Could it have anything to do with the fact that the drivers I downlaoded were off the Creative website?
    I'm currently on WInter break for a couple more weeks, and left my Audigy 2 ZS CDs back at college. But I don't see why the latest Audigy 2 drivers from the Creative website should be faulty.
    oh, and I'm running Win XP Pro

  • Master data check not working when loading into and ODS object

    Hi guys,
    we are loading transactional data into an ODS from a flat file.
    In the infopackage, we have checked the option :                                                
    "Do not update data if no master data exists for a characteristic".
    This option seems to be unreliable :
    For some characteristics (it seems those loaded using transfer rules (routines)), incorrect data is still loaded into the ODS even if no entry exist in the associated infoobject master data table.
    Any help appreciated.
    Many thanks !
    Pierre-Yves

    Hi Dear,
       please delete all the incorrect master data from the master data characteristic first and then try to uploading the data again .It should work, because there migth be some master data created when data were loaded with out the check before.
    And please check whether all your characteristic info object are of master data , I mean that in the infoobject defination you have checked the master data check box on the info object. If you have only text then it might fail the master data check.
    hope this help.
    cheers,
    balaji
    Message was edited by: Balaji NS

  • Error #2124: Loaded file is an unknown type when loading any SWF file

    Hi all,
    We are using IBM WebSphere Application Server (WAS) 6.1 along with Apache web-server for hosting our Flash RIA application.
    Our Flash RIA application used to be single monolitic SWF file and it worked OK for us.
    But now there is a new need to load dynamically external SWF files into our main SWF file, but every time we try to load SWF file on this configuration IOErrorEvent is thrown with error text  "Error #2124: Loaded file is an unknown type"
    Simplest MXML application fails to load SWF file with this error, although external images are loading fine.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[                       
                protected function swfloader1_ioErrorHandler(event:IOErrorEvent):void {               
                    mx.controls.Alert.show("SWF load failed " + event.text);
            ]]>
        </fx:Script>
        <mx:SWFLoader source="test.swf"             
                      ioError="swfloader1_ioErrorHandler(event)"/>           
    </s:Application>
    We already tried to specify the MIME type for file extension ".swf" at IBM WebSphere 6.1 admin console, tried 2 values "application/x-shockwave-flash" and "application/swf" - did not solve the problem.

    Hi JabbyPandaUA
    I had the same problem and I could fix it by adding the following tags to my web.xml:
    <mime-mapping>
                <extension>swf</extension>
                <mime-type>application/x-shockwave-flash</mime-type>
    </mime-mapping>
    try it and tell me, good luck!

Maybe you are looking for

  • AS2 Receiver Adapter Error

    Hello, when trying to send a message using Seeburger AS2 Receiver Adapter I get the following error (strange thing is that it worked before we made some changes, now we changed back and the error occurs): Description: AS2 Adapter failure MessageId en

  • Photosmart c4740 not printing black

    Help! My printer is not printing black ink! I just changed the cartridges and the color is printing fine but the black won't print at all. I've tried everything i can think of! And it keeps telling me that my cartridges are low on ink which isn't tru

  • Update firmware of NI Node 3202 programmatically in labview

    Hi ,  I seen the project at  http://www.ni.com/example/31480/en/ , its adding nodes by giving NI Node serial Number , ID , NODE Type then selection of END NODE and MESH ROUTER.Can someone help in just update the NI Node as END NODE and MESH ROUTER pr

  • Iphone 09 crashes every time when importing from an external hard drive

    Just bought a mac mini and I wanted to import my jpgs from my windows external disk (disconnected it from the pc temporarily.) However, I do not have enough hard drive on the mini to hold all of the pictures, so I moved the iphoto library (using the

  • Where's the iTunes Toolbar?

    i read in [this article|http://www.pcworld.com/article/149297-2/11things_we_hate_aboutitunes.html] that you can have an iTunes toolbar in the taskbar. i wanted to enable it to see what it was like, so i right-clicked on my taskbar, moused-over "toolb