dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: loadmovie?to be or not to be?

  1. #1
    Senior Member
    Join Date
    Aug 2002
    Posts
    111

    loadmovie?to be or not to be?

    what do u think is the best way to have diff pages.because when i put this code on mc1 and mc 1 is in mc2 so like this



    root{
    mc2{
    mc1 has this code{
    PHP Code:
    this.onRelease{
    _root.gotoAndStop("air",1);

    }ens mc1
    }end mc2
    }root end

    if that makes sense to goto another scene for a weird reason it wont work

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Targeting scene names on the main timeline, from within movie clips or external movies loaded on other levels won't work. You have to use frame labels. Thus label the first frame of your "air" scene with an unique label such as air, add _root (from within movie clips) or _level0 (from movies on other levels) and target that labeled frame in your script...

    this.onRelease = function() {
    _root.gotoAndStop("air");
    }

    Oh! And do correct your onRelease code line as above!

  3. #3
    Senior Member
    Join Date
    Aug 2002
    Posts
    111

    oh ya!

    Thanks..now i remeber thats how i did it before.....and in the
    onRelease function just so u know i used the correct syntax in the fla ,just couldent remeber it for the forum and can u loadmovie from within the movieclip

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