views:

388

answers:

2
private function tileList_itemClick2(evt:ListEvent):void {
                img = new Image();
                    img.maintainAspectRatio = true;
                    img.addEventListener(Event.COMPLETE, image_complete);
                    img.addEventListener(ResizeEvent.RESIZE, image_resize);
                    img.addEventListener(MouseEvent.CLICK, image_click);           

                    img.source = "products/images/" + evt.itemRenderer.data.imgH;
                    img.setStyle("addedEffect", image_addedEffect);
                    img.setStyle("removedEffect", image_removedEffect);
                    PopUpManager.addPopUp(img, myCanvas, true); 
             }

It's possible to limit the modal ( "modal transparency color" ) to be inside a canvas ?

A: 

Try setting the maxWidth and maxHeight properties.

Raul Agrait
A: 

The PopUpManager in Flex is designed to display modal pop-ups over the entire application. You cannot limit it to a smaller region.

joshtynjala