Log in

View Full Version : what does it mean -> (MyCircle)(e.target);



smansakra
01-27-2010, 03:19 AM
can anyone explain me about this code?

var circle:MyCircle = (MyCircle)(e.target);

what i really don't understand is about (MyCircle)(e.target) ,
what does it mean? thanks ...

Nile
01-27-2010, 03:23 AM
The below is not the right answer
In PHP - what some people do is:


$var = (int) 5;

Saying that $var is an int, so maybe its there to say that circle is MyCircle?

smansakra
01-27-2010, 03:41 AM
HUM? yes in PHP we can say that $var = (int) 5; means $var is an int with the value 5.

but are you sure that (MyCircle)(e.target); is the same thing?

Nile
01-27-2010, 03:43 AM
The below is not the right answer

:) Does that answer your question?
Since there aren't many AS people on this forums - I would suggest: http://www.actionscript.org/forums/ (I've asked questions there a couple of times. :))

smansakra
01-27-2010, 03:52 AM
oke, i will go to that actionscript.org forum..thanks

Nile
01-27-2010, 04:02 AM
Glad to suggest that to you. :)