A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: linking btwn scenes

  1. #1
    Junior Member
    Join Date
    May 2003
    Posts
    13

    linking btwn scenes

    this is a bit of a beginner's problem, but I'd appreciate any advice..
    basically, I have a movie clip within a scene, & upon reachning the end of this clip I have an
    on(release) gotoAndPlay (Scene 1, framelabel) action applied to a button.
    however, when clicking on this button, rather than taking me to the specified frame label in Scene 1, it seems to be replaying the same movie clip (current scene)

    any thoughts?
    thanks

  2. #2
    Really this is me..... mentaleruptions's Avatar
    Join Date
    Apr 2002
    Location
    WV, USA
    Posts
    1,114
    Well check out the file i have attached for u.

    Using the scene name and frame number wont work.

    Also since ut button is inside a mc u would need to change the code on the button in the file ive attached to be:

    Code:
    on (release) {
    	_root.gotoAndPlay("second_scene");
    }
    Because if u dont use the _root. it will try and find that frame label within that movie clip so using _root targets the main timeline.

    M

    My Flashkit Submited Movies:
    Guestbook: V.1.0 V.1.2 V.1.3 V.1.4 PHP Mail Form: V.1.0
    My Deviantart page: Link

  3. #3
    Really this is me..... mentaleruptions's Avatar
    Join Date
    Apr 2002
    Location
    WV, USA
    Posts
    1,114
    sorry heres the file....
    Attached Files Attached Files

    My Flashkit Submited Movies:
    Guestbook: V.1.0 V.1.2 V.1.3 V.1.4 PHP Mail Form: V.1.0
    My Deviantart page: Link

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You can't use scene names from movie clips and/or from external movies loaded on other levels. You would only use a labeled frame as a target and add _root, or _level0 to your path.

    on(release){
    _root.gotoAndPlay("frame_label");
    }

    BTW, no number only labels, or at least not starting off with a number.

  5. #5
    Junior Member
    Join Date
    May 2003
    Posts
    13
    sweet
    thanks so much, guys, I really appreciate it.

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