A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Loading external SWF files

Threaded View

  1. #1
    Member
    Join Date
    Apr 2011
    Posts
    42

    Loading external SWF files

    I'm using this code to unload a swf file and go back to the main menu. The main menu has no trouble loading the external swf files but for some reason unloading just doesn't work :s

    function BackToMenu(i:MouseEvent):void
    {
    var BaseMovie:MovieClip = parent.parent as MovieClip; //Sets up a way of unloading this swf (back to main menu).
    BaseMovie.parent.removeChild(BaseMovie);
    }

    Edit: Code above now unloads loaded swf but just shows white.
    Last edited by AntBirch; 04-30-2012 at 06:28 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center