A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Buttons within a MovieClip

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    14

    Buttons within a MovieClip

    Hi,
    I have sued buttons within movie clips many times, but for some reason they are not linking to specific scenes properly.

    I have a movie clip in a scene named "main". In this movie clip I have two buttons. Within the main swf(fla) I have another scene named "about". It does not link when using the following code...

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

    Am I doing something wrong??

    Thanks

  2. #2
    Senior Member
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    194
    that code is trying to gotoandplay a frame labeled 'about', you want gotoAndPlay(1, "about");

    Also scenes are a headache in general

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    You cannot target Scenes from another timeline.
    this:
    PHP Code:
    _root.gotoAndPlay("about"); 
    will only work if "about" is a label on a keyframe (for instance, the first frame of your 'about' Scene)

    gparis

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