Welcome, Guest. Please login or register.
Did you miss your activation email?
02/07/12, 07:59
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash and AS 3 (Moderators: papachan, kofi addaquay)
| | |-+  call the root Movie Clip name :D
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: call the root Movie Clip name :D  (Read 945 times)
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« on: 03/29/10, 10:16 »

Hii, i have some question here..

How to call the root MovieClip name?.. Cheesy

For Example i have the MovieClip01 the instance name is mc_01
then inside that there is movieClip02..

Nah how when i click the movieClip02 it will trace the instance name of MovieCLip01

I have try like this but still error

trace(MovieClip(parent).name);

Thank you very much Cheesy
Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6161


View Profile WWW Email
« Reply #1 on: 03/29/10, 11:28 »

howabout this.parent.name ?
Logged

happy flashing
Cool
Ronald
kofi addaquay
Global Moderator
Senior Programmer
*****
Posts: 450



View Profile WWW Email
« Reply #2 on: 03/29/10, 11:30 »

mc_one.mc_two.addEventListener( MouseEvent.CLICK, handleClick );

function handleClick( evt:MouseEvent ):void
{
   trace( evt.target.parent.name );
}
Logged
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #3 on: 03/29/10, 12:22 »

WOAAAA THATS WORKED !!!!! XD

Where is your Cheek, i want to kiss you xD

Thanks Mr.Ronald and Mr.Kofi Smiley you are the best Cheesy
Logged

Huihihi~ Cheesy
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!