This content has been marked as final. Show 5 replies
you really shouldn't apply actionscript to objects. there's nothing gained and much lost by doing so.
nevertheless, you are able to apply actionscript to movieclips and buttons that are unlocked AND in a keyframe.
Ok, thank you. I'm very new to Flash and I don't have a clue about anything, so I really appreciate the help with this.
> Ok, thank you. I'm very new to Flash and I don't have a clue
> about anything, so I really appreciate the help with this.
The reason you can't attach code to assets in the Library is because
assets are reusable. For example, you might create a nice looking button
and re-use it half a dozen times in the same frame of the timeline. That
means you have six "instances" of that button on the timeline, each of which
can be (probably will be!) programmed separately. Makes sense, right?
What kglad was alluding to is another approach to wiring up your assets.
I agree with him that non-attached code gives you more flexibility. Here's
a quick look at both approaches:
Co-author, Foundation Flash CS3 for Designers
"Luck is the residue of good design."
Thanks very much for the link and explanation; I think that helped clarify things a bit more for me.