[haXe] attachBitmap
Guntur N. Sarwohadi
gsarwohadi at gmail.com
Tue Feb 13 09:59:44 CET 2007
ah.. thanks Krzysztof..
i didn't see that static method 'loadBitmap'.. *doh!..
thanks again!
Guntur N. Sarwohadi
On 2/13/07, Krzysztof Rozalski <lists at krzysztof-rozalski.com> wrote:
>
> Hi,
> Try this way:
>
> var bdTemp:flash.display.BitmapData = BitmapData.loadBitmap( "someBitmap"
> );
> var mcTemp:flash.MovieClip = flash.Lib.current.createEmptyMovieClip("m",
> 1);
> mcTemp.attachBitmap(bdTemp, 1);
>
> Cheers,
> Krzysztof Rozalski
> > I have a lib.swf containing bitmaps with linkage names all setup. I'm
> > trying to use attachBitmap on a mc but seems like I'm doing things the
> > wrong way.
> >
> > This is what I did:
> >
> > var bdTemp:flash.display.BitmapData = Reflect.field(flash.Lib.current,
> > "someBitmap");
> > var mcTemp:flash.MovieClip =
> > flash.Lib.current.createEmptyMovieClip("m", 1);
> > m.attachBitmap(bdTemp, 1);
> >
> > this shows nothing.. but can compile. this is in flash8 btw. help,
> > please?
> >
> > thanks,
> > Guntur N. Sarwohadi
>
>
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070213/890c2e95/attachment.htm
More information about the Haxe
mailing list