1. //
  2. //              -- welcome to wonderfl --
  3. //
  4. // wonderfl is a service where you can build a Flash online.
  5. //
  6. // write Actionscript3 code in a textarea,
  7. // and your code will be compiled server side.
  8. //
  9. // Your compiled Flash will be reloaded automatically
  10. // in the right side of the page,
  11. // so write code and see it real-time.
  12. //
  13. // Well, why not "FORK" this code and see how it goes?
  14. //
  15. package {
  16.     import flash.display.Sprite;
  17.     import flash.display.Loader;
  18.     import flash.events.IEventDispatcher;
  19.     import flash.events.IOErrorEvent;
  20.     import flash.events.HTTPStatusEvent;
  21.     import flash.net.URLRequest;
  22.     [SWF(backgroundColor="#FFFFFF", frameRate=10)]
  23.     public class FlashTest extends Sprite {
  24.         public function FlashTest() {
  25.             var loader :Loader = new Loader;
  26.             var url :String = "/swf/demo_en.swf";
  27.             loader.load( new URLRequest(url) );
  28.             addListeners( loader.contentLoaderInfo );
  29.             addChild( loader );
  30.         }
  31.         private function addListeners( d :IEventDispatcher ) :void {
  32.             // do nothing
  33.             d.addEventListener( IOErrorEvent.IO_ERROR, function(e :IOErrorEvent) :void {} );
  34.             d.addEventListener( HTTPStatusEvent.HTTP_STATUS, function(e :HTTPStatusEvent) :void {} );
  35.         }
  36.     }
  37. }
flash swf thumbnail play
Get Adobe Flash Player