Click to See Complete Forum and Search --> : Flash Help


Sux0rZh@jc0rz
10-29-2003, 11:33 PM
this is probly not gonna get answered here... but i like these forums so i'll ask anyways just incase. If you don't use Macromedia Flash MX and don't know actionscript, please don't bother reading the following unless you are bored/curious.

Ok, i have a movie. This one. (http://xaxei.webmatrixhosting.net/base.swf) and I have a navigation menu as a movie clip. so i have one scene 1 frame, and a movieclip with about 500 frames in it that i use to navigate my website. Simple, eh? well i have a stupid question. how do i make the Scene 1 frame change?

on (release) {
gotoAndStop(2);
}

doesn't work because it effects the movie clip, not the scene 1.

I thought i could do stage.gotoandstop or something.... do you know how? thanks in advance.

zyex
10-30-2003, 12:54 PM
on (release) {
gotoAndStop("sceneName",1);
}

where sceneName is the name of your scene and 1 is the no of the frame that you want to go to....

Sux0rZh@jc0rz
10-30-2003, 10:12 PM
doesn't work.... =/

zyex
10-31-2003, 03:34 AM
This is from the macromdia documentation

gotoAndPlay

gotoandplay, playhead

Availability


Flash 2.

Usage


gotoAndPlay(scene, frame)
Parameters


scene The scene name to which the playhead is sent.

frame The frame number or label to which the playhead is sent.

Returns


Nothing.

Description


Action; sends the playhead to the specified frame in a scene and plays from that frame. If no scene is specified, the playhead goes to the specified frame in the current scene.

If you can't get it working, check the name of the scene. this is how you do it, so it must be a problem at your end somewhere

Sux0rZh@jc0rz
11-01-2003, 03:26 PM
Originally posted by zyex
gotoAndPlay(scene, frame)
Parameters


scene The scene name to which the playhead is sent.

frame The frame number or label to which the playhead is sent.

This means that, quess what, it sends it to scene 1 of movieclip 1. scene 1 isn't universal to the entire movie. "scene 1" specifies the first scene in the given area that the action is specified. I've tested this, and tried Scene 2 within the movieclip and it worked, then gave the mainstage a scene 2 and removed scene2 from the movieclip and it didn't work. sorry but the problem is STILL, not on my end. If you can think of any other way of working this, please tell.

SA Heat
11-01-2003, 09:56 PM
You can add a new scene in front of your movie, and name it Intro, make a button to start it, then for button action, have it say goto scene1 and play, or whatever scene 1 name is. Works great this way. This way after the tghing is loaded you click start and it plays the movie, I hope this helps some, I run an entire web site using flash as well. Also I use dreamweaver and fireworks.

zyex
11-02-2003, 05:45 AM
you can call a scene anything that you want....you then say gotoAndStop() or gotoAndPlay for whatever scene name and whatever frame no or label...

scenes are universal to the original or "root" movie....if you load any movie clips into the "root" movie, you can refer to any scene that you want from the loaded movie...

hope this makes sense
:-)

Steev
11-12-2003, 07:55 AM
Are you are trying to navigate to Frame two of the timeline or movie clip?
I presume it's the timeline!

try:-
on (press) {
_root.gotoAndStop (2);
}


Obviously you will need something in frame 2.


Regards,
Steev.


ps. Tried your link - didn't work.