This content has been marked as final. Show 6 replies
There are no errors in the code you are posting. Maybe you should show us the other code you have?
You shure you are talking about the instanceName and not the symbol Name? ball_mc. Ore maybe the clip is not in the same timeline than you code
this is the only code i have at the moment. i have created a button and called it myButton_btn in the instance name and i have an image which is a movie clip called myBall_mc. if i attach the code to the movie clip i get no errors in script but when i preview it nothing happens apart from the cursor turns to a hand. when i add the code to the timeline i get the errors.
>>which is a movie clip called myBall_mc
But in the code you refer to:
var mc = ball_mc;
So that line should be:
var mc = myBall_mc;
The code shouldn't generate errors when attached to the timeline. Please post the errors you are getting.
Thanks for your help...that solved it