|
-
gotoandStop syntax
I'm trying to move to a frame on my main stage from a movie clip. Ex. I have a movie that has 4 frames. The 4th frame is named "Contact". I have a movie clip named "menu". Inside the MC I have 3 buttons (home,services,contact). When I click on contact, I want to go to the contact frame. How do I tell it to go to and stop at the contact frame from the movie clip?
This is what I have that doesn't work:
on(press){
root.gotoAndStop("contact")}
-
KoolMoves Moderator
_root.gotoAndStop("Contact") make sure you use the proper case.
-
I have my doubts that that will work. gotoAndStop method associated with a movie clip I believe cannot accept a frame label.
-
 Originally Posted by talytech
I'm trying to move to a frame on my main stage from a movie clip. Ex. I have a movie that has 4 frames. The 4th frame is named "Contact". I have a movie clip named "menu". Inside the MC I have 3 buttons (home,services,contact). When I click on contact, I want to go to the contact frame. How do I tell it to go to and stop at the contact frame from the movie clip?
This is what I have that doesn't work:
on(press){
root.gotoAndStop("contact")}
Well, there's a few things you can do. First, put this in your contact frame.
in your button's action put this:
Code:
on(press){
gotoAndPlay("contact");
}
That's all you need to do to get to your "contact" frame. And, like Bret says, the target is case sensitive.
This should work but if you want to make sure you can use the _root prefix.
Code:
_root.gotoAndPlay("contact");
-
ok thanks ... it worked. dniezby .. thanks for you patience this time ... Do you know where I can get a tutorial on actionscript? And what version is Koolmoves using?
-
KM uses AS1
Tutorials can be found here. Many examples can be found on Koolexhcange.com and any number of websites. Macromedia Live Docs.
I learned 99% of my actionscripting right here.
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
|