Tile List Item Changes

Posted by jomelia 
Tile List Item Changes
March 02, 2011 09:26PM
I have a tileList with an itemrenderer that has an image and some text. Certain actions will add or remove items from the tilelist. I can add a standard Flex effect (fade or blur) using the "itemsChangeEffect" attribute of the list that will fire when an item is added or removed, but none of my FlashEffFlex effects works this way. Do FlashEffFlex effects not work with a tilelist or at least not with the itemsChangeEffect? Is there a different method I could use?

Thanks,
Jack
Re: Tile List Item Changes
March 03, 2011 07:46AM
I'm not sure why exactly this doesn't work, but try to add this code and see if it works:
fe- flasheff instance name
fe.addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage,false,0xff)

function onRemovedFromStage(ev:Event){

ev.preventDefault(); //or ev.stopImeddiatePropagation();

}

let me know if it worked.
Re: Tile List Item Changes
March 09, 2011 07:27PM
Sorry it took awhile to get back.

This hasn't worked either. Here are some details:

I have a tilelist (tlSolutions) that populates when the app is created, with an itemrenderer that is a vbox with a background image and some dynamic text. I have the following effect I added to a function (addZoomEffect) that is called on creationComplete of the application:

private function addZoomEffect():void{
var fe:FlashEff2Flex = new FlashEff2Flex();
this.addChild(fe);

var pattern0:FESZoom = new FESZoom();
pattern0.preset=9;
pattern0.zoom=50;
pattern0.customPositionX=100;
pattern0.customPositionY=100;
pattern0.alphaCoeficient=0.5;
pattern0.tweenDuration=1;
pattern0.tweenType='Quadratic';
pattern0.easeType='easeInOut';

fe.showTransition=pattern0;
fe.addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage,false,0xff);
tlSolutions.setStyle("itemsChangeEffect",fe);
}

private function onRemovedFromStage(ev:Event):void{
ev.preventDefault();
}

This includes the recommendations you made.

I should note I have a few other effects on other parts of the page, but even after disabling them all this still does not work.

Also, I can add some simple effects (blur,fade, etc) in the standard flex way and they work fine on the tilelist.

Any ideas?

Thanks,
Jack
Re: Tile List Item Changes
March 10, 2011 07:40AM
Well, I'm not exactly sure what happens there, so I will need you to open a ticket and send us the source files.
Sorry, you do not have permission to post/reply in this forum.