|
-
A little hard to explain, so please don't hesitate to ask if you need clarification.
I'm placing a mc on the main timeline for the sole purpose of duplicating it and manipulating the duplicated clips. I want to imbed behavior in all duplicated clips via the OnLoad and the OnEnterFrame events, but I don't want these events to fire for the original (non-duplicated) clip.
I thought I'd handle this by placing "clipNo=0" on the first frame of the timeline of the mc, then set clipNo to 1, 2, etc.. as the clip was duplicated. Then in the OnEnterFrame event for the clip, I thought I could say "If this.clipNo <> 0..." to fire events only for duplicated clips and not the original. I realize this is not the most elegant way to accomplish this, so my first question is, what would be a better way to accomplish this?
A "side-question" here. Within the OnEnterFrame event, if I refer to the variable set on the mc timeline as "this.clipNo", the variable is not found. If I refer to it as "_root.myMCname.clipNo" it is found, but I want to mc to be portable, so I don't want to put the specific myMCname from the main timeline in the code for the clip. How do I refer to a variable set in the mc timeline for this clip from within the clip actions if "this.clipNo" won't work.
I've gone through the actionscript reference, but (obviously) missed something. Thanks for your help.
Gary
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
|