-
[MX] Simple Button command
on (rollOver) {
gotoAndPlay("Scene 1", 2);
}
on (rollOut) {
gotoAndPlay("Scene 1", 11);
}
on (press) {
gotoAndPlay("Scene 2", 1);
}
rollover & rollout works perfectly.
only the 'going to the next scene' doesn't work.
Is there anything I need to add on to it?
Help very much appreciated.
-
I found that if you code the AS on the main timeline and not on the button itself, it seems to work.
PHP Code:
btn.onRelease = function(){ gotoAndPlay("Scene2"); }
-
i was taught to use an actions layer
for somethings... pertaining separate scenes and such... but basic button stuff i normally apply it to the button.
glad it worked.
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
|