|
-
If, Else help
this is a second posting if anyone here is getting dejavu. I made a mistake in the title of the old one.....sorry
so anyways
I have a faily simple question. I want to know how to write an "If Else" for a mouse click. I can write an hittest, but im not to sure of the mouse clicks. this is what I want to make shorter
---------------------------------------------
_root.q1_immark.onRelease = function (){
_root.gotoAndPlay("Q2_Good");
}
_root.q1_nicetomeetyou.onRelease = function (){
_root.gotoAndPlay("Q2_Bad");
}
_root.q1_wherearewe.onRelease = function (){
_root.gotoAndPlay("Q2_Bad");
}
since two actions have the same outcome, I figure I can consolodate some code.
also can I declare MCs as clickable buttons in a single line?
thanks in advance
Mark
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
|