Results 1 to 6 of 6

Thread: what does it mean -> (MyCircle)(e.target);

  1. #1
    Join Date
    Aug 2008
    Location
    karanganyar, solo, indonesia
    Posts
    161
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question what does it mean -> (MyCircle)(e.target);

    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 ...
    ///////////////////////////////////////////////////
    ///// http://www.mediatutorial.web.id
    ///////////////////////////////////////////////////

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    The below is not the right answer
    In PHP - what some people do is:
    PHP Code:
    $var = (int) 5
    Saying that $var is an int, so maybe its there to say that circle is MyCircle?
    Jeremy | jfein.net

  3. #3
    Join Date
    Aug 2008
    Location
    karanganyar, solo, indonesia
    Posts
    161
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    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?
    ///////////////////////////////////////////////////
    ///// http://www.mediatutorial.web.id
    ///////////////////////////////////////////////////

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by Nile View Post
    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. )
    Last edited by Nile; 01-27-2010 at 03:51 AM.
    Jeremy | jfein.net

  5. #5
    Join Date
    Aug 2008
    Location
    karanganyar, solo, indonesia
    Posts
    161
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    oke, i will go to that actionscript.org forum..thanks
    ///////////////////////////////////////////////////
    ///// http://www.mediatutorial.web.id
    ///////////////////////////////////////////////////

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Glad to suggest that to you.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •