Skip to main content
June 12, 2007
Question

How to add actionscript to a movie symbol

  • June 12, 2007
  • 2 replies
  • 203 views
I am a complete newbie to actionscript and flash. I am using Flash CS3 with Mac OSX.
I need to know how to add actionscript to a movie symbol?
I made a circle and coverted it into movie symbol. After selecting it and opening Windows > Actions, it says that the currect selection can not have actions applied to it.
I have also tried ticking the Export for actionscript option and leaving the default options on, but still no use.

can someone please help me?
This topic has been closed for replies.

2 replies

Inspiring
June 13, 2007
AS3

Suppose there is a Button on Stage having instance name
_btn

Put the below code on frame

function aa(evt:Event) {
trace("Double Clicked")
}
_btn.doubleClickEnabled = true;
addEventListener('doubleClick', aa);


See help for different type of events
Damon Edwards
Inspiring
June 12, 2007
ticking Export for actionscript isnt doing anything for you, thats to attach a movie from the library... click your movie clip symbol, in the properties panel, click where it says 'Instance Name', and give it a unique name, lets say, my_mc. then in an actions layer, ON A KEYFRAME, add this

my_mc.onRelease
or
my_mc.onRollOver
or
my_mc.onRollOut
and so on, but that's how you reference the movie clip... by its instance name