Controlling a window with buttons

Ok…I’m rather new at this…so forgive me.

Basically, this is what I’m trying to do…

I have a number of buttons…that when clicked…a “window” slides into view…(this part works…no problem)…however, the problem is …I want to be able to click a button, and IF the window is in view…then raise it and bring in another window for that particular button, or if no window is in view…simply slide the window into view.

I need help with the action scripting used…and timelines or whatever…
as of right now…if you click a button, it just goes to a particular frame and plays the animation of the window dropping down.
I want more control of it than that…

I’m using Flash MX…of course. :wink:

Any help would be greatly appreaciated…

Mark

This is how I would do it, maybe somone else has a more clever way to do it though:

Have all the window animations in one clip, broken up with the slide in with a stop at the end, then the slide out with a check at the end to go to the next window tween. That would be done with the buttons setting which one you want, ie when you click on the button, it tells the window movie clip to play and then set a variable of which frame you would want to go to next(the end of each tween in the animation movie clip checks against that variable.

let me know if makes any sense

Hi
I have done something like that to my site (check http://www.fable.info.se open flash page)

If I understood you right you want to open windows.
You can make an extrem long timeline and add “gotoandplay” functions to your buttons, but that is a hassle! (did I spell that right?) anyway put your windows in movieclips.

make a movie clip caleld “info” make a content of your choice in tyhe info movieclip though leave the first frame blank or something sothat the content doesn’t show.

Add a funktion to your button say it’s vcalled “info”
So you have a button called "info and a movieclip called “info” make sure that the first frame is blank in your movieclip (othervise you will see it…)

then add a function to your button witch will open the info window

“on (press) {
tellTarget (”/info") {
gotoAndPlay(2);
}
}"

this will open and play your movieclip

Hope this will help, i’m not sure i can understand for myself what I just wrote!

Keep on flashing
greets from Sthlm!