all groups > macromedia flash sitedesign > november 2004 >
You're in the

macromedia flash sitedesign

group:

buttons not work in test scene


buttons not work in test scene Chris J
11/18/2004 7:32:19 PM
macromedia flash sitedesign:
I don't get this.
I'm using FLASH MX 2004
In author mode with enable simple buttons selected the buttons work fine.
In test movie they work fine
In publish (f12) they work fine
BUT,
when I try to test the scene they don't work. Yes, they are buttons linking
to elements in that scene.
Why is this?
thanks,
cj

Re: buttons not work in test scene tralfaz
11/19/2004 3:23:14 PM
Link to labels, not scenes. Scene navigation stinks and malfunctions
a lot. Just put labels where they need to go and gotoAndPlay(label
name here);
tralfaz

[quoted text, click to view]

Re: buttons not work in test scene tralfaz
11/19/2004 5:12:54 PM
It is a well know problem. It works on the simple files and messes up
on the more complicated ones. Do a search for "scene" and
"navigation" etc and you will see all the many complaints about it not
working right.
tralfaz

[quoted text, click to view]

Re: buttons not work in test scene tralfaz
11/19/2004 5:15:26 PM
You can leave the scenes as they are and just add frame labels in
them. Wherever you need a label, place a keyframe on the timeline
and type in a frame label in the properties box.
tralfaz


[quoted text, click to view]

Re: buttons not work in test scene Chris J
11/19/2004 6:36:56 PM
This might be a couple of stupid questions but.
1) How do you create labels in FLASH MX 2004?
2) Is it possible to convert the scenes I have to labels?
thanks,
cj
[quoted text, click to view]

Re: buttons not work in test scene martyrme
11/19/2004 11:42:01 PM
Re: buttons not work in test scene tralfaz
11/20/2004 12:02:18 PM
You won't need to refer to the scene names. The label is all that is
needed.

on (release) {
gotoAndStop("FrameLabelInAnyScene");
}
You had it right except you should have quotes around the frame label
name.

Scene name navigation works ok when written on the main timeline.
It's when it is written off of the main timeline that it fails.
Instead, you can use frame labels so it will always work. For
example, a movieclip inside scene 2 cannot refer to scene 1 but it can
refer to a frame label in scene 1 like this..
_root.gotoAndPlay("myfirstscene");
tralfaz



[quoted text, click to view]


Re: buttons not work in test scene Chris J
11/20/2004 12:04:33 PM
I will still have to navigate to the different scenes and then I can
navigate using labels within the scenes or is there a way to combine all the
scenes I currently have into one and only use label navigation?

Also I couldn't find syntax listed but this seems to work;

on (release) {
gotoAndStop(labelName);

}

is that correct?

Thanks
cj

[quoted text, click to view]

AddThis Social Bookmark Button