Re: [flexcoders] Personalized Popup

2007-03-28 Thread Roman Protsiuk

Far from good, very straightforward, but hopefully working. :)

ImagePopUp:
?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
   mx:Image id=image /
/mx:Canvas

Event handler for your TileList:
mx:TileList ... itemClick=onItemClick(event)
...
mx:Script
![CDATA[
...
private function onItemClick(event : ListEvent) : void {
var popUp : ImagePopUp = ImagePopUp(PopUpManager.createPopUp(this,
ImagePopUp));
popUp.image.source = event.itemRenderer.data.imageUrl;
}
...
]]
/mx:Script

R.

On 27 Mar 2007 14:43:21 -0700, leoaraguas [EMAIL PROTECTED] wrote:


  Hi, i need to make a popup that show me an image that represent the
item selected (one of my tilelist that is showed using render) can
anyone help me please? Its just like an image explorer.

Thanks

 



[flexcoders] Personalized Popup

2007-03-27 Thread leoaraguas
Hi, i need to make a popup that show me an image that represent the 
item selected (one of my tilelist that is showed using render) can 
anyone help me please? Its just like an image explorer.

Thanks