|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
The SWF File: I can't tell you where it is, I'm not allowed.
The project files, I can't tell you where they are, I'm not allowed. Hi all, any help I could get on this issue would be very helpful. I have a Flex application. In the application I have an HBox that I will be dynamically adding and removing child objects from. Eventually I will create a class for the child objects, but right now the ActionScript that creates them is in the main application. Here is that code: private function createTile():void { var prodTile:Canvas = new Canvas; prodTile.width = 100; prodTile.height = 100; prodTile.setStyle("backgroundColor",0x000000); prodTile.id = "BlackBox"; prodHBox.addChild(prodTile); prodTiles.push(prodTile); prodTile.addEventListener(MouseEvent.CLICK, isClicked); var prodTile2:Canvas = new Canvas; prodTile2.width = 100; prodTile2.height = 100; prodTile2.setStyle("backgroundColor",0x666666); prodHBox.addChild(prodTile2); } The function createTile() creates two objects, one black and one gray. Eventually there will be more but for now createTile() keeps things simple. In the SWF application, click the "Show" button to call the createTile() function. Now, when you click the "Hide" button, the black box is removed. The funciton it calls is this one: private function dropBlack():void { prodHBox.removeChild(prodTiles[0]); } What I'm trying to achieve is this: Right now, when you remove the black box, the gray box instantly jumps to where the black box was. What I need to have happen is for the gray box to animate to it's new position where the black box was. I would like to to slide into place over time. Eventually I will also need to need it to slide out of the way when a new child is introduced. I know this can be accomplished with effects, but for the life of me all the books, forums, Adobe docs, and web tutorials have shed little to no light on how to do this. Could be I've just been unlucky in my searching. Does anyone know how to do what I need to do, or even where I might find a good tutorial or book that has the desired information? Again, I'm in a tight spot at this point and any help would be extremely appreciated. Thanks , [d] |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Flex Help Needed! Applying Effects... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|