flexawesome escreveu:
> Hi there,
>
> do you know how can I use it to duplicate the image? It seems doesn't
> work. any ideas?
>
> Thank you
>
> loader = new SWFLoader();
> loader.addEventListener(Event.COMPLETE, Bitmapdata)
>
> loader.source = "http://us.i1.yimg.com/us.yimg.com/i/us/nt/ma/ma_tech-
> grp_1.gif"
> //addChild(loader);
>
>
> private function oBitmapdata(e:Event):void
> {
>
> var img:Image = new Image();
> var data:BitmapData = Bitmap(loader.content).bitmapData;
> var bitmap:Bitmap = new Bitmap(data);
>
> img.addChild(bitmap)
>
> addChild(img);
>
> }
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
> __________ NOD32 3106 (20080516) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>
Hi,
you can use this method:
public static function clone(value:ByteArray):ByteArray {
var myBA:ByteArray = new ByteArray();
myBA.writeObject(value);
myBA.position = 0;
return myBA.readObject();
}
kind regards,
Frederico Garcia