Go Back   kirupaForum > Flash > Flash IDE

Reply
 
Thread Tools Display Modes
Old 12-23-2009, 05:54 PM   #1
Press_Tilty
zune!
 
Press_Tilty's Avatar
Location Bothell, WA (north of Seattle)

Posts 50
Add code to attachMovie

So a clip is attached to a clip, and that works fine, but how do I get code on to the attached clip?

I've tried duplicateMovieClip...but it's not working...

__________________

Press_Tilty is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?

Old 12-24-2009, 02:56 AM   #2
neilmmm
Registered User
 
neilmmm's Avatar
the way i find easiest is to

give it a var and reference the var within the function that atatched it

Code:
var m:MovieClip=this.attachMovie("mc","mc",1);
m.onRelease=function  () {
 trace(this)
}
neilmmm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:22 AM.

SHARE:

SUPPORTERS:

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com