Trying to create movable window with a close button
Really any movie clip you create in Flash can be treated as a pop-up window,
regardless of shape or size. So you could potentiall create a MC in the shap of
a splat of paint with some text on it. Place it on the stage and set its
visibility to false in the Actionscript (myMC._visibility =false). When the
user does the appropriate action, e.g. clicks a button, you set the visibility
to true, causing the MC to "pop up." You can place a drag behavior to allow
them to move it about the screen, then also place some sort of button in the MC
that will set teh MC visibility back to false.
You could also use the Window component for a more traditional OS feel.
Hope that helps!
/david
like i said ,,it works with the drag and drop ..but if i am using that then the close btn doesnt work .....or vise versa ...i need to know how to have both commands to work like this ..1st they drag and drop it ,,then they can close it ..i can make them both work ..but they wont work after the drop it will not close .the btn doesnt work or vise versa..thanks
http://active.tutsplus.com/tutorials/web-design/enhance-your-flash-layouts-with-draggable-windows/
No comments:
Post a Comment