Groups | Blog | Home
all groups > macromedia flash sitedesign > july 2004 >

macromedia flash sitedesign : Nested Button in Movie Clip



Domarus
7/14/2004 2:18:55 PM
Hi Guys,

I am having problems with the buttons in a drop down menu I have created. The
buttons are nested in movie clips and I cannot make them pick up links to
different scenes in the same Flash file. All buttons work fine when I use a
getURL command, but nothing happens when I use gotoAndPlay('Scene 2',1)?

My non-working button script looks like this:

on (release) {
gotoAndPlay('home',200);
}

Is there a problem linking from "inside" a Movie Clip to a different scene or
even to frames in the same scene, but "outside" the Movie Clip? Do I need to
add extra scripting or is it just not possible?

Your help is much appreciated.

Cheers,
Jacob
Sprnv4
7/14/2004 6:33:01 PM
Yes there is a problem...there doesn't exist a Scene 2 in the movieclip... the
scene 2 is in the main movie... so what you need to do is add a _root. command
to your button script... so something like this..

on (release) {
_root.gotoAndPlay('home',200);
}

Greetz
[Sprnv4]
Domarus
7/14/2004 8:59:13 PM
vinrau
11/18/2004 4:52:22 PM
hi guys,
I have a problem. i had created a button in movie clip to go from one seane
to another but when i tested
a movie link doesn't work.
i had used following script
on (release) {
gotoAndPlay("team", 1);
}
team is my another scene
hope so u help me as erliar as possible
thanks in advance
vin


Domarus
11/18/2004 5:04:18 PM
Simply add _root before gotAndPlay ...

Should look something like this:

on (release) {
_root.gotoAndPlay('team',1);
vinrau
11/18/2004 5:47:45 PM
thanks
but i did this script

on (release) {
_root.gotoAndPlay('team',1);
}
but that's no results

Colin Cook
11/19/2004 6:28:23 PM
I'm a complete beginner, but should it have team.swf?
[quoted text, click to view]

AddThis Social Bookmark Button