A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: loadmovie + frame #?

  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    95

    loadmovie + frame #?

    Is it possible to load a movie and have it link to a particular frame within the loaded movie?

    Right now, I have:

    }
    on (release) {
    loadMovieNum("movie.swf", 0);
    gotoAndStop(3);
    {


    Thanks

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    A movie can not go anywhere until its loaded. So you can not use a goto command on tha button that load the movie.

    However you can set a variable that the loaded movie will read and act upon, but not if you replace the movie that calls the external swf ( your code means that you replace whatever is on _level0).

    If you load the external movie to _level 1 instead you can set a variable with the button like this....

    on (release) {
    loadMovieNum("movie.swf", 1);
    whereToGo="myFrameLabel";
    {

    In the external movies first frame you can have

    gotoAndPlay(_level0.whereToGo);

    It will make the external movie fo to a framelabel, in this case named myFramelabel in its timeline.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

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