i can design well but i have a problem to connect a simple "Enter" button and link it to my "intro" movie clip....can anyone help explain to me the procedures to make this all work together??
Is the 'enter' button part of the Flash movie? If so you just need to target the movie clip to play;
Begin tell target ("/mcname")
Go to and Play (2)
End tell target
or;
_root.mcname.gotoand Play(2)
in this case you would have a stop action in the first frame of the movie clip (and maybe no content in that frame if you want to keep it invisible before it plays)
lets say the "enter" button is on a separate black page...with the text in the middle ....once the button is released...i want it to play my "intro" movie clip?....when you refer to go to and play (2) ...what does the 2 stand for?? is that the level or the frame number?
what actionscript do i apply to the "enter" button and what actionscript do i apply to the "intro" scene? i have the movieclip on frame 1 in my movie....and the "enter" button on a separate movie......
The '2' refers to a frame. But you are better to make the enter button part of your movie - otherwise you will have to load a new page.
If you make a new scene in your movie and copy the frames in the 'enter' movie (Ctrl+Alt+c) and paste them into the new scene (Ctrl+Alt+v) you can then use the goto action to move into the movie. If you want to keep the 'enter' movie seperate use Get Url and load the page with your movie.
If your enter button is in a seperate part of the movie you can forget about the frame 2 business.
~have you read the tutorials here on paths and targeting?
ive read through them and understood them partially....but i feel i can learn faster if i were told step by step....ok ill try to create the "enter" button on the same movie...
i have the enter button on frame 1 and the "intro" movie clip on frame 2 ....
do i apply this to the enter button (frame 1)
tell target.mcname
gotoandplay(2)
end tell target....is this right?
i kinda figured out ...i created a new layer and place stop actions on frame 1 and 2
on the 2nd layer resides the "enter" button(frame 1) and "intro" movie clip(frame 2)....i used the actionscript you gave me and it worked......but the "intro" is in a loop...how do i make it come to a complete stop.....
when dealing with multiple movie clips and buttons in one movie...i use tell targets and goto andplay...but when i have multiple movies what kind of actionscripts do i use?? oh yea i completely understand the whole notion on levels but im kinda stuck on scripting
Originally posted by mgb If you put a stop action in the first frame of a movie clip and use Go to and Play (2) it will make it play. To make the intro stop just use target and "Stop"