What is the code to load a .swf file in AS3 on the same layer?

I'm new to AS3 and am trying to figure out the code for loading a .swf file on the same layer of the same page, thereby replacing all of the information. I don't want to put it on layer 2, etc. Another easy thing I can do in AS2 but am struggling with in AS3.
thanks!
Steve

There are no 'layers' in AS3 - there is just the display list. You can use addChildAt to add things at a specific depth - thereby placing it behind or above something, but if you just use addChild it goes on top of whatever is currently there...
Anyway - to answer your question, you can load a .swf with a Loader object like so:
var l:Loader = new Loader();
l.load(new URLRequest("myFile.swf"));
addChild(l);
You can wait for complete like was shown, but you don't have to. And this will not 'replace' anything - it just loads myFile.swf on top of anything currently being shown. If you want to 'replace' what's there you need to remove it first:
while(numChildren){
     removeChildAt(0);

Similar Messages

  • Can I combine two methods of code to load various SWF files into the same location

    I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
    Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
    [CODE]
       function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                   name:image.@name + "Thumb",
                   width:_THUMB_WIDTH,
                   height:_THUMB_HEIGHT,
                   //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                   //x:260, y:320,//doesn't work here but works in line 69
                   scaleMode:"proportionalInside",
                   bgColor:0x000000,
                   estimatedBytes:13000,
                   onFail:_imageFailHandler}),
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                    name:image.@name + "Image",
                    width:_IMAGE_WIDTH,
                    height:_IMAGE_HEIGHT,
                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                    x:0, y:144,
                    scaleMode:"proportionalInside",
                    bgColor:0x000000,
                    estimatedBytes:820000,
                    onFail:_imageFailHandler})
    [/CODE]
    Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
    Previously this is what I did to achieve it. I would specify a String:
    [CODE]
    var sourceVar_ProductsPopUps:String;
    [/CODE]
    and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
    [CODE]
    function onClickSumix1PopUp(event:MouseEvent):void {
      sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
      gotoAndPlay("prdctsPopUps");
    [/CODE]
    Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
    [CODE]
    loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]
    But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
    [CODE]
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
    [/CODE]
    and
    [CODE]
    new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]

    Thanks for looking into my issue.
    Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
    So, my main flash file is broken into labeled sections on the main time line.
    One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
    "ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
    Everything works fine (with your previous help)
    Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
    function _xmlCompleteHandler(event:LoaderEvent):void {        _slides = [];       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.        var imageList:XMLList = xml.image; //In the XML, we have  nodes with all the info we need.        //loop through each  node and create a Slide object for each.       for each (var image:XML in imageList) {         _slides.push( new Slide(image.@name,               image.@description,               new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",               {                    name:image.@name + "Thumb",                    width:_THUMB_WIDTH,                    height:_THUMB_HEIGHT,                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                    //x:260, y:320,//doesn't work here but works in line 69                   scaleMode:"proportionalInside",                    bgColor:0x000000,                    estimatedBytes:13000,                    onFail:_imageFailHandler}),                 new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",                   {                     name:image.@name + "Image",                     width:_IMAGE_WIDTH,                     height:_IMAGE_HEIGHT,                     //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                   x:0, y:144,                     scaleMode:"proportionalInside",                     bgColor:0x000000,                     estimatedBytes:820000,                     onFail:_imageFailHandler}) 
    Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
    P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away.

  • Can button in loaded SWF file unload or close the file ?

    Hi,
    I am loading 2 SWF files A and B, I have a button on each.
    When I press button on SWF A it loads SWF B. However I cannot get
    the button to close / unload the SWF A.
    Is this possible ?
    To Load I am using:
    Thanks,
    Paul

    No.I am using Loader since I dont need to pass one URL for fetching swf content.I need to get the displayobject from ByteArray which should be free from all the security issues.I heard that we cannot set 'securityDomain' property of loaderContext (using in Loader) in AIR.So please give a solution for getting bytes.

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

  • Loading external .swf files issue...

    Hi,
    I'm working on a simple example of loading external swf files with some ActionScript.
    I've placed an instance of List Component and gave it an instance name of loadList. Using Component Inspector, I assigned data for 4 external files as below:
    Next, I've added a UILoader component (instance name - loadWindow). The code that is supposed to load the content into UILoader is this:
    loadList.addEventListener(Event.CHANGE, selectItem);
    function selectItem(e:Event):void
        loadWindow.source = e.target.selectedItem.data;
    When I run it in a FlashPlayer, it only loads the first 2 swf files....  (I checked the files and all files are fine).
    I hope to get some light on the issue so any help will be appreciated.

    Try tracing e.target.selectedItem.data to make sure it's what you expect.
    Also, have you tried using the load() method instead of the source property?

  • Loading external swf file

    Hi all,
    I am trying to load an external SWF file into my website.. but it is not working. Here is my code
    public var CD:Loader=new Loader();
    protected function application1_creationCompleteHandler(event:FlexEvent):void
    CD.load(new URLRequest("http://localhost/assets/slide.swf"));
    addChild(this.CD);
    CD.x=2;
    CD.y=170; 
    // TODO Auto-generated method stub
    Can anyone tell me what is going wrong..
    The url is correct and its working in my browser when i type 'http://localhost/assets/slide.swf' in the browser... So problem is with flex..

    I am pretty sure that Flash's security measures prevents the coder from loading swfs that are not local to the swf that is trying to load them.  So the swf that is trying to load another swf would have to be on the same system or same networked server.  From what I have experienced its best to reference the location of the files from the swf that is doing the loading.  I am not sure if you are still referencing your swf as "http://localhost/assets/slide.swf" but that might be a problem as well.
    so
    mainfolder
    movie.swf
    assets
    slide.swf
    so in movie.swf
    //Start: Put in desired function
    var swfLoader:Loader = new Loader();
    swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
    swfLoader.load(new URLRequest("assets/slide.swf"));
    //End
    Also add this function
    public function loadComplete(e:Event):void
         stage.addChild(e.target.content);
    This might help explain it
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html
    the first set of bullet points highlight the security options
    ps. I got this working on my end, copy and pasted the code, of course i had to recreate the file system structure and slide.swf

  • Loading local swf files from Application Dir (ios)

    Hi Guys,
    I would like to load additional local swf files to my ios release build but I am confused a little bit because of the new API changes.
    As far as I know at the moment (from Air 3.7 or newer) it is allowed to load local swf files that contains compiled actionscript both from local folder and from a predefined remote host as well. 
    My assumption based on this article:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
    I created the text file to include all of my local swf file names and created the following node in the application.xml:
    <iPhone>
           <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs>
    </iPhone>
    When I compile the release build (ipa) using command line adt, it converts all of my local swfs into the stripped swfs which is perfect, but even though I include all the swfs in the compiler command, it puts only the SampleSWFInfoFile.txt file into the assets folder in the ipa but not the swf files.
    I assume, it thinks I will load these files from an external host, but I would like to include them in the app itself.
    I tried to copy the stripped swf files from the externalStrippedSwfs folder and comment the <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs> node in the application.xml and compile it and this way it puts the swf files into the ipa, but when I try to install and launch the app it crashes and when I test it using Flash Builder it shows an error message
    "VerifyError: Error #1042: Not an ABC file."
    Do any of you guys know the  solution for this problem?
    Thank you for your help in advance!

    You're publishing in AOT mode as long as you use one of these:
    The AIR Developer Tool or ADT has targets that lets you package apps either for the AOT mode or Interpreter mode. The targets for packaging in AOT mode are ipa-app-store, ipa-ad-hoc, ipa-test and ipa-debug.
    Flash Pro CS6 and Flash Builder automate this process pretty well so it's invisible but the SWF loads and executes code just fine for me when directly published.
    If I take it to command line I can use this to compile successfully (iPad test app):
    adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore my.p12 -provisioning-profile my.mobileprovision NameOfApp.ipa NameOfApp-app.xml NameOfApp.swf iTunesArtwork iTunesArtwork@2x AppIconsForPublish swfs/swfs.txt swfs/GenerateText.swf
    I at least include generic icons in there but I made a 'swfs' folder and placed 'swfs.txt' and 'GenerateText.swf' in there. The SWF uses code to randomly generate text and changes every second using a Timer. I load it in using the same code you do with the ApplicationDomain.currentDomain context. I see the SWF appear and text start randomly changing.
    As I compile there's a folder generated called 'externalStrippedSwfs' with the stripped SWF in there.
    One thing to note is I do not supply <externalSwfs>swfs/swfs.txt</externalSwfs> in my iPhone settings. If I do that it doesn't work. I supply the path to the text file containing the SWF I want to be stripped to adt itself along with the SWFs I want stripped and it takes care of the rest.

  • Loading external swf file in a new window

    Hi,
    I've got a few .swf files with video tutorials I've created using Captivate 4.
    I wanted to link them so I've created a main screen with menu with buttons in Flash.
    I've added AS to load the external swf files but they load in the same window. How can I load these .swf files in seperate window so that you could get back to the main window after you've finished watching?
    Here's my code:
    stop();
    var myLoader:Loader = new Loader();
    button1_btn.addEventListener(MouseEvent.CLICK, movie1_1);
    function movie1_1(e:MouseEvent):void
        var myURL:URLRequest = new URLRequest("01_01_Welcome.swf");
        myLoader.load(myURL);
        addChild(myLoader);
    I'm also attaching screenshot with menu in flash

    I've deleted the line and now the code lookes like that:
    stop();
    var myLoader:Loader = new Loader();
    button1_btn.addEventListener(MouseEvent.CLICK, movie1_1);
    function movie1_1(e:MouseEvent):void
        var myURL:URLRequest = new URLRequest("01_01_Welcome.swf");
        addChild(myLoader);
    Unfortunately, it doesn't load the .swf file when you click on the button...

  • How do I set Adobe Flash Player as the default program to open SWF files?

    Basic Overview
    I have this working fine at my home laptop, however I need this working for projects at school.
    Whenever I want to open an SWF file at home, I simply double click it and open it in Adobe Flash Player (Adobe Flash Player 10.0 r22) and I have no problems!
    However, when I am at school I have to run SWF files within Internet Explorer, Adobe Flash Player IS installed, but the SWF files are not opened in that directly, they are opened within Internet Explorer.
    At Home
    If I right click an SWF file at home and select "Open With" and then "Choose Default Program...", Adobe Flash Player is already there under the name 'Adobe Flash Player 10.0 r22', so I can simply select it as the default. (On my home laptop)
    At School
    At school if go to "Open With" and then "Choose Default Program...", Adobe Flash Player IS NOT there, only Internet Explorer and some other programs in the other programs box. (On my school laptop)
    Question
    How can I assign Adobe Flash Player as the default program for opening SWF files (on my school laptop)? If I select "Browse..." and go to C:\WINDOWS\System32\Macromed\Flash there is no file with a description of 'Adobe Flash Player 10.0 r22', is the file for the actual program located somewhere else or have I just no looked properly in the folder?
    I really need these files opening in Adobe Flash Player directly and not in Internet Explorer (I know you can set the view to 100% and have it sized correctly)
    Thanks you to everyone who helps!
    -Charlie! (Yes I know I don't need to write this in a forum)

    The standard Flash Player is a browser add-on, and not a standalone player.  So what actually opens when you open an SWF file at home?  Flash Player Projector?
    If so, you also need to download it at your school, from http://www.adobe.com/support/flashplayer/downloads.html, then do the file association.

  • How do i stop loading a swf file which is still in progress.

    //I have three buttons on the stage (btn1, btn2, btn3)
    when i click the first button swf starts loading
    while the swf is loading if i press the 2nd button
    the first swf wont stop loading and both the swfs start playing
    but if the first swf is fully loaded then every thing workes fine.
    so please let me know how do i stop loading a file which is still in progress.
    var _contentSWF:ContentSWF
    var _content
    btn1.addEventListener(MouseEvent.CLICK, handleClick)
    btn2.addEventListener(MouseEvent.CLICK, handleClick)
    btn3.addEventListener(MouseEvent.CLICK, handleClick)
    function handleClick(){
        if(_content!=undefined){
            _contentSWF.removeContent()
            removeChild(_contentSWF);
            _contentSWF =null;
        _contentSWF = new ContentSWF()
        _content = addChild(contentSWF);
        _contentSWF.init(some path.swf)
    //ContentSWF.as
    private var _path:String
    private var swfLoader:Loader
    private var _content
    public class ContentSWF extends Sprite{
        public function init(path){
            if(_content!=null){
                _content.content.removeEventListener(Event.COMPLETE, completeHandler)
                _content.removeChild(mymc)
                _content=null
            swfLoader=new Loader();
            _path = path
            swfLoader.load(new URLRequest(path));
            swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        public function removeContent(){
            swfLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            swfLoader.unloadAndStop()
        private function swfLoaded(e:Event){
            _content = addChild(mymc)

    Thanks Kglad, it all worked fine but can you help me in this.
    I have 4 movieclips (_a,_b,_c,_d) when i click each of the movieclip they load a SWF(my_mc)
    now when the swf file loades it starts loading a Sound(mp3)
    Now when i press another button  (_b) while this mp3 is loading
    all the methords like  Loader.close and loader.unloadAndStop() workes fine  but i dont know how dose the MP3 loades and start playing
    I also used the below script in  my_mc.swf , but it wont work
    this.addEventListener(Event.unload, myfun)
    function myfun(e:Event){
    \     if(_sound.bytesLoaded<_sound.bytesTotal){
              _sound.close()
         if (_chanel){
              _chanel.stop()

  • Loading as2 swf files into as2

    i had load my swf file with as2 and i like to add controls like play pause stop time slider for its pls help me with some examples ........................

    use google to search for a tutorial about as2 timeline control.
    if you need help with code you're trying to implement, ask here.

  • When I reload an HTM page using a SWF file like a   menu, the HTML page doesn't shows the SWF again!

    Dear Sirs,
    I hope to be directing my question into the correct forum's place.
    I'm new in flash and I'm trying to make some tests
    My problem is the following:
    I included one SWF file into 3 HTM pages.
    This SWF works as a little menu.
    The SWF file (named "menu.swf") contains 3 items working as command buttons to access the three different HTM pages
    Each HTM page contains the same "menu.SWF" file, some HTML text and one picture.
    The swf contains:
    Button 1 -> calls page1.htm using:
                on (press) {
                getURL("./page1.htm", "_top");
    Button 2 -> calls page2.htm using:
                on (press) {
                getURL("./page2.htm", "_top");
    Button 3 -> calls page3.htm using:
                on (press) {
                getURL("./page3.htm", "_top");
    When I enter to "page1.htm" it appears correctly showing the swf file and all the HTML text.
    It is OK.
    But when I'm in "page1.htm" and I click on "Button1" (to reload "page1.htm") the only thing that I can see (after reloading page1) is the HTML text and the picture, but I cannot view the "menu.swf" file.
    "menu.swf" remains in its place, but "invisible".
    You can click on its command buttons, but anytime I click on the button that loads the same page (for example: "Button 1" to reload "page1.htm") the
    swf file(s) doesn't appears.
    The same thing happens when I'm in page 2 with Button 2 to reload page2 .htm, and so on.
    How can I do to solve this problem?
    Sorry for my not good english but I'm spanish speaker.
    Thank you!
    Gus

    The path in the buttons is not correct once you navigate to the htm page.
    So here you are on the landing page and the menu button says to get to "page1.htm" go up one folder level  (../) to the file page1.htm.
    Now once you are up one level, either you loose access to the .swf because from that page the path to the .swf is not correct, or if the .swf does show, then the path in the buttons back to the other pages is not correct, because you are now one folder level higher.
    If I am mis-reading your post and all pages are in the same folder, then remove the "../" part before the page name in the URL. Or perhaps you are using ./ to denote the current directory... I'd still suggest removing it. So the the getURL would look like this :
    getURL("page1.htm", "_top");
    if all pages are in the same folder.
    And if I am reading your post correctly, then you cannot use the same button URL to get to ("./page1.htm", "_top"); and once on page1.htm use that same URL to get back down to your landing page.
    So I'd say it's a pathing problem.
    Give that a try and see if it helps.
    Best wishes,
    Adninjastrator

  • I have an IPad with a Restriction code that we cannot remember.  Is it possible to delete and restore the IPad without the code?  If not how do I figure out the code or how t? o remove it?

    I have an IPad with a Restriction code that we cannot remember.  Is it possible to delete and restore the IPad without the code.  If not how do I figure out the code or how to remove it?

    The only option is to wipe the device clean and restore it to factory settings.  Hope you have a backup.
    Follow the instructions in  iOS: How to back up your data and set up your device as a new device http://support.apple.com/kb/HT4137 to restore the device to factory settings.
    Once you have setup the device as a new one, you can then sync it back with your iTunes account and all your music, apps, contacts and any other content sync'ed with iTunes will be loaded on the device. Any content that is stored only on the device and not sync'ed with iTunes, like app logins or data, will be lost during this process. Be forewarned that this is a long process and can take a couple of hours or more to complete. This can be painful, but it is necessarily so to prevent users from working around the security settings. After the restore is complete, you can setup a new Restrictions passcode. Make a note of the passcode to avoid this situation in future.
     Cheers, Tom

  • How to load large SWF files?

    I have created a flash game which is about 11 MB in size and i have created the progBar in the first frame of the swf...
    But it only shows the loading process after few MBs of data beign loaded...which might take some time and cause the user to close the tab..
    I dont want this to happen...How i could tell the user at least that the swf is loading without any percentage and all the animations..
    Like putting a <div> tag at the back of swf file..so until the swf load the div tag with "loading" message can be shown...I tried this method but it wasnt working for me and i dont know why.
    I hope flash masters at this forum could help me.
    Tq

    gameLoader.source="MapleCity0.1.13.12_800.swf";
    gameLoader.load();
    gameLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    gameLoader.addEventListener(Event.COMPLETE, completeHandler);
    gameLoader.addEventListener(IOErrorEvent.IO_ERROR, catchScoreIOError);
    function progressHandler(event:ProgressEvent):void {
        var uiLdr:UILoader=event.currentTarget as UILoader;
        var kbLoaded:String=Number(uiLdr.bytesLoaded/1048576).toFixed(1);
        var kbTotal:String=Number(uiLdr.bytesTotal/1048576).toFixed(1);
        ui.myLabel.text=kbLoaded+" of "+kbTotal+" MB"+" ("+Math.round(uiLdr.percentLoaded)+"%)";
        ui.myProgressBar.setProgress(event.bytesLoaded, event.bytesTotal);
    function completeHandler(event:Event):void {
        ui.visible=false;
        gameLoader.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
        gameLoader.removeEventListener(Event.COMPLETE, completeHandler);
    function catchScoreIOError(event:IOErrorEvent) {
        if (event.type=="ioError") {
            ui.myLabel.text="Cannot establish a connection to the server. Please try again later.";
        } else {
            ui.myLabel.text="ERROR : "+event.type;

  • Load external SWF file into another SWF

    Hello all.
    I've tried loading a .swf file externally into another .swf file on my  local drive, and it works. Now, when I try to Simulate Download, the  preloader in the 2nd file doesn't get played and the images in there  take a while to get displayed.
    I need to load a .swf file from a server into the parent .swf file(I'm  working on using a "thin flash file" for added security for the company I  work for - blank file which loads the content from another file on  their server).
    So far, I have:
    try
        var myLoader:Loader = new Loader();
        addChild(myLoader);
        var url:URLRequest = new URLRequest("newBook.swf");
        myLoader.load(url);
    catch (e:Error)
        trace("ruhroh");
    When I replace the "newBook.swf" with the URL of another .swf, there's just a blank page.
    I'm not too sure how to proceed, and I hope you will be able to help me out. I'd greatly appreciate the help.
    Many thanks,
    -Nazgul

    What happens is...when I set the speed to DSL(32.6kbps), the screen is blank and the preloader doesn't show up. It just goes directly to the Main screen. And then, the pages inside don't get loaded properly.
    This only happens when I try to Simulate Download.
    But that's not really the problem. I need to load a .swf file from a server into another .swf file, and just adding the link to the child .swf isn't working.
    Anyway, thanks for your help
    -Nazgul

Maybe you are looking for

  • How to unmark junk mail in mail 5.1?

    I am unable to find a way to unmark mail as junk in Mail 5.1 (OS X Lion).  In previous versions of Mail, there were obvious ways to do this. Can someone tell me how to do this? 

  • [bridge cc] Mini bridge cannot be launched

    Running adobe cc tools on win7 I have the With Bridge cc (verified from help/`about bridte') running, I cannot get a minibridge.  The full message reads: Mini bridge cannot be launched because the Mini the bridge extension is not installed I'm not fi

  • DOUBT IN Z table

    Hi    in my object i want to create Ztable to link old and new custmor account numbers. plz help me out in this problem thanks

  • Buyer Work Center - Group by Choice List Needed to Requistion

    Hi Guru's, In R12.1.3 Application - Purchasing Super User I am looking for personalization of self service page in PO Buyer work center for Requisition update. I wanted choice list/LOV Group by in Request header of Requisition self service page to be

  • Working on an E-Book...Must I publish???

    Hey, so I'm using iweb to create an E-book for an IT project which I'll be sending on a CD to Edexcel for correction. Therefore I don't have to publish the website. But I need to make my website work like how it would work inFrontpage when you previe