Re: [flexcoders] How does one implement IBitmapDrawable

2009-06-02 Thread Manish Jethani
On Tue, Jun 2, 2009 at 7:52 AM, Stephen More stephen.m...@gmail.com wrote: The docs do not say much about IBitmapDrawable: http://livedocs.adobe.com/flex/3/langref/flash/display/IBitmapDrawable.html In your example lets say I create:    MyUIComponet extends UIComponet What method do I need

[flexcoders] How does one implement IBitmapDrawable

2009-06-01 Thread Stephen More
Given this code: var bitmapData:BitmapData; bitmapData.draw( IBitmapDrawable( target ) ); What method(s) does target need to implement so that bitmapData will have valid data in it ? Can anyone provide an example ? -Thanks

Re: [flexcoders] How does one implement IBitmapDrawable

2009-06-01 Thread Rick Winscot
IBitmapDrawable is implementd by flash.display.DisplayObject... of which Flex mx.core.UIComponet extends. So... If you want to create something that you can groggle BitmapData with ­ that¹s a pretty good place to start. http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html Cheers,

Re: [flexcoders] How does one implement IBitmapDrawable

2009-06-01 Thread Stephen More
The docs do not say much about IBitmapDrawable: http://livedocs.adobe.com/flex/3/langref/flash/display/IBitmapDrawable.html In your example lets say I create: MyUIComponet extends UIComponet What method do I need to write in MyUIComponet such that I can respond back with an embeded image