Call loader.load() rather than addchild() ?
 
Perhaps I don't understand your question? 
 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: 17 May 2008 23:16
To: [email protected]
Subject: [flexcoders] Re: a simple question of BitmapData
 

Hi there, I have updated the code ( enabled line5 ) and get the 
duplicate copy of gif file. 

Is there a way to prevent to use addChild but still can get the copy 
of the image?

Cheers

http://www.privatepaste.com/29lCTCERRY
<http://www.privatepaste.com/29lCTCERRY> 

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "flexawesome" <[EMAIL PROTECTED]> 
wrote:
>
> 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-
<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);
> 
> }
>
 

______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
______________________________________________________________________

Reply via email to