Air application created with Flex - How do I create a fly-out window to the left/right

I have an Air application with a main window. I would like to have a new window fly out from the side of the main window when the user clicks on a button in the main window. The window that appears needs to display information based on value passed from the main form. How can I achieve this with Flex Builder 3?

Target platform: any version of Flash/Flex/Air.

Answers


You'll probably want to use view states. Check out the Flex in one Week video tutorial on "Creating View States":

http://www.adobe.com/devnet/flex/videotraining/


What you want to do is what tweenMax was made for. it's a .swc that you add into your project. It will allow you to use the tweenLite (or tweenMax) command.

import com.greensock.*;
TweenLite.to(mc, 1, {x:65, y:117});

So you would say if your stage was 500 px wide and you want the box to come in from the right. Add the child at maybe 505, and then tween.to whatever x value you want. Yep. it's that easy. And the other parameters are for duration and easing and even alpha so you have control over that too. They even have a swf in the website so you an play with it and practice. http://www.greensock.com/tweenmax/


Need Your Help

Spring RabbitMQ Connection Per User

java spring spring-mvc rabbitmq spring-amqp

I have a multi user Spring web application in which I need each logged in user to be able to receive messages on their own rabbitmq vHost so no other user can view another users message. I have this

How can I make an array dynamically in php?

php arrays codeigniter

In the below code the repetition of foreach is unknown. It depends on database records.