Question about ActionScript Loader and URLRequest

Discussion in 'Programming' started by :shibster:, Oct 14, 2007.

  1. #1
    When I use the Loader and URLRequest functions to load an external swf into the movie, are there any variables characteristic of the external swf? Can I fade in or out the whole file upon load or unload?

    Also, can I arrange multiple loaded files to overlap the way I want them?
     
    :shibster:, Oct 14, 2007 IP
  2. :shibster:

    :shibster: Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In the help file it appears you can set the front-to-back order by using the addChildAt function.

    simply implemented I did:

    var myContent:Loader = new Loader();
    var myMenu:Loader = new Loader();
    
    
    
    myContent.load(new URLRequest("drink.swf"));
    myMenu.load(new URLRequest("header2.swf"));
    
    addChildAt(myContent,0);
    addChildAt(myMenu,1);
    Code (markup):
    but myContent is still overlapping on top of myMenu

    nevermind. for some reason the header2.swf contained the overlapped drink.swf. so no matter what I did it would always appear on top, even though the main swf was loading it properly.
     
    :shibster:, Oct 14, 2007 IP