myColorWheel.content.bitmapData say that this propety is not defined.

 

Giro.

  _____  

De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre
de Alex Harui
Enviado el: jueves, 04 de octubre de 2007 0:59
Para: flexcoders@yahoogroups.com
Asunto: RE: [flexcoders] Image control to bitmapdata

 

not sure why the alert didn't show, but myColorWheel.content.bitmapData
should be what yo uneed.

 

  _____  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Gironella
Sent: Wednesday, October 03, 2007 2:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image control to bitmapdata

I have this function:

 

public function image_complete(evt:Event):void {
        
               bm = myColorWheel.content as Bitmap;
               bmd = new BitmapData(myColorWheel.contentWidth,
myColorWheel.contentHeight);
               bmd.draw(bm);
               mx.controls.Alert.show("bitmap okey");
        }

 

I have this on a complet event in a image control(myColorWheel), with a
source image that load correctly.

 

I have this declared:

 

public var bm:Bitmap;
public var bmd:BitmapData;

 

 

Alert dont show because something dont work, and if i getPixel from bmd i
return nothing.

 

Any suggestion to convert a image control, to bitmapdata where i cant get
pixel information?

 

thk.

 

Giro.

 

 

 

 

 

 

Reply via email to