Guest User

Untitled

a guest
Jun 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. package {
  2.  
  3. import flash.display.*;
  4. import flash.events.*;
  5.  
  6. public class FlashDen extends Sprite {
  7.  
  8. public function FlashDen() {
  9.  
  10. trace(root); // traces null
  11. addEventListener(Event.ADDED_TO_STAGE, added);
  12.  
  13. }
  14.  
  15. private function added(event:Event):void {
  16.  
  17. trace(root); // traces object main timeline
  18.  
  19. }
  20. }
  21. }
Add Comment
Please, Sign In to add comment