Menu button problem!

Remember, the buttons are at index.fla

There are no button at homepage.fla, photo.fla and others fla.

Do i have to use “if” or “else if” or other conditions?

do you want me to send you photo.swf?

Copy and paste the code I used on the button for Photo onto the button for Home.

Change the variable file to say “homepage” (no quotes) instead of “photo”.

Then change the gotoAndPlay action to the frame you fade out animation starts at.

Now copy and paste the actions of the last frame of homepage.fla into the last frame of photo.fla.

Now , it does work. Other buttons does not work.

It works fine with 2 buttons - home and photo.

With 3rd or 4th button…Let say i am at photo.swf, and 3rd button is “contact”. It wont do neither animation of photo fade out nor go to contact.swf.

How to fix that problem? Does it make sense to you what i am saying?

What you could do…

Not go by frame numbers…

Instead… go by frame lables.

Right click on the frame that begins your fade out animation and open the properties panel. In the area that says < Frame Label > you will put the name fadeOut .

You will do this for all your sections fade out parts.

Now on the buttons you will call _root.container.gotoAndPlay(“fadeOut”);

And it will always go to the frame labeled fadeOut and play from then on.

GREAT, you had solved the problem–buddy

Now, there is 1 problem that when i am at homepage.swf, I click home button. It starts fade out and go to homepage. How do i prevent its fade out?

bah…lol.

This only happens when you are on the main page right?

If so… I say leave it that way…lol. You will have to go through more trouble than its worth to fix it.

That involves using some kind of variable to detect if the homepage.swf is loaded and disabling the home button or something along those lines.

But that would probably involve something in each file… a pain.

Unless you can do it on the main timeline… I think I am getting an idea…lol…

I will post in a little bit.

LMAO

Ok, i will leave like this. Sorry for bother you too much and waste your time.

WOW…you have spend this problem almost the whole day and waste your time on it.

Thx buddy…and I have learnt more things from you.

If you are bored and nothing to do, you can go to http://www.callofcombat.com

FREE GAME online

Hey, I wouldn’t try and fix it if I thought I was wasting my time :slight_smile:

Although, the way I just tried to fix it didn’t work, I believe I know why, and that involves changing your button symbols to movie clip symbols :-.

Now that I do not have time for (at least right now it is 12:30 am here).

Sorry :frowning:

Cool site BTW. Thanks for the link.:slight_smile: