PDA

View Full Version : Moving things with AS????



jasonhardwick
April 5th, 2007, 04:29 PM
I have a question and i hope you can help me.

I have a page that has 4 buttons at the bottom the buttons act as tabs when you click on one the tab pulls up a window I need the window to slide back down once another button is clicked I tried to work this out but have had no luck. just hoping you could help.

the trouble is in the "Bottom Menu MC"

http://www.expoships.com/1-test.fla

rabidGadfly
April 5th, 2007, 04:48 PM
There are a few ways to achieve this but let's go with the way you've started. One thing you have to do is put a stop(); on the last frame of the mc so it doesn't keep looping. Makes me seasick with the boat and all :)

Then you would create another section after the stop where the mc slides back down. Use a frame label so it's easy to refer to it from your button. Your button function should then end up saying something like:

this._parent.gotoAndPlay("downAnimation"); //or whatever your frame label is


So, your "Bottom Menu MC" should have a section where it animates upward and stops. Then another section where it animates back down and resets.

jasonhardwick
April 5th, 2007, 05:03 PM
Well this issue I have is after the movie loads I want the buttons when clicked to move up into position when you click another "Tab" the old tab slides down as the new tab slides up the motions should work at the same time... but i cant even get one tab to move. any ideas?

ps: Sorry about the stop.

jasonhardwick
April 5th, 2007, 05:57 PM
can anyone help?!?

Esoltas
April 5th, 2007, 07:23 PM
this is somewhat basic for someone who has more posts than I...but here it goes. to move up, CORRECTreference._y-=AMOUNT YOU WANT IT TO MOVE UP; My things in caps should be straightfoward. :pope:

jasonhardwick
April 10th, 2007, 12:33 PM
I have a similar code in my file but it doesn't seem to work because it is in a movie clip I don't know if that is my problem.

Just really need to figure this out.

jasonhardwick
April 11th, 2007, 10:25 AM
anyone !?!

DanontheMoon
April 11th, 2007, 01:58 PM
you could try something like 'onRollout(rewind =='true') ' or something. Try the tutorial on advanced rollovers, that might help.

jasonhardwick
April 11th, 2007, 02:38 PM
Thank you... I will look into it.