jan_flanders

Untitled

Nov 20th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package;
  2. import flash.display.MovieClip;
  3. import flash.display.Sprite;
  4. import flash.display.StageAlign;
  5. import flash.display.StageScaleMode;
  6. import flash.events.Event;
  7. import flash.events.MouseEvent;
  8. import flash.Lib;
  9. import org.bluewolf.connect.MailSender;
  10. /**
  11.  * ...
  12.  * @author Jan J. Flanders
  13.  */
  14. class Main extends MovieClip
  15. {
  16.     public function new()
  17.     {
  18.         super();
  19.         var mailer = MailSender.sharePhotograph(
  20.         "http://haxer.be/guests/mi6x3m/haxelogo.png",
  21.         "[email protected]",
  22.         "jan flanders",
  23.         onSuccess,
  24.         onError);
  25.     }
  26.     function onSuccess():Void
  27.     {
  28.         trace("Success! check your mail");
  29.     }
  30.     function onError(msg:String):Void
  31.     {
  32.         trace(msg);
  33.     }
  34.    
  35.     public static function main()
  36.     {
  37.         Lib.current.addChild(new Main());
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment