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).

Tags: Adobe Animate

Similar Questions

  • BlackBerry Q5 needing help, Q5 plays up

    I don't know what I did to my Q5

    but every time I hit something that will be a woman's voice saying 'touch message text' or 'world blackberry button' etc. of things like that and he isn't going anywhere, I don't know how to use it.

    about the screen is UN-clickable.

    need help, I tried to understand try it for 15 minutes, I can't do it, it makes me nutss

    Thank you.

    Is your screen reader enabled.

    Touch the button to power on three times quickly to turn it off.

    You should hear "screen reader turned off.

    Then, go to settings > accessibility > screen reader and disable competely.

  • 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.

  • Need HELP loading and unloading SWFs external when the user clicks on the buttons

    Hi everyone, I'm working on a few Web sites at the moment, one for being my online portfolio, as well as my Web site for a product of sleep, that I'm selling.  I have very little experience with AS3, last time I created a Web site that as2 has been used.  I tried a few tutorials online, but nothing performs the work, there is always an error...

    I have an index.swf that loads the default home.swf.   There is also an about.swf, contact.swf, order.swf and testimonials.swf...

    It was a hair pulling 4 days now, not be able to get this working.

    All I need is for the swf external to pull up when you click on the corresponding button, and when the next button is clicked, the current to unload swf and swf to load new file.  It was so simple with AS2, you would think things could be as easy, if not easier.   So any help that all the world can offer, I would be so very you happy for me!  If necessary I can copy my current code, even if it doesn't work!   Thanks, Mike

    var loader: Loader = new Loader();

    addChild (loader);

    home_btn.addEventListener (MouseEvent.Click, loadF);

    about_btn.addEventListener (MouseEvent.Click, loadF);

    contact_btn.addEventListener (MouseEvent.Click, loadF);

    function loadF(e:Event):void {}

    Loader.Load (new URLRequest (e.currentTarget.name.split ("_") [0] + ".swf")); / / assuming that each reference button is also the button's name property

    }

  • 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.

  • Hello! Need help! HP DV7-3065DX need help to play Blu - ray DVD

    Hello

    I think I posted earlier today and would like someone to help me a lot.

    Have had my HP DV7-3065dx for a few months.

    Used and upgraded to 8 GB of Ram.

    Short great regarding everything except just now, I can't watch Blu - Ray DVD.

    I was able to watch a DVD Blu - Ray all along until a few days ago.

    Now he would not play any DVD Blu - Ray it has played before.

    It will however, play regular DVDs.

    Everything seems to work, but this problem.

    I have windows 7, 64 bit, 2.4 ghz

    Have cleaned the optical lenses, but nothing helped.

    Having executed all downloads for HP and all that WELL said!

    All driver downloads should be current.

    Have heard of this problem a little bit after reviewing the discussions today with other systems.

    Please help me.

    Thank you

    Mike

    Hi Cheryl,

    While I was waiting on someone, I read a blog about my problem.

    The very smart owner of HP computer laptop nice posted two Web sites to go, download.

    I read the post further and found one of the two did not work.

    The other is!

    One who did was file SP50778 ~ ~ ~

    I tried it and it worked! Can explain you what I was doing and why it worked? What is the download as this address worked! I have to go back somewhere and find now.

    I would like to see other people to read through blogs and save yourself a lot of time trying things when you can read the reviews before of the hand and still know what works, based on the dates of blogs.

    Once again, I read your response and am happy that you me sent a response, but it would be really nice to know why these things happen and what I can do in the future for this and other issues.

    This problem will occur again if I download things like apps and others?

    Not sure if your leadership would have worked. Can you explain on SP50778 and give me a little more education.

    Thank you very much!!

  • Need help to play some framing...

    I have a code that allows you to run through the scene a character. Once this character hits another character I want the character to play a specific image, then return to the place of beginning which is frame 1. I can get the character to run across the stage with a collision detection but is unable to play the part. Any help will be appreciated. Thank you.

    I use the below to try to get what I want. I get all my tracks, but not the clip.

    [AS]

    function onEnterFrame(event:Event):void
    {
    If (player.hitTestObject (enemy2))
    {
    trace ("collision detection");

    var player_attack_mc2_cd_boolean:Boolean = true;

    Attack of mc2
    If (player_attack_mc2_cd_boolean is true)
    {
    player.gotoAndStop ("player_attack_mc2");
    trace ("Attack");
    var player_attack_mc2_boolean:Boolean = true;
    }

    If (player_attack_mc2_boolean is true)
    {
    player.gotoAndStop (1);
    trace ("goto frame 1");
    }
    }
    }

    [/ ACE]

    use:

    player.gotoAndPlay ("player_attack_mc2");

  • Need help to find a way to order by chronological period

    Hello

    I have a query as below:

    SELECT GL_PERIOD_NAME, EXPENDITURE_ITEM_ID
    OF apps.PA_COST_DISTRIBUTION_LINES_ALL d
    WHERE LINE_TYPE = 'R '.
    AND LINE_NUM = (SELECT MAX (LINE_NUM)
    OF apps.PA_COST_DISTRIBUTION_LINES_ALL
    WHERE EXPENDITURE_ITEM_ID = d.EXPENDITURE_ITEM_ID
    AND LINE_TYPE = 'R')
    It gives me the output voltage:
    APR-08
    APR-09
    AUG-08
    AUG-09
    DEC-08
    DEC-09
    .........
    .........

    Could someone please tell how to do it in chronological order that as below:
    JAN-08
    JAN-08
    MAR-08
    .........
    .........
    JAN-09
    FEB-09
    .......
    .......

    Help, please.

    Thank you

    Add the following at the end of the statement:

    order by to_date(gl_period_name, 'MON-YY')
    

    Published by: bluefrog on March 31, 2010 13:33

  • Need help to play XP on Vista PC games

    Hi all, I have a few games for children PC for XP and now all of my computers running Vista.  Is it possible that I have Vista as XP games or not?  Thank you

    Hi phariah,

    Welcome to the Microsoft Answers community.

    Add to that Kevin J Baird says you can try the steps below.

    You can check the compatibility of games with vista using the link below.

    http://www.Microsoft.com/Windows/compatibility/

    You can also try to run your game in XP compatibility mode by using the procedure below.

    1 right click on the program icon, and then click Properties,

    2. click on the compatibility tab.

    For more information visit http://windows.microsoft.com/en-AU/windows-vista/Make-older-programs-run-in-this-version-of-Windows

    You can also run the XP Virtual Machine on your computer by downloading the link below using Virtual PC 2007.

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=04d26402-3199-48A3-afa2-2dc0b40a73b6&displaylang=en

    For more information visit http://windows.microsoft.com/en-AU/windows-vista/Virtual-PC-2007-Run-multiple-operating-systems-without-multibooting

    Hope this information is useful.

    Let me know if it worked.

    Thank you, and in what concerns:

    Umesh P - Microsoft Support

    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.

  • Need help with the site of the order.

    mxgraphicsnew Im trying to figure out how to build the right side of this page something like that a

    You can insert probably several text box into your form, where users can fill in the details with regard to the paypal button, you can place the button on the same page or create a landing page separate to form, where after submission users will be redirected and then final payment can take place with the paypal button.

    Thank you

    Anshul

  • novice needs help with some questions

    I was myself ball how to design a website that is now almost complete, I need help, ensuring that everything is in order.
    My question is;
    at present, all the img sources are in a file in my computer IE... My Documents\My webs\site\image.jpg
    Now is this good? When I send this through the server it will be placed in another file and then the source will be incorrect?
    Matter that has any help, I know I'm a little sore but I'm just learning!

    If the path you have for your img tags has my documents... then Yes, it will be incorrect when you move the images on your web server. I'll put just generally in the way, I use on the server and worry about the pictures once I get the downloaded pages.

  • 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

  • Need help with an order line shaped PowerCLI to follow development snapshots

    Hello

    I use Vshpere 5.1 and I need help to use PowerCLI out of information to audit some VM backups.

    My ultimate goal is to be able to verify which machines are being backed up.  Our backup tool uses instant VMware to run incremental backups so if we can follow what made instant due VM / deleted then we can better verify backups.

    I decided my inexperience with PowerCLI that it would be preferable for me to try a few small orders to see if I could get some decent results.

    The line of code I'm starting with is Get - VM * | Get-VIEvent - MaxSamples 20 | Where-Object {$_.} FullFormattedMessage - eq "task: Remove Instant"} ".

    Most of the time this script works however the output is interesting for me.

    Info: VMware.Vim.TaskInfo

    Key: 5360442

    ChainId: 5360442

    Createduserid: 2014/06/20 22:32:31

    Username: JJarvis

    Data Center: VMware.Vim.DatacenterEventArgument

    ComputeResource: VMware.Vim.ComputeResourceEventArgument

    Host: VMware.Vim.HostEventArgument

    VM: VMware.Vim.VmEventArgument

    Ds                   :

    Net                  :

    Dvs                  :

    FullFormattedMessage: Task: Remove Instant

    ChangeTag:

    DynamicType:

    DynamicProperty:

    Frankly, I was glad I was able to sign anything, but I'm confused as to why under "VM: 'told'"Vm: VMware.Vim.VmEventArgument"instead of the actual name of the VM."

    If I can find it to output the actual name of the Virtual Machine, so I can start to play with the formatting and obtained Export CSV files.  Any help you can offer would be much appreciated.

    Thank you

    I suspect a calculated property might be the way to go.

    Something like that

    Get - VM * | Get-VIEvent - MaxSamples 20 | Where-Object {$_.} {FullFormattedMessage - eq ' task: Remove Instant "} |

    Select @{N = 'The virtual computer name'; E={$_. Vm.Name}}

    You can of course view other properties of events returned to the Select-Object cmdlet even.

  • Hi, I recently bought numbers in order to create a commercial newspaper. I'm the pen and paper. I need help to create a formula. A purchase column determines if the entry price column is subtracted from the price of output column or output subtracted

    Hi, I recently bought numbers in order to create a commercial newspaper. I'm the pen and paper. I need help to create a formula. A purchase column; Determines if the entry price column is subtracted from the price of output column (buy) or subtracted from (Sell) entry exit. Thank you for your help

    Hi B',.

    Buying and selling in column B

    Price of entry in column c.

    Exit in column D price

    Formula (and outcome) in column E

    If the column will B always contained 'Buy' or 'Sell', it works. It is default to a calculation of 'sell' if sale or has been specified.

    E2: = IF (B = "Buy", D - C, C - D)

    If you want to delay the calculation until the amounts entered in C and D, use this version:

    E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, C - D) ")

    If you want to delay the calculation until all three ducks are on a line (B contains buy or sell, C and D contain both data), use this version:

    E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, IF(B="Sell",C-D,) "" ")))

    Third version used in this table.

    Kind regards

    Barry

  • Speed/performance of my mac mini (mid-2010) is very slow. Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.

    My mac mini (mid-2010) speed/performance is very slow - think of it as a result of letting my kids do "whatever" about it in recent years.  Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.  You will also need to get data out of old PowerBook G4.

    < object edited by host >

    We are users like you.  Search locally by using something like Yelp or similar

    http://www.Yelp.com/search?find_desc=Apple+repair & find_loc = Chicago, + IT & start = 0 & ortby = rating s

    or read a few links which may be relevant on this forum about the slow mac mini

    http://BFY.tw/5C63

Maybe you are looking for