Posted By


dubogii on 01/19/11

Tagged


Statistics


Viewed 124 times
Favorited by 1 user(s)

Ensnaring mouseEnabled


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. stage.addEventListener(MouseEvent.CLICK,_checkMouseEventTrail,false,0,true);
  2. function _checkMouseEventTrail($e:MouseEvent):void
  3. {
  4. var p:* = $e.target;
  5. while(p)
  6. {
  7. trace(">>", p.name,": ",p);
  8. p = p.parent;
  9. }
  10. };

URL: http://www.bigspaceship.com/blog/labs/snaring-mouseenabled/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.