Skip to main content
Participant
December 12, 2013
Question

What is e.target as MovieClip

  • December 12, 2013
  • 1 reply
  • 411 views

Hi,

Can anyone tell me what is the meaning of ( MovieClip = e.target as MovieClip) the following code... Thanks.

      Var map:MovieClip = e.target as MovieClip.

Thanks

KC

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 12, 2013

that needs to be in a listener function where e is probably the event and e.target is the object that dispatches the event.  the as MovieClip is used to prevent the flash compiler from complaining about code below the line you cited.