need help to unload a .swf

I am using flash CS5, AS3

I'm a huge module having a 'nodal point' (table of contents) which contains all the links to the other slides that are individual .swf files.

The question is, from the Center, I click on the link to open a swf file and it starts to play.  If the button that returns you to the hub are pushed before the entire .swf plays through, symbols and interpolations of the swf that has been simply discharged, always appear on top of the hub and continue playing.  someone knows how can I fix?

Code to frame 1 of all sovereign wealth funds:

This.btn_hub.addEventListener (MouseEvent.CLICK, SWFhub);

var fl_Loader:Loader;

This variable keeps track of if you want to load or unload the SWF file

var fl_ToLoad:Boolean = true;

function SWFhub(event:MouseEvent):void

fl_Loader.Unload ();

removeChild (fl_Loader);

fl_Loader = null;

fl_Loader = new Loader();

fl_Loader.load (new URLRequest ("Slide HUB.swf"));

addChild (fl_Loader);

}

SoundMixer.stopAll ();

any help would be appreciated!

-= Sondax =-

someone who will probably need to download and to repair your file for you.

Tags: Adobe Animate

Similar Questions

  • Need help to integrate a swf to mp3 player with playlist xml

    Im a noob to Flash (began Tuesday, haha) and so far all that comes along very well, but I need to put music in the swf file. I have a set button in place that slips a swf mp3 player in the side, but I don't know how to make the playlist to work with it.

    The player is from this site:

    http://www.bezzmedia.com/swfspot/samples/Flash8/Mp3_Player_with_XML_Playlist

    Using the list of reading xml with html is fairly simple, but I'm not sure using it with Flash Catalyst. Is there an easy way to do this?

    My original plan was to have a text list of songs with a play button next to each of them, and then when you click on the play button it would create the State of all the other songs on blocked for you can choose just what would stop the song playing and if another song he played. I'm not sure how to do it anymore (as I said, I started to learn this week), so I just tried to incorporate someone else (ugly) mp3 player.

    Anyway, if someone knows a way relatively easy to have a playlist in my swf file please let me know. Thank you!

    If I understand you correctly, you have imported a SWF file in catalyst use of illustrations to import on the file menu. When your application runs, you want to pass this swf that tells it what URL to read a file of the parameter data. The file SWF don't is not one you have created, on the contrary, you got a web site.

    This isn't something you can do in catalyst. However, it should be possible to do it in Flash Builder. I found an article in several ways to do it, to http://www.actionscript.org/forums/showthread.php3?t=175951. One idea is the following snippet


        import flash.events. *;

    private void setVars (event): void
    {
           
    Event.Target.Content.yyyyyy = "zzzzzz";
    }
    ]]>

    where "xxxxx" is the path of the SWF file (you can put it somewhere in your Flash Builder project, or reference it via a URL), yyyyy is the name of the parameter that awaits the SWF and zzzzzz is the path to the data file. Thetag, it's what catalyst created when you imported the SWF file. (btw.the Image and SWFLoader tags are almost identical).

    I hope that gives you enough information to move forward.

  • Need help to play 2 SWFs in order

    I have two SWF files I want to play in sequence, using a third of SWF (that has nothing outside of this code). It must be simple – play the first, wait for his screenplay to the end, and then play the second. Problem is I can't get the timeline to wait.

    To load the first movie in frame 1, I have this, which works:

    this.createEmptyMovieClip ("mcHolder", 1);
    var oListener:Object = new Object();
    var mclLoader:MovieClipLoader = new MovieClipLoader();
    mclLoader.loadClip ("first movie.swf", mcHolder);
    mclLoader.addListener (oListener);

    10 frame, I would like to unload the first, then load the second. This happens, but without waiting. Here's what I have so far:

    Stop();

    If (_level1.currentFrame == _level1.totalFrames) {}
    first film of unloading
    mclLoader.unloadClip (mcHolder);

    now load the next film
    this.createEmptyMovieClip ("mcHolder2", 1);
    var oListener2:Object = new Object();
    var mclLoader2:MovieClipLoader = new MovieClipLoader();
    mclLoader2.loadClip ("second movie.swf", mcHolder2);
    mclLoader2.addListener (oListener2);

    }

    I guess there is something wrong with my if statement, but what?

    It is not necessary to unload IF you load into the same target movieclip or same level. I load in the same level (_level1).

  • [Help] Button that closes or unloads the SWF itself and charge another.

    Hello! Could someone help me please?

    Maybe my question seems little obvious to you, I ask patience ^ ^

    I'll summarize as briefly as possible .. Imagine a presentation, interactive animation and full, with many ways or different possibilities...

    The method I use is to divide it into many different rulers, otherwise it would be ridiculously heavy...

    But that's the problem: when I want to load another SWF, he eventually overwrite the original and will become more slow and overloaded, because it consumes too much memory and frame rate decreases each new SWF loading...

    I wonder if there is a way to unload the SWF itself by button and move on to the next...

    Open
    LER foneticamente

    If you have a single swf file main who must simply acts as a container that loads of the FSV of presentation, you can use the Loader class to load the presentation files, and it includes methods to unload the files loaded as well.  Find the class Loader in the help documentation if you need more information.

  • My car game needs help (swf in the post)

    Hello
    I have a car that I control with the arrow keys and I want the car to pull to the side when you press space.
    I have a picture of the hunters flash to png format that appears in the same place of the car even when I move the car to the right or left etc.

    The scene is seen from above.

    And for some reason the first flash of hunters is always slow when you hold the space key.

    It's here
    Caliber400.webs.com/car_game.swf

    Please do not move the car while testing the push function at the same time.

    This is the script that I need help.

    Sorry for my English.

    (will post if necessary fla).

    Have the muzzle flash as part of the drive to movieclip so that it moves with the car. Instead of moving out of sight in box 1, just do not have in frame 1.  Alternatively, instead of having two chassis as a movieclip, you could control its _visible property and avoid using a mount command to change the mounts.  Sometimes a change of framework can get delayed if there are a lot of things that could be happening when you say that it's slow.

  • I need help with the control of two .swf in third.

    Hi, thanks for reading!

    I need help with the control of two .swf in third.

    I have a problem when I need to use a .swf in a digital signage solution, but were advised by the Legal Department, it cannot be changed in any way, I can not also have the source file blah blah blah. I pulled the .swfs on their site and I decompiled to see what I was up against.

    The main SWF that I need control is HCIC.swf and the problem is that it starts with a preloader, which, after the loading stops on a framework that requires user input to (button) on a play button, until the film will proceed and replay.

    What I've done so far is to create a SWF container, HCIC_container.swf, which will serve as a target for the HCIC.swf and I would like to send actionscript in the file, I am not allowed to edit.

    I managed to get done with help from someone on another forum. It is my hope that the following script just start HCIC.swf a framework after the preloader and button play and just play through.

    var container: MovieClip = createEmptyMovieClip ("container", getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener (this);
    mcLoader.loadClip ("MCIC.swf", container);

    function onLoadInit(mc:MovieClip) {}
    mc.gotoAndPlay (14);
    }

    But unfortunately it does not solve my problem. Because there is a media - controller.swf, which is charged by HCIC.swf who has orders, including the play button to start HCIC.swf.

    Here is a link to a .zip with all 3 files .swf file and all 3 .fla files.

    http://www.axiscc.com/temp/HCIC.zip

    What I have to do is to automatically start the HCIC.swf file, bypassing the pre-loader and play button without having to edit it or in the media - controller.swf in any case. Thus, all scripts must be done in HCIC_container.swf.

    I know it is confusing and it is difficult to explain, but if you look at the files it must make sense.

    ActionScripting is far from my point hard, so I'm definitely over my head here.

    Thanks for your help.

    Got my solution on another forum.

    http://www.ActionScript.org/forums/showthread.php3?t=146827

  • Cannot unload external .swf and return to section 1

    I tried several suggestions on this forum to solve my problem, but it is clear to me miss me something, because I'm a Flash of NOVICE developer. I have everything works in my Flash file, EXCEPT that I want to use this code to play a .swf file. When the SWF is done playing OR that the user clicks on the "back to the main Menu button", they return to frame 1.

    Stop();

    Log_In.addEventListener (MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_7);

    var fl_Loader_7:Loader;

    var fl_ToLoad_7:Boolean = true;

    function fl_ClickToLoadUnloadSWF_7(event:MouseEvent):void

    {

    If (fl_ToLoad_7)

    {

    fl_Loader_7 = new Loader();

    fl_Loader_7.load (new URLRequest ("NAV01BBEC293.swf"));

    addChild (fl_Loader_7);

    fl_Loader_7 .x = 19;

    fl_Loader_7 there = 67;

    }

    on the other

    {

    fl_Loader_7.Unload ();

    removeChild (fl_Loader_7);

    fl_Loader_7 = null;

    }

    Toggle if you want to load or unload the SWF file

    fl_ToLoad_7 =! fl_ToLoad_7;

    }

    Main_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_9);

    function fl_ClickToGoToAndPlayFromFrame_9(event:MouseEvent):void

    {

    gotoAndPlay (1);

    }

    Games of .swf files and when I click "Back to main Menu" button, that some items display of frame 1. The .swf file is always loaded to hide items that need to display the frame 1. I've attached a screenshot of what happens when I click on the button "back to the main Menu.After_click_Main_Menu button.png

    Here is a screen should look like shot of what framework 1.

    Frame_1.png

    I'm on a very tight schedule, any help would be most appreciated!

    Looks like I got the order backwards (or Adobe did when they christened)...

    try... fl_Loader_14.unloadAndStop ();

  • How to unload external SWF?

    I was finally able to work on a way to fix and preload external SWF files - now I'm looking to understand how to unload the SWF external on a mouse event so that a new SWF file can be played.
    I googled this to death all day and have resulted in nothing of what seems to work for me.
    Below is are code so far... does anyone know what I need to add?
    Help, please...

    I have it working! YAY!
    I learned a lot from Andrei1 - fantastic help... unfortunately I still couldn't the code work...
    I bought 'Visual Quickstart Guide ActionScript 3.0' and tried some of their code mixed with some of my own (with help from the knowledge I gained from Andrei1 - THANKS again legend)...
    In any case, the resulting code is as below - which you charge my external SWF files and then discharge them with a click of mouse - FANTASTIC! Hope this helps others out there with the same problem.

  • need help with the CVI real-time

    Hello

    I'm new to CVI real-time and need help related to this. I'll explain my scenario:

    1. I have a few configuration files (INI). Need to validate the files (the range... check etc.) when the application is started.

    2. when the user clicks on 'START' in the user interface on the host machine, I need to generate outputs (analog/discrete...) according to the settings in the config file and read a few entries of other instruments. (I/O such tasks that generate outputs/inputs, I intend to perform beside reading RT)

    3. from the user interface, user can also change the configuration files. If the user modifies the files, file validation must again be made. After editing files, if the user clicks on START, the need to take the new entry to perfom tasks I/O configuration files.

    4. I am NOT using reflective memory for my application.

    I am confused in the following area:

    1 file validation during startup, I have to perform on host and on the side of RT?

    2. If the configuration files are changed in the host side user, how I send the names of files to RT? I think that I should not send the file names, I need to read from the file and its contents, I need to move on to Rt.... Pls correct me, I'm not sure about this...

    3. If I send the contents of the file to the RT, how do I do... I have to use structures, means... ???

    Please guide me. Any help would be much appreciated.

    Kind regards

    Samantha

    Hey Samantha,.

    1 file validation during startup, I have to perform on host and on the side of RT?

    It depends on the full range of responsibilities for INI files. If they are necessary simply to change what the I/O are for, then you would be technically just validate the content of the file INI on the side of the RT. However, you could post on both sides if you wanted to. However, I would probably set up as I have send a validation to the target control, have the target run a component of the code that validates the INI content based on how I loaded it and then returns a message that says if it meets the requirements I specified. However, if you are concerned with unloading of this process on the user's desktop (to the contrary increase the performance of the RT controller), you may FTP the file to the rheostat and perform the process of validation of the side host.

    2. If the configuration files are changed in the host side user, how I send the names of files to RT? I think that I should not send the file names, I need to read from the file and its contents, I need to move on to Rt.... Pls correct me, I'm not sure about this...

    You can send them to the target by FTP. This can be done programmatically, by MAX, command or a Web browser window.

    3. If I send the contents of the file to the RT, how do I do... I have to use structures, means... ???

    It is basically addressed in answer to question two. You would not need another structure in your code of RT to manage the FTP receive component as this is handled by the FTP Client/server communication. However, in case you successfully FTP a file to the target, you should probably send a message between the host and the target so that the target can react accordingly and reload the file I/O values, run an inactive procedure, or do what you want.

    I hope this helps. Have a great day!

  • Former Nikon user needs help w / AF on a 5 d MK I

    I bought a used 5 d MK I and new EF 24-105mm f / 4L and I'm having problems with the autofocus. I shot a test subject to 16 feet of focal plane (used a tape measure), but moved Center AF point focal beyond the mark of 20 ft on the lens. I was shooting 50mm at f5.6 so sharpness was ok, but really sweet because the subject was on the near end of the focal length range. When I shoot wide open at distances more close photos are unusable. Any ideas on that? What I need to send to Canon for repair, or is this a known problem with this model of body? I shot Nikon for 20 years, so I'm totally out of my element here; I could not yet understand how to use the self-timer for family vacation photos. Any help for a beginner user of Canon is appreciated!

    Thanks for the reply! I pulled the manual on the web when I got the camera and think I have everything set up correctly.

    What I really need help, is if there is a known issue with AF on the 1 5 or if I use the wrong settings. I'm really just trying to determine if I need to send the body of the camera, lens or two to Canon for repair, or if I would be wasting my money doing so.

    My test subject was 16 feet more distance, but the camera and lens determined she was 20 feet away. The camera was tripod mounted with IS off, Av mode, ISO 800 set at f5.6, 50mm, I Focus mode AF and the central focus point square on the nose of subjects. I used flash ettl and unfortunately I can't remember what was the shutter speed, but I can remove it from the EXIF if it's important. Development was strong at about 5 feet behind the subject.

    The questions remain the same with or without UV filter on the lens. AF seems pretty good for macro up to about 10 feet away, then it seems to be far away. Is this a limitation of the AF system on this unit or could be improved spend the money to have the Canon watch? Or I'm better this unloading at KEH and get another camera?

  • Need help with coding for HTML5 with emergency Flash video

    Hello, need help with my coding in Dreamweaver CS5.5 for HTML5 with emergency Flash video. Not sure if the coding is correct. Do I need any other JavaScript etc.?

    code.jpg

    Another thing is that you don't have to include SWF as aid manual if you provide all 3 ogv, webm & mp4 video formats as one of these formats will certainly be played in any browser that is fully compatible HTML5.

    Still one thing you could do if you don't mind hosting your video on Youtube is to get an embed code for Youtube - in this way, you don't have to convert all the files. YouTube will do it for you and it will play on devices of HTML5 as well as supports Flash player of relief for devices that cannot play HTML5.

  • Hello. Really need help.

    I'm doing a game right now. When you finished with success the current level, it should unlock the next level.  I've been Googling since this morning and tried to use SharedObject, but it does not solve my problem. I really need help please! Can someone please give me an idea on how I can do this? >. < Thank you.

    It depends on how you load your levels.

    If you attach an event listener to Buttonbs who are in charge of your level, you may

    Add sth. as

    function init (): void {}

    var maxLevels:int = int (showCookie ());

    var totalLevels:int = 4

    say it returns '2 '.

    for (var i: int = 1; i<>

    If (i<>

    getChildByname("level"+i).visible = true;

    }

    else {}

    getChildByname("level"+i).visible = false;

    }

    }

    }

    and in your MouseEvent.CLICK, startLevel you add all the buttons

    you write sth. as

    function startLevel(e:MouseEvent):void {}

    var levelLoader:Loader = new Loader();

    levelLoader.load (new URLRequest ("level" + e.currentTarget.name.substr (5.1) + ".swf");)

    }

  • Load and unload the swf file

    I am currently using AS2.

    I create a button instance named 'myBtn' and I want it to load the external swf "test2.swf" call all to unload the current swf file named "test1.swf" when you press on / release.

    that fact is I put the following code under mybtn:

    We (Press)

    {

    unloadMovie ("test1.swf");

    loadMovie ("test2.swf", 1);

    }

    the result was that the "test2.swf" was loaded successfully, but the "test1.swf" fail to unload.

    Any help is welcome

    AS2... Scope is your problem. When you are inside the function for delivery you tell the button you used to unload test1.swf of inside of this button (which it is not located in).

    You are probably using the root timeline, so I'll take a bet that it works:

    (press)

    {

    _root.loadMovie ("test2.swf");

    }

    If you want to follow the progress of loading between them, it is a bit more complex.

  • Unload the SWF using SWFLoader

    Hello

    I have a main app where I use a SWFLoader for loading a second application.

    In the second application, I want to put a (Close) button and when I click it I want to download this application.

    Is it possible to do this?

    I know that I can unload a swf file using the SWFLoader unloadAndStop method, but how do I access it the loaded application?

    I think a different approach would be adding eventlisteners to the loaded swf but I do not know how.

    Can someone help me?

    Thanks in advance,

    Alberto

    Hello

    @Alberto

    I think a different approach would be adding eventlisteners to swf loaded but I don't know how to do this.

    I think you can use the event type to custom or built-in to send information to the hosting applications and SWFLoader * has * integrated dedicated routine to the context loaded unloading - which includes the removal of event listeners added to swf-types on content charge (Yes, there is a way in the kit Flex SDK to access applications above, but most often that is not advisable to access the methods and properties of the parent that it binds tightly) content together).

    For your initial claim could start listening to the custom events when the load completes and removes loading app like this:

    http://ns.Adobe.com/MXML/2009.

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" >

    protected function chidLoadedHandler(event:Event):void

    {

    swfLoader.content.addEventListener (Event.CLOSE, unloadChildHandler);

    };

    protected function unloadChildHandler(event:Event):void

    {

    swfLoader.content.removeEventListener (Event.CLOSE, unloadChildHandler);

    swfLoader.unloadAndStop (true);

    }

    ]]>

    <>

    Width = "100%" height = "100%".

    source = "ChildApplication.swf"

    Complete = "chidLoadedHandler (Event)" "

    ID = "swfLoader" / >

    While the demand of your children simply:

    http://ns.Adobe.com/MXML/2009.

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" >

    protected function unloadMeHandler(event:MouseEvent):void

    {

    We will ship event 'CLOSE' - this could be the type of custom event

    but I think it's just enoguht heres

    var closeEvent:Event = new Event (Event.CLOSE);

    root's highest - if it's 'content' more high display object so

    this.root.dispatchEvent (closeEvent);

    }

    ]]>

    Don't know if it's more evidence of ball or recommended solution but could be the starting point,

    Kind regards

    Peter

  • Twitter API need help immediately

    I developed a twitter API in Flash Professional CS4. It works fine when it plays in flash player on site. But when I publish the file and run it in a browser, it asks to change parameters. Given that these are local settings I changed the plays the file in the browser and it worked fine.

    Now, when I download the file on the server and integrate the swf file in an html file and try to play on the server nothing happens. The API does not load the flow of the twitter website. The screen is always blank. http://sravan313.inz.cc/home.html

    I tried the solutions...

    additional security in flash code

    1st method:

    flash.system.Security.allowDomain("*");
    flash.system.Security.loadPolicyFile ("http://twitter.com/crossdomain.xml");

    2nd method:

    added from http://twitter.com/crossdomain.xml crossdomain.xml policy file

    3rd method:

    followed above methods as well to change the 'network access only' in the publication settings.

    Can someone help me with possible solutions?

    guys its very urgent! I need help immediately...

    http://www.darshanrane.com/blog/?tag=Twitter

    See if the second post helps.

    --

    http://www.darshanrane.com

Maybe you are looking for

  • Recovery of my favorites from an OLD hard drive to a new PC

    I took the old drive from the laptop and put it in a USB enclosure, so I now my whole OLD hard drive as drive E... .but no applications will run in fact of course.Then... I want to find my OLD profile on drive E (especially the bookmarks) and the cop

  • Qusetion

    Hello please answer a question Did you know that the Manager of the Skype Name: Bar John West I win the lottery Skype I have code batch and certiface this e-mail E-mail: * edited for the protection of personal information

  • Hebrew support for Sony walkman NWZ-E473

    Anyone know if there is no Hebrew support for this model? My kids had two of those of their grandmother and cannot use it. Everything you see is squares Thank you Lia

  • DV7 - 7333cl: how to extract usable data from a bad drive using 22 pins adapter usb to SATA on the new HD

    Greetings HP Forum, Recently, I replaced a bad hard drive on my laptop. I need now step by step procedure to extract usable data from the wrong drive using 22 pins adapter usb to SATA on the new HD. NOTE: I can't not all data that especially if some

  • How to pay Apple works with Uber?

    I have been in contact with Uber at least a dozen times already, and so far, looks like I spoke in Greek, because the assistance of Uber team doesn't seem to understand my questions. I initially signed with Uber without realizing the company caught p