|
-
Hi
I'm using the following code
portfolio_mc.onRelease=function(){
portfolio_mc.gotoAndStop(10);
}
and I keep getting the message
Scene=Scene 1, Layer=backdrop, Frame=1: Line 1: Statement must appear within on/onClipEvent handler
portfolio_mc.onRelease=function(){
but I can not figure out whats wrong, i have given the clip an instance name
thanks in advance
-
Danny Gomez Creations ®
the onRelease command is for button instances! What u can do is to place an invisible button (only hitarea) inside the mc, and give that button , lets say, the instancename "myButton". Then It should work like this:
portfolio_mc.myButton.onRelease=function(){
portfolio_mc.gotoAndStop(10);
}
-
Originally posted by cosmiceye
the onRelease command is for button instances! What u can do is to place an invisible button (only hitarea) inside the mc, and give that button , lets say, the instancename "myButton". Then It should work like this:
portfolio_mc.myButton.onRelease=function(){
portfolio_mc.gotoAndStop(10);
}
Cosmiceye thankyou so much for 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
|