Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! 3

Status
Not open for further replies.

wakkoguy

Technical User
Oct 30, 2001
84
US
Hey
here is what i would like to do

1. as you see the about button moves up when clicked, that is correct. when a button gets clicked it should play (A)Up, (L)Up etc

2. all other buttons should move down (this is from the first page they see) for example, if the links buttons is clicked, it should move up (or play mc AUp) and home, about, stuff, pics, and staff should all move down (they should play the (letter)Forward mc)

3. so now the links button is in the middle of the .swf and all the rest of the buttons have dimmed and moved down.

4. when the user clicks one of those dimmed buttons (let's say about) then the about switches places with the links button.

5. now the about button is moved up (mc AUp) and the links button is dimmed and moved down (mc LForward)

6. now when the home button is pressed all buttons should move to their original positions mc (letter)reverse

i hope you understand this! thank you very much for helping me out, i am slowly but surely learning!
 
Ok first you need to name all of your movie clips (the ones with the button in)

Then add your actions according to your mc names.

ie. I did it with your About button, all the others are moving down. Try this code in your About button.

on (release) {
gotoAndPlay ("AUp");
with (_root.MHome_mc) {
gotoAndPlay ("HForward");
}
with (_root.MLinks_mc) {
gotoAndPlay ("LForward");
}
with (_root.MPics_mc) {
gotoAndPlay ("PForward");
}
with (_root.MStaff_mc) {
gotoAndPlay ("SForward");
}
with (_root.MStuff_mc) {
gotoAndPlay ("StForward");
}
}

in red is the name i gave to your MCs.

So just repeat the same thing with all your buttons and add the proper path when the button is down or up.

Hope it'll help ;-)
Have Fun...

Sharky99 >:):O>
 
Glad i helped, thanks for the vote ;-) Have Fun...

Sharky99 >:):O>
 
hey no problem man, all i forgot was the <b>with</b>
don't worry i'm sure i'll be posting another problem by monday!
 
LOL no problem, that's what we're here for. ;-) Have Fun...

Sharky99 >:):O>
 
ok that worked great, now I that i have applied that to all the buttons, they work great! here's my new dilemna,
The about button is up top while all the others are dimmed and are at the bottom. now when any of the bottom buttons are pressed (lets say the links button) i want the about button to move down and the links button to play the movie clip &quot;LTop&quot; that's a simple task but what if there was a different button on top than the about button, how can i make it recognize which button it is so that it will only play the needed movie clip to move the top button down?
if you look at my .fla after your press the about button, the other buttons are still active, so you press the links button and it moves up. but the about button doesn't move down because i don't know how to make it recognize that? would i have to use if statements? how do i do that!? thanx!
 
Ok i've added a preloader now, but i still dont know how i can make the buttons move as in the previous post
 
On a very urgent job. Will post a link to the file tomorrow.

Sorry, it's the best i can do. ;-) Have Fun...

Sharky99 >:):O>
 
Hey no problem, thanx for letting me know
also, stupid question, if you notice in my preloader, the percentage is a little grainy, how can i make it look smoother (as in the font)
 
Can't help with the fonts...sorry. Have Fun...

Sharky99 >:):O>
 
I made it work! kind of. i uploaded it to on the home button i added an if statement and added a variable to the about button (test = 1;)
but i would have to write those statements for each and every button and it would be alot of coding, i will do it for the home button and upload my .fla as i do. so if you know an easier and quicker way, that would be great, also how can i make my .swf file smaller (the sound file caused it to be huge!)
thanx!
 
Looks good, just a few things can be changed.

You could have use an array with all the mc names and frame labels but i think it would be long to redo it all.


The only things i changed are:

-- changed the IF for ELSE IF (not the first one of course)

-- removed the test=1 you didn't need.(look in the About script below)


on (release) {
if (Number(test) == 2) {
gotoAndPlay (&quot;ATop&quot;);
with (_root.MPics_mc) {
gotoAndPlay(&quot;PDown&quot;);
}
} else if (Number(test) == 3) {
gotoAndPlay (&quot;ATop&quot;);
with (_root.MStuff_mc) {
gotoAndPlay(&quot;StDown&quot;);
}
} else if (Number(test) == 4) {
gotoAndPlay (&quot;ATop&quot;);
with (_root.MLinks_mc) {
gotoAndPlay(&quot;LDown&quot;);
}
} else if (Number(test) == 5) {
gotoAndPlay (&quot;ATop&quot;);
with (_root.MStaff_mc) {
gotoAndPlay(&quot;SDown&quot;);
}
}
test = 1;
}

As for your .swf size, try using a smaller sound loop to start (load the bigger one on another level with a loop and when it's loaded stop the small loop and start the big one).

So that's about it...nice work with your script and sorry for making you wait.

Hope it'll help ;-) Have Fun...(try at least...) LOL

Sharky99 >:):O>
 
Wakkoguy!

Hi there,

I've been trying to create a menu similar to the one you made, but I'm having a hard time with a couple things.

I'm not sure where you were putting this variable statement to look for the postion of the other buttons. Could you give me a clue? I downloaded your .fla and have been picking it apart, but I can't seem to figure it out.

Hope you see this!
Thanks for your time!

kate Holy tek-tips batman!:-0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top