|
-
Changing Frames
I have movie that has 4 frames. I also have a movie clip with a contact label. I want to be able to click on the label and go to frame 4. How do I reference frame 4 from the movie clip using action script?
-
AKA [ Paul Bainbridge]
-
I don't understand what you mean. I tried the code below and it didn't work
{gotoandstop _root frame 4}
Could you show me the syntax?
-
AKA [ Paul Bainbridge]
code:
_root.gotoAndStop(4)
Use your flash manual. Open flash and press F1
-
Unless tweens are set to zero in the main movie, the above code won't work.
-
AKA [ Paul Bainbridge]
 Originally Posted by Bob Hartzell
Unless tweens are set to zero in the main movie, the above code won't work.
Who, what, where WTF???
-
Webdreamer, you are confused. This is not a flash forum.
-
AKA [ Paul Bainbridge]
He he.
didnt notice the forum section before posting.
My apologies
-
the tweens are set to 6. so if that code doesn't work, how do I reference the main stage from a movie clip?
-
You can set the default tweens in the main stage to 0 in Frames > Default Tweens. Then the argument 4 will work. Otherwise, you need to count the number of tweens up to key frame 4:
I think it is (6 + 1) x 3 + 1.
-
KoolMoves Moderator
Or just name the frame you need to jump to then use the name in you're gotoAndPlay
-
I named the frame contact and put the following code on the contact button in the movie clip:
_root.gotoAndStop(contact)
It didn't work.
The error message: Line1:expecting a mouse event statement
Where can I find a tutorial on action script? Because my biggest problem is syntax. How do I make the code work (_root.gotoAndStop(contact))
-
KoolMoves Moderator
_root.gotoAndStop('contact')
-
thank you .... that worked. it's funny how a simple line can cause the code not to work
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|