-
[F8] When you click a button
Im making a button and I want to know when you click the button it takes you to a Movie clip in the Library and plays it.
How do you go about doing this?
Thanks
-
Senior Member
I need more information, BUT, I think I know about what you want. First, put the movieclip you'll want to play in the stage, and as big as you want it to. Then, copy and paste this code inside it:
onClipEvent (load) {
this._visible = false
}
then make your button, and give it the instance name "play_btn" (Name the movieclip instance name "my_mc" or something). Paste these actions into your frame:
playMC = function () {
_root.my_mc._visible = true
_root.my.mc.play()
}
play_btn.onRelease = playMC
(Make sure that the first frame in the mc that you want to play has the action "stop();" in it.)
That's hopefully what you want.
WIP-ZOMBIES
I love vegetarians! More meat for the rest of us!
-
first on the mc in the library - right click on it then nav to "linkage" - put a check mark by "Export for ActionScript".
Then use EmptyMC.attachMovie("yourMC").
Hope this helps
-
Ive got a loading screen then it tells the login screen to come up... when it does their are 2 buttons a connect button... that works and a enlist button... that I have a seprate Movie Clip... I want the register box to pop up over the login box.
so
onRelease I want that Movie Clip to pop up on the same screen without loading the seprate movie clip.
The login screen
http://i25.photobucket.com/albums/c8...84/screen1.jpg
I want it to pop up like these terms and cond
http://i25.photobucket.com/albums/c8...84/screen2.jpg
Last edited by Matthew0088; 01-26-2007 at 11:32 PM.
-
Senior Member
That is really cool! Did you try what I did? I'll attach a doc to help you...and...can you help me with internet connnections and stuff? I've been wanting to make online multiplayer games for a long time. Can you just teach me how to make a chatroom atleast? Anyways...here's the file...actually, I'll just send you my chatsystem(it doesn't work for actually chatting with other people), but login, all it does is do nextFrame(), cause I'm trying to solve the register problem, but click on register, then I think you'll see what you want.
Last edited by Pazil; 11-15-2008 at 08:59 PM.
WIP-ZOMBIES
I love vegetarians! More meat for the rest of us!
-
yes that is what I want... I think I enterd all the action scripts like you have them , but I still cant get it working
-
NVM dont bother with that! and yes Pazil I will help you with that.
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
|