A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Communication

  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    96

    Communication

    Hi,

    I have main.swf that loads several externals swf's.

    How do I communicate that I need to have an external swf unload another swf once it's loaded?

    Something like unloadMovie(2); in the last frame of the new loaded swf, but this isn't working obviously.

    Also I have buttons that are in a separate swf; how do I write this properly in order for it to go to the time line in the main swf?

    on (release) {
    _root.gotoAndStop("contact");
    }

    Thanks!
    Last edited by SWEET 1; 11-11-2007 at 11:23 AM.

  2. #2
    Senior Member
    Join Date
    Jun 2007
    Posts
    204
    _root.mc.removeMovieClip ();

    The above assumes the movie clip is on the _root (main) timeline and is named, "mc".

    on (release) {
    _root.gotoAndStop("contact");
    }

    The above script will execute on the release of a button. The script will tell the _root (main) timeline to gotoAndStop on a frame labeled, "contact".

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