How can I play many swf files back to back in AS3

I have many swf files
fileA.swf , fileB.swf, fileC.swf
I want to play them from a MainFile.swf  back to back, fileA.swf , then fileB.swf then fileC.swf ...then to remove them and have the MainFile.swf only.
How is this done in AS3.
can anyone send me the code needed to do this. i don't know AS3 very well. I know how to do this in AS2 , i used to put code loadmovie in each files last frame that loaded the next file to a mc object in the mainfile.
I would apprciate to have all the code appear only in the main file without haveing to code each seperate swf file.

You should work out how to do it with just one file first in AS3.  The approach to doing many sequencially would be similar to what you did in AS2... the simplest way being to add a command at the end of each swf to trigger the main file to remove it and add the next swf.  I don't know of any way to detect the end of an swf... it has to tell you it's done.
In AS3 you use the Loader class to load swf and image files.  You use the addChild family of methods to place things on the stage, and you use the removeChild family to get them out of the picture.

Similar Messages

  • I used a third party programme called Mackeeper UGHHH,it moved loads of files to the trash now i do not know where they originally came from or belong!! the put back option is in grey??how can i manually put these files back where they belong?SO upset!!

    I used a third party programme called Mackeeper UGHHH SOOO Stupid i know,it moved loads of files to the trash now i do not know where they originally came from or belong!! the put back option is in grey??and will not work even when i highlight one by one!!
    how can i manually put these files back where they belong?
    i know i should have used time machine but i have not set it up and its too late for that now
    i have been researching and racking my brain on how to put these folders and contents of them back to where they once were all of the contents of the folder are still in tact AND i have not emptied my trash,my programmes and some of my apps are not working properly now...i use my computer alot for making music and things are jumbled up now...
    is there anyone out there who knows the answer to my prayers on how to go about putting these folders/files back to where they came from to restore functionality to my mac..Yes and thank u if u were going to tell me i HAVE un installed mackeeper...A very sad and upset Mac user!! Cheers Shane

    hello there thank u so much for ur reply!! ok i uninstalled mackeeper now and the put back option is still in grey im so confused...i tried restarting my computer like u said and put back still in grey??!! the files that are in my trash are everything from Accounts,address book plug-ins,address book,adobe,aim.........then stuff like apple,Audio,....to caches color pickers,colors,com.apple.TCC,to DVD player to facebook,google to ilifemedia browser to itunes to keychains to movie effects,preferences printers to skype...my Native instruments files BUT not all of them my garage band but not all of it...it seriously looks like my whole library is in the trash i tried to put things back where i THINK they belong and it just added the item or folder under where i thought it went and didnt restore functionality to for instance google chrome and all my book marks are there....they seem to be only certain things from my library that would have added some functionality to apps and programmes like my garageband is missing stuff photobooth wont work so on.......kinda looks a bit like this thats only the half of it!! Cheers shane!!!

  • How can I import a .swf file in Adobe Flash CS4?

    Hi,
    How can I import a .swf file in Adobe Flash CS4?
    Thanks.

    you can use file/import but that would be a mistake.
    you should "load" your swf, not import it.
    if you want to load it and need help, are you using as2 or as3?

  • How can I play MPEG-4 files in Premier Elements?  It plays in iTunes but I only see video in Element

    how can I play MPEG-4 files in Premier Elements?  It plays in iTunes but I only see video in Elements

    LGSh
    Lots of questions, lots of answers needed as mentioned by Hunt. But please include what version of Premiere Elements that you are using when you reply.
    How are you importing these file into your Premiere Elements project?
    After you drag your file to the Timeline, do you see both an video and audio component (on Video 1/Audio 1) or is there nothing on the Audio 1 track? If you can see a wave form or file on Audio 1, have you checked all the program's volume settings including Edit Menu/Preferences/Audio Hardware and the ASIO settings?
    More later.
    Please do not hesitate to ask if you need clarification on anything written.
    Thank you.
    ATR

  • Premiere pro Encoded file having m4v & .wav & m4v.xmpse files how can i play this video file?

    Hello Guys,
    I am a beginner in Premiere ,just started learning.Created a project and wanted the finished project file as a bluray format,after 14 hours  adobe premiere pro(not encore) created all the above three files,what to do next? how can i play the video file?
    Kind advise pls

    Dear Mr,Hunt,
    You made my day....i felt its more than special a christmas day,thank's a Trillion..downloaded the MKV MERGE GUI ,within ten minutes job done!!!!!!!!!
    All my 16 hour rendering job is saved.End of the day i learned something new toooo.
    I would like to ask you a question which is not connected to this topic,i asked this question before in windows 7 forum but till date no body solved!!
    I am having few avi video files which having (avi.avi) extension i couldn't figure out how its occured(they all video files captured from samsung galaxy note,and appeared noraml avi files but became avi.avi i tried removing one extension,eventhough it says having one extension when you look in to the properties of that file you can see avi.avi ,the problem is eventhough it playable in vlc sometime,when i try to import to premiere pro -it says the file is corrupted.
    any idea??

  • How can I convert a.swf file to a .avi file?

    How can I convert a.swf file to a .avi file?

    I already checked out about 30 of these links using the same Google search words. I'm on a Mac platform, and most of them have Windows-friendly downloads/apps. Some have Mac-friendly apps, none of which have worked so far.

  • Can you play/view swf files on adobe air for android?

    Hi, yes; I'm new here, as well as to Adobe Air, and I'm still trying to learn the ropes around here, and I apologize in advance if this has already been asked, or I have placed this question in the wrong forum.
    The thing is, I was wondering if it was possible to play my SWF files via adobe air for android; and if so, how? Thanks in advance either way.

    Can you please give directions where can i clear that cash.
    Anyway i don`t think its the case, because this is first time i hooked phone to internet, and first time i launched Android app store.
    Edit:
    I went to https://market.android.com and there is Adobe air app. But when i try to download it says that my device doesn't support it (Samsung Galaxy GT-I5500) By default it comes with android 2.1 and doesn't support Adobe air, but i upgraded firmware to 2.2.
    Maybe that is the reason it doesn't show me Adobe AIR in app store - based on my phone, not my Android version ?

  • Flash player can't play a .swf file alone

    I've have a weird issue regarding flash.
    I used Flash CS5 to create an interactive presentation. Everything works perfectly.
    My problem is, for some unknown reason, everytime I try to open a stand alone .swf using flash player, the player always opens my interactive presentation instead  and tries to load the .swf INTO it. Using the finder's info window, when I do select a .swf, I get the information all my .swf have been changed to "interactive presentation files", and the default application assigned to open these files is my own presentation.
    I can manually change these settings to select Flash player or Flash CS5 back as the default application for all .swf's, but as soon as I close the info window, the files immediately becomes "interactive presentation" files again, so Flash player insists in openning the fiels inside my presentation.
    There's a permanent way to fix this?
    I'm using a Mac Intel core duo 2.
    EDIT: I temporarily solved the problem deleting all copies of my presentation's projector. The flash player atemmpted to use another presentation instead to open .swf files, so I deleted that one too. After that, now plays the .swf files as normal. The only problem is, if for any reason I do re-install any of my interactive presentations proyectors, Flash player  immediately tries to use them to play the .swf's... so the problem really remains unsolved.

    The web flash player does not play stand alone .swf files on your computer.

  • How can i play (wmv) video files on E90 ?

    I was download video files (wmv) and it is not played on my mobile ..
    How can I play it ?
    Is there any app for this Files to play ?

    At the moment unfortunatley there is no app that can play those file types..
    Joing the bandwagon of other users who are waiting for an app to be developed.
    iPhone 5 32GB
    MacBook Pro Retina 15" Mac OS X Mountain Lion 10.8.4

  • How can I import an ibook file back into iBook Author?

    I exported an ebook from iBook Author thinking it is the equivalent of saving the file.
    I did not save the file, I only exported it and than exited the program.
    My active file is vannished.
    I need to make some adjustments to the ebook, but can not bring it back up.
    Is there a way that I can re-import the iBook file back into iBook Author?
    When I open iBook Author and try to open the exported file the program does not recognise the ibook file...
    Thanks for your help!

    Check for previous versions of that book in iBA....even if not saved.
    You can dig into the .ibooks file by changing the suffix to zip, but you'll have to manually extract what you can from assets you find. Please only do this with your own books.

  • How can i open pc .swf files

    How do I open PC .swf files?   Dialogue message:The document “Chapter7_review.swf” could not be opened. AppleScript Editor cannot open files in the “AppleScript Editor Document” format."

    It's normally adobe flash format.
    If you don't want to install flash (Lion does not install it) use the 'google chrome' browser which has it's own flash player.
    I use Lion > Safari > with No Flash installed and just use the develop menu option to open the page in chrome if necessary..

  • How can I get my swf files playing on browser?

    Hello,
    I've been designing my first website and have used dreamweaver, which is very new to me. I've followed a very good beginners guide to making websites and all was well. However, it had nothing about uploading swf files. So I did some research, and found that the easiest way was to insert them into a div box using the media section and choosing swf. again all was well, I can preview it in chrome etc.. and all works fine.
    I've come to uploading my site and I've used filezilla, uploaded all the files but I can't see the swf playing on the website. I've looked into it and I just can't find the answer. I've tried uploading them directly into the root folder as well but that doesn't work.
    Can somebody please help me!!
    here are the links:
    www.creativecanvassing.co.uk = the swf should be positioned between the orange logo and the "national direct marketing company' text. There is also the section in picture which has the same problem
    not too sure how to attach the copy of the file that shows its all working
    Thanks

    Hello,
    are you really sure that you have uploaded this page with contents? I've got this, when calling this link: http://www.creativecanvassing.co.uk/pictures.html:
    Your swf file is running in my IE8 like a charm in all your other pages.
    Hans-Günter

  • How can I encrypted my SWF file

    Hi
    I will create  some SWFs and will want it to be played on WINCE device platform, but i need the SWF be encrypted and only played on my device. How can we do?

    All rather vague so I'll just guess:
    1. Restore from your back up
    or
    2. Use a file recovery application like File Salvage - you can download a free trial and it will scan the disk for you and tell you with might be recoverable. Actual recovery will require that you purchase the app. There may be many files with the same or similar names. Always recover the largest file size.
    There are other such apps. Search on Macupdate or the App Store

  • How can I call in swf file to movie clip?

    Hi all ...
    This is my first post for advise, although fairly conversant
    with flash and as2.
    I am developing a new full screen background style website
    and have menu buttons contained within a movie clip (nav_c1) ...
    this re-aligns to the top centre of a page when user scales the
    browser window.
    I then have the content area (centre_content) movie clip ...
    this realigns to the centre of the page when a user scales the
    browser window.
    I have scripted the menu buttons to goto a labelled frame in
    the main timeline but I need, when at the labelled frame, to be
    able to call/load in an external swf file to play 'inside' the
    centre_content movie clip?
    for example:
    If I click my news button the flash file moves to the frame
    label news on the main timeline. This then shows a duplicate of the
    moive clip 'centre_content' which is called 'centre_news'. I need
    to be able to call/load an external news.swf, containing all the
    animated news info, to sit and play 'within' the movie clip
    'centre_news' ... so that it is effectively contained 'within' the
    movie clip file but loaded in place from an external swf file.
    Can anyone help please?
    I can post a rough working example online if need be.
    Many thanks
    A puzzled Adrian
    ps: I don't think I am needing to load the swf to a level 1
    area as I have tried this and instead of the swf file being loaded
    and contained within my movie clip file/area it instead seems to
    sit fixed on the main timeline (ie: not contained within the movie
    clip area).

    Thanks Sketchsta for you code. This looks like we're on the
    right lines as I see what the code is trying to do.
    Unfortunately though I can't seem to get this to work?
    I created a new file to get rid of other scripting that was
    going on and have placed a movie clip called centre_content onto
    the main timeline in frame 1 ... then I have applied your script to
    an actions frame above the movie clip also on frame 1. I change the
    path_to_file line with my swf name (callin.swf) which is a 1 frame
    flash file with some text on it ...
    ... but it doesn't bring in the callin.swf file ... it just
    shows the centre_content clip.
    Am i doing anything wrong?
    I also tried putting the script onto the first frame inside
    the centre_content movie clip but this doesn't appear to work
    either.
    Regarding the pre-loader ... can I simply build this into the
    swf file that is being called in to the movie clip?
    Thanks in advance for your support, it is much appreciated.
    Adrian

  • How can I download a .swf file?

    Hi everyone!
    I'm trying to make an Objective-C application (using Apples Cocoa framework) to download .swf files off the internet.
    All the my program requires ia the URL address of the .swf file, (http://media.y8.com/games/content/Bowser_Ball.swf, for an instance). And then you're supposed to click the "Start download" button to start downloading the .swf file. But how could I actually download the file, and save it to a file on the users disc?
    What would you suggest? - Please post a snippet or a link for reference .

    Ahh thanks, I got it downloading the .swf files now, and I can play them without any problems what so ever!
    My only concern now is the user interface!
    I have this message box in which it is supposed to print "Downloading and saving SWF file.." and then start the animation of a NSProgressIndicator and then print "Downloaded and saved!" and stop the animation of the NSProgressIndicator once the files is downloaded & saved.
    But it's like it's downloading and saving first, and then starting and stopping the animation etc, etc.. so I never actually get to see the animation & text updates? - How can this be changed? - Here's a link to my Controller.m class:
    http://pastebin.com/YKHVPr3H .

Maybe you are looking for

  • Error Message when installing All In One Product

    I am having to re-install my HP Officejet 6500 e709a software.  I am getting the following error message when I try to install it.  Anyone have any suggestions on how I can correct this? Thanks, JN This question was solved. View Solution.

  • How to set BO SDK path and classpath in cmd

    Hi, I am new to BO sdk .. I am working on BO XIR2 SDK. I need to run the java program using command prompt. In lib directory of the BO SDK, I have jar files.Could anybody let me know how to set the path, classpath related to BO SDK in command prompt?

  • ITunes can not run because some of it's required files are missing...

    'iTunes can not run because some of it's required files are missing. Please reinstall iTunes.' I get this message when i try to start iTunes, I have reinstalled iTunes for two times know and it still doesn't work. Can anyone please help me with this,

  • Embed a pdf into captivate and publish in LMS?

    I am able to embed a .pdf into captivate 7. I have altered the imsmanifest and added the documents and when I test it, it works! BUT when I zip the file it will not work?

  • Batching a signature stamp onto 100 pdf in same location

    I have 100 Word one-page docs that all need the same pdf stamp signature in the same place on the Word/pdf one-page document. I know that I can batch the pdf but can I also add a signature too? How?