Problem external loading SWF in Flash Movie

I am trying to load an external swf (which is a slide show) in a flash animation. The swf file in the film show and apparently plays ok but there is something wrong. On the last image(3rd) in the slide show keys stop responding and when I click on the "back" button on the second slide is going to the third slide, and not the first. When I check the SWF itself it works fine, it is only in the flash movie, where everything is blurred.

Link to the Flash animation:

http://www.dagif.com/habanaHarlem.swf

This is the code that I put in the flash animation:

holder_mc.loadMovie ("http://www.dagif.com/slideplayerHabana.swf" "");

Link to external swf: http://www.dagif.com/slideplayerHabana.swf

This is the code for the external swf file:

Stop();
next_btn.onRelease = function() {}
If (_root._currentframe == 3) {}
gotoAndStop (1);
}
else {}
nextFrame();
}
}
Stop();

previous_btn.onRelease = function() {}
If (_root._currentframe == 1) {}
gotoAndStop (3);
}
else {}
prevFrame();
}

}


num1_btn.onRelease = function() {}
gotoAndPlay (1);
Stop();

}
num2_btn.onRelease = function() {}
gotoAndPlay (2);
Stop();

}
num3_btn.onRelease = function() {}
gotoAndPlay (3);
Stop();

}

The problem is most likely the use of _root in code that show you.  Like any swf, the _root will demonstrate to the _root of the main sequence and not the loaded swf file.  Try to use this ._lockroot = true; at the beginning of the code of the imported file, replace GOLD is _root references with _parent references.

Tags: Adobe Animate

Similar Questions

  • HTML and external loaded SWF

    I have a Flash movie where I'm loading external SWF. When I saw Flash, it works very well. When I publish to HTML (from Flash), it works fine. When I'm trying to integrate my Flash animation in a different HTML page using Dreamweaver, load external files. I made this a hundred times in the past, but I'm having this problem with a few different Flash movies - that those who are responsible for external content - ideas?

    Looks like he had a security problem between local files and files on the network. Once I downloaded everything, it seems to work very well - what a pain to have to download whenever you want to post something works properly...

  • Removal of the external loaded swf does not decrease memory

    I'm developing a desktop application using flash builder 4.7, where I am loading swf external swf main, but after his withdrawal, it remains in the process (check in the Task Manager. os: windows 7), process decreases a little, but not as much as it should be. so, whenever I insert again and remove, process increases and after multiple loading, application crash down. I'm removing it like this

    if (_loader.numChildren>0)

         _loader.removeChildren(0,_loader.numChildren-1);

    _loader.unload();

    _loader.stopAllMovieClips();

    _loader.unloadAndStop(true);

    _loader.loaderInfo.removeEventListener(Event.COMPLETE, onComplete);

    this.removeChild(_loader);

    _loader = null;

    I have added custom destroy the external inside swf method and started calling him. I was almost everything, remove (almost say because it might be something I missed, because it's huge project) but still the long process.

    That I created empty swf (new project without code and nothing in it) and tried to integrate and to see what is happening. It was just the same...

    Then I thought again Air SDK may have solved this problem, so I've updated SDK for 19.0.0.207 currently more recent, but still nothing, even if the process now increases above.

    I think that it comes to Flash gc. One of the solutions is to have one and only instance of swf external and removeChild and addChild it whenever you need. It is a bad way to do it. Process will not increase all the time, but in my case I have many SWFs to load and it will slow down my request for computers of RAM low resources it could cause the crash and it is bad to have unnecessary things running in the background process

    so any suggestions are welcome

    No need to stop the video clips and remove... use unloadAndStop() and it will all stop and unload the file... as it is not possible to call the content of charger (clips) stop after the unload method, it is already removed... So, try to use only 3 lines only to unload the file.

  • Externally loaded SWF X & amp; Position Y

    I spent the last 2 hours looking for this forum for a solution to my problem. I read more than 20 topics and tried all... nothing works.

    My problem:

    I have a file that uses the following script to load another swf SWF:

    loadMovieNum("Base/BASE_ALL.swf",2);

    I would like to place the "BASE_ALL.swf" exactly 100pixels from the top edge of the scene. The 'BASE_ALL.swf' is w786 by h503, while my "container.swf" is by h603 w786.
    As you might guess, my problem lies in the fact that no matter what I try, I can't force the "BASE_ALL.swf" to load and reposition FLF = 100. It's very frustrating because I'm sure that the answer is simple...

    Could someone help?

    (More info: the 'BASE_ALL.swf' load externally many other SWF files that the user clicks on the menu - it is a Web site.) All these files are by h503 w786. The only file that is h603 is 'container.swf '. The 'container.swf' is biggest 100px to allow space for a company logo that will be visible when the user accesses within the site.)

    If you have been load lines.swf and nav.swf and main.swf in a BASE_ALL.swf, then by positioning BASE_ALL.swf would position the loaded SWF.

    but these sovereign wealth funds are not loading in BASE_ALL.swf. they charge in _levels. and _levels do not inherit anything from the swf that causes their existence.

    Thus, you should use preloader code to ensure your _levels exist and when they do, you can position the _levels.

    Therefore, in container.swf, you can remove all of the code except the code that loads BASE_ALL.swf. and in BASE_ALL.swf you can use:

  • to access methods and variables to an external loaded swf

    OK, I've been at this now for 2 straight days without success. I use external SWF as a way to customize the GUI design. The main swf default is supposed to load the external SWF and manipulate variables and methods. When I have the debug, it seems to appear on the stack which load upward variables of the external swf file. but when I try to handle it on the maintimeline, such as _level0.active_comp.name_space_header = 'Hello', it is no longer as original value defined in the SWF external or worse still undefined. I shopped, in tutorials, guide assistance, search engines, and there is no indication in the right direction, only that it should work, not that it works.


    in other words, in the external compiled swf, I put a text box empty, give the name of the instance 'name_space '.
    in the main timeline of the swf by default, I perform a simple operation createEmptyMovieClip/loadmovie.
    then on the second image, I enter custom text to be put in the external clip loaded, in the form of _level0.active_comp.name_space_header = "Hello"; and that's all, nothing. I can not even access the variables on
    any point given the default timeline. HHHEEEELLP. !!! Arrrrrgh

    The Movieclip object is only part of the answer, the real answer is the FPS of the main sequence, load the external swf file. The faster you set the time, faster it ends the loading process. So ideally, you want to set the main.swf to 120 frames per second, which is the maximum and movies of time forced as an external process. All external swf which carries only action script, inline must also be set to 120 images per second. You can create a custom Init() function to run only when the byte loading criteria has been made. This prevents a hiccup in the code and have a process of interrupted line. Anyone interested in the code example, please do not hesitate to send me an e-mail to [email protected]

  • How to call the function lavel root & variable external loaded swf file

    I have little problem in as3.  I load 'mainmenu.swf' file "main.swf". through class loader. so now "main.swf" is children of parents 'mainmenu.swf' file how can call "main.swf" variable and function of "mainmenu.swf".

    The parent of the loaded swf file is the charger.  The main SWF is the parent of the charger.  Then to communicate with the main storyline of the loaded file can use:

    MovieClip (parent.parent) .someFunction ();

  • External loading swf problem

    Hello

    I think it's my last stop to find the answer to my problem

    I made a simple project with flash CS5 that contain

    main SWF that load an external swf into movie empty

    I was able to load external swf everything smoothly but

    Problem

    the external swf file has drag-and - déposer only work perfect, but when it is called stops working

    external text in swf input do not work as when he called

    I scoured the net for a week and that you can't find the answer

    Pllllllllllllllllllllllease help

    Thanks in advance

    The loaded file using _root references?  If so, you must set the _lockroot true inside this file property so that it does not seek beyond itself to the _root of the file that it loads.  If you are not familiar with it, it is documented in the help files for Flash with examples.

  • Delete with external loaded swf movieclip

    Hello

    I have 4 empty movieclips called holderMC1, 2, 3, 4 on 4 main timeline frames

    Each movieclip load in an external swf with this code:

    var swfLoader4:Loader = new Loader();

    holderMC4.addChild (swfLoader4);

    var bgURL4:URLRequest = new URLRequest ("F1_h.swf");

    swfLoader4.contentLoaderInfo.addEventListener (Event.COMPLETE, loadProdComplete4);

    swfLoader4.load (bgURL4);

    function loadProdComplete4(e:Event):void

    {

    trace ("file loaded4");

    }

    I have 4 buttons which, when clicked on, goes to 4 labels in the main timeline image corresponding with the 4 movieclips

    Very simple - works well - except SWFs unload properly, so the video in the external swf continues to play back plan when a new swf file has been loaded.

    Can someone give me an idea of the best way to solve the problem please?

    You are welcome.

    p.s. in the future, please mark helpful/correct responses.

  • How to add listeners for the external loaded swf files?

    IAM loading external .swf file in the file main.swf.

    IAM dispatchEvent (new Event ("loaded")) of external .swf.

    How to add the listener for the event "loaded"?

    in your swf file main something like below:

    mcExt.addEventListener ("load", onCongratsClose);

    function onCongratsClose(e:Event):void {}
    Your code

    }

  • Acess to an external loaded swf movieclip

    I am loading a swf file into a flash application. I want to access some movieclips in outside loadd swf of my main application. How can I do this?

    large.

  • to access the variables and functions between external loaded SWF?

    Using AS 3.0: say I have a menu.swf which loads a content.swf below using the following

    var newContent:Loader = new Loader();
    newContent.load (new URLRequest ("fowContent.swf"));
    addChildAt(newContent,0);

    Now I have an image tag in newContent do it is an animation ending to this swf display. When you click another menu key in menu.swf, can I access sequence at the end of this content by:

    newContent.gotoAndPlay (newContent.endingSequence);

    Alternatively, you can use while loops in AS 3.0? I would like to have a Boolean variable "completed" in the newContent don't which evaluates to true after that end animation played.



    While (newContent.ended! = true)
    {
    wait
    }

    then to have it perform the function to load and display the new content.swf

    :

    PS you can not use a loop for and you can't use a while loop to perform any time. They both run from end to end before something is updated on stage and no other code can run outside of these loops (except if it is called from in the loop).

  • Can you play faster flash movies?

    I have to go through some exercises for self-learning. Alas, the presenter speaks so slow that I struggle not to fall asleep between words. :-(

    Is there a way (or another player) which allows reading (for example, swf files) flash movies at greater than the original speed? I'm sure I could easily do in the face of less than 1.5 x or 2 x the original recording speed and always perfectly understand what is said and shown.

    Such a function would allow me to save a huge amount of time and learning effect would be certainly higher than with the current configuration.

    Any suspicion or pointer welcome!

    Michael

    Try http://www.enounce.com for flash files. You can speed up and slow down playback speed. They have a free trial of 7 days and the price is less than $30.

    You can also adjust the playback speed in windows media player for avi files. Select one) "Now Playing" in the top toolbar, b) "improvements", c) "play speed settings.

    Hope this helps

    See you soon

    Wal

    http://www.directoryofnewzealand.com/blog

  • Problem with loading an external swf of in an external swf...

    OK, everything was going well on a Web site project, I worked, until yesterday. I will try to explain the whole scenario first, and I'll put the code here too so anyone can try to understand what the problem is. Here is a breakdown of the site:

    1) there a MAIN SWF file that plays an intro and then stops on the last image with the Navigation buttons 'hand'.

    2) in the root folder where the MAIN SWF resides, there is another folder called "sovereign wealth funds", which contains six main external navigation pages, but also another folder called "galleries" which contains additional external SWFs for six pages in the gallery.

    3) on one of the layers of the MAIN SWF, there is a clip called 'mySWFLoadingClip' that the buttons of Navigation of the 'hand' loading and unload pages external to swf. It all works perfectly. The beginning of the problem to the next step. This is the code I used for the buttons of navigation on the MAIN SWF scenario:

    var Xpos:Number = 0.0;
    var Ypos:Number = 0.0;
    var swf:MovieClip;
    var loader: Loader = new Loader();

    var defaultSWF:URLRequest = new URLRequest("swfs/home_page_swf.swf");

    Loader.Load (defaultSWF);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClip.addChild (loader);
    ////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////

    Function universal BTNS
    function btnClick(event:MouseEvent):void {}

    this.mySWFLoadingClip.removeChild (loader);
    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + event.target.name + ".swf");
    Loader.Load (newSWFRequest);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClip.addChild (loader);
    }
    Listeners of BTN
    home_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    portfolio_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    services_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    about_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    team_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    contact_page_swf.addEventListener (MouseEvent.CLICK, btnClick);


    4) one of the external navigation SWF pages is called "portfolio_page_swf" and gets loaded into the moveclip of 'mySWFLoadingClip' on the MAIN SWF. This is where the problem begins. The "portfolio_page_swf" has six buttons facing an additional external swf in the file galleries. Now when I open the file "portfolio_page_swf" to test if the buttons work, they work perfect. When I click the buttons, the external swf gallery files appear as they should. But the problem is that when I open the "MAIN SWF" file to test the site, I can click on the main Navigation buttons and they work. I click the portfolio button on the time line of Hand SWF and place of 'portfolio_page_swf' on the stage as it should, but when I click the buttons located in the 'portfolio_page_swf' galleries are not displayed. The page "portfolio_page_swf" buttons work only if I open the file 'portfolio_page_swf' directly. The following code is used in the "portfolio_page_swf":

    var Xpos:Number = 0.0;
    var Ypos:Number = 0.0;
    var swf:MovieClip;
    var loader: Loader = new Loader();

    var defaultSWF:URLRequest = new URLRequest("galleries/gallery_print_swf.swf");

    Loader.Load (defaultSWF);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClipGALLERY.addChild (loader);
    ////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////

    Function universal BTNS
    function btnClick(event:MouseEvent):void {}

    this.mySWFLoadingClipGALLERY.removeChild (loader);
    var newSWFRequest:URLRequest = new URLRequest ("galleries /" + event.target.name + ".swf");
    Loader.Load (newSWFRequest);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClipGALLERY.addChild (loader);
    }
    Listeners of BTN
    gallery_print_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_packaging_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_web_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_video_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_others_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_logos_swf.addEventListener (MouseEvent.CLICK, btnClick);

    If anyone can help understand me this I would really appreciate. This is a very important project and the deadline is coming up very soon. Please help me understand how to load an external SWF on the main timeline and then charge an additional external swf within the first external swf. I'm puzzled.

    If I'm following the structure you describe, it's probably a problem of targeting.  If you load a swf into another swf I think the scenario is the same that if you load a swf in a web page...  The charging base is the document down the chain, which is your main swf if you test Flash (otherwise it would be so stable web page in a web page).  So when your portfolio is responsible in the hand, it's like living in the folder of the hand, so your swf portfolio should probably include sovereign wealth funds in targeting... as in...

    var defaultSWF:URLRequest = new URLRequest("swfs/galleries/gallery_print_swf.swf");

  • Problem loading SWF in MSIE

    I am an experienced Flash developer, but I have never seen it before.

    Here's what happens:
    My page calls a JavaScript (from an included JS) function will Flash version detection, and then writes the < object > in the page if the major version is 7 or newer. It seems to work very well in all the browsers that I have tried, but I just encountered a very strange problem with it in Internet EXPLORER 6 on Windows XP...

    The SWF file loads and displays correctly posted at this URL: www.silverdock.com

    The SWF file does not load, but IE renders a box with a scroll bar in its place at this address: www.silverdock.com/index.html

    These two URLS are the same exact HTML file (I double and triple checked this).

    Content of the < object > tag looks like this:

    < object width = "400" height = "300" >
    "" < param name = "movie" value = " http://v2.silverdock.com/fl/sdp_v2.1.11.swf?c=101 & v = 1 ' / >
    < param name = "quality" value = "high" / >
    < param name = 'wmode' value = 'transparent' / >
    "" < embed src = " http://v2.silverdock.com/fl/sdp_v2.1.11.swf?c=101 & f = & v = 1" quality = "high" wmode = "transparent" type = "application/x-shockwave-flash" width = "400" height = "300" > < / embed >
    < / object >

    Does anyone know what is the problem?

    Any suggestions would be greatly appreciated.

    A big thanks to TimSymons for providing insight that helped solve this.

    It turns out that the problem was caused by the variables of execution being passed to the SWF as arguments GET. The line of code in the embed which caused the failure of the loading SWF file was this:

    http://v2.silverdock.com/FL/sdp_v2.1.11.swf?c=101&f=&v=1&i=http%3A%2f%2Fwww.silverdock.com % 2Findex.html"/ >

    Reorganization just the runtime in the embed variables solved the problem:

    http://v2.silverdock.com/FL/sdp_v2.1.11.swf?c=101&v=1&i=http%3A%2f%2Fwww.silverdock.com%2f index.html & f ="/ >

    As I said, I don't really know WHY it worked, but it worked, so for now, the problem is solved and I can try to isolate the behavior more at my ease.

  • problem in loading the flash through activex container files

    I'm trying to access flash files using activex container.i chose property shockwave flash movie to load the flash file.but when filw path is specified for this property it has extension "FLA".

    After the execution of the VI, I am unable to see the animation.

    I also changed the extension ".swf" but still do not get the image animated after the execution of the vi...

    There is no error as vi can be in operation

    can someone help me to find out why the flash file is not load...

    Hi shruti G,.

    To stop the animation at the end of the use of the program STOP PLAYING call of node. Try this and tell me. Always try to search options.

    Good luck

Maybe you are looking for

  • Apple Watch battery issue

    I need some advice on how to maximize the use of the battery. Thanks in advance!

  • Want 5540:5540

    How do disable you the mode 'sleep'?  The only choices in the menu are 5, 10 or 15 minutes.

  • I get a code 10 for my CD-ROM/dvd-rom.

    My e: drive does not appear on my pc.  I have windows Vista Home Basic. I tried the other answer to you guys, but my reg page is different. can you please help me...Thank youDebra

  • install cod

    Dear all, I've seen a lot of post that talks about installing using the codemodulemanager cod, but why when I load software, it displays the OutOfMemory error? Here is my code FileConnection conn = null;int len = 0;try {}Conn = (FileConnection) Conne

  • "To install the software, you must log on as a member of the Administrators group" when you try to install the printer software

    Original title: Installation software error I am trying to install a wireless printer Canon on my new laptop Dell with Windows 8 but I get error: to install the software, you must log on as a member of the Administrators group.  I'm naïve - I'm the o