Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
francisvila55@gmail.com #1
play effect when removing item from TileList
I want to play an effect when removing an item from a TileList.
I tried several different methods, such as defining a removedeffect
for the tilelist itself, for the renderer component, etc.
in the renderer component:
....
addedEffect="wipeDown" // WORKS
removedEffect="wipeUp2" // DOES NOT WORK
in the page containing the TileList:
....
<mx:WipeDown id="wipeDown" duration="1000"/>
<mx:WipeUp id="wipeUp2" duration="1000" />
I remove the child of the tilelist by changing the data provider on an
event
private function listSelectHandler(event:events.SelectEvent):void
{
// if event is "down", add the item to the TileList's dataprovider
// in this case, the effect DOES work
if (event.upDown=="down")
{
var d:detail=new detail();
d.detailTitle = event.bank.name;
var prox:ObjectProxy = new ObjectProxy();
prox.detailTitle = event.bank.name;
dt.addItem(event.bank);
}
// if event is "up", remove the child
// in this case, the effect DOES NOT work
if(event.upDown=="up")
{
var i:uint;
for (i=0; i< dt.length; i++)
{
var b:Bank=Bank(dt.getItemAt(i));
if (b.name==event.bank.name)
dt.removeItemAt(i);
}
}
tile.height=dt.length*200;
}
francisvila55@gmail.com Guest
-
Removing flash object after play
I have a transparent video playing on my front page, with a small semi-transparent controller. After the movie plays and fades out, the controller... -
Tilelist Custom Selected Item Skin
Has anyone found a solution to this? I'm trying to do a similar thing. It would be great if it were possible to detect whether the item is selected... -
TileList Item Renderer
In my Item Renderer for my Tilelist component, I want to know how to set the source of the image and label components. I am having trouble because... -
removing item from dropdown list
Hi just wondering if there is a way to remove an item from a dropdown list in code after it has been filled with data from a dataset? Also do I... -
Removing Item from Add Remove Programs List
I upgrade to Windows 2003 Server from Windows 2000 Server. When the server was running Windows 2000 I install the Windows 2000 Administrative...



Reply With Quote

