Adilol

xD

Apr 25th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package
  2. {
  3.     import flash.display.Loader;
  4.     import flash.display.Sprite;
  5.     import flash.events.Event;
  6.     import flash.net.URLRequest;
  7.     import flash.text.TextField;
  8.     import flash.system.Security;
  9.     /**
  10.      * ...
  11.      * @author Adil Hafeez
  12.      */
  13.     public class Main extends Sprite
  14.     {
  15.        
  16.        
  17.         public function Main():void
  18.         {
  19.             Security.loadPolicyFile('C:/habboswf/cross-domain.xml');
  20.             var request:URLRequest = new URLRequest("C:/habboswf/bear.swf");
  21.            
  22.             var loader:Loader = new Loader()
  23.            
  24.            
  25.            
  26.             loader.load(request);
  27.             addChild(loader);
  28.             if (stage) init();
  29.             else addEventListener(Event.ADDED_TO_STAGE, init);
  30.         }
  31.        
  32.         private function init(e:Event = null):void
  33.         {
  34.            
  35.            
  36.            
  37.         }
  38.        
  39.     }
  40.    
  41. }
Advertisement
Add Comment
Please, Sign In to add comment