flash.Lib.attach("men") while compiling.while compiling.
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
--
--
--
--
/** * wraps the loaded movie or image and creates a hitarea * maps the Mouse down to the class * @param e Event * @return wrapped movie */ private function wrapLoaded( e: Event ): MovieClip { var mc: MovieClip = new MovieClip(); _container = new MovieClip(); e.target.content.smoothing = true; _container.addChild( e.target.content ); var w: Int = cast( _container.width ); var h: Int = cast( _container.height ); var rollover: Bitmap = new Bitmap( new BitmapData( w, h, true, 0x00000000 )); if( isButton ) { rollover.smoothing = true; _container.addEventListener( MouseEvent.MOUSE_DOWN, pressed ); _container.buttonMode = true; _container.mouseChildren = false; } _container.addChild( rollover ); mc.addChild( _container ); //mc._container = _container; //mc.x = -1000; //mc.y = -1000; return mc; }
( http://haxe.org/forum/thread/4322 )If you want to check ahead image sizes there are some tricks you can try where you start streaming and then cancel for example see this as3: