Menu button problem!

Yes buddy… now you do understand my question =)

But you forget the button.

code:

on (release) {
gotoAndPlay(101);
_root.container.loadmovie (“photo.swf”);
}

I used that code at above. It wont work go to Frame 101 and play. ok, i will email you. If you need other files, let me know.

Anyways, i sent the files, it is not actual what i want. It is just a case.

The orginal one is gotoAndPlay (299).
I hope you make sense.

Ok, I see your buttons are in an index.fla file

and your animation is in homepage.swf.

and your photo is of course photo.swf.

Now on your button directly, you have the load movie command.

Since you attach it to the same clip the photo.swf replaces the homepage.swf.

What I am wondering is… what exactly did you want your button to do? Did you want your button to play the photo fade animation of homepage.swf and then load photo.swf?

YESSSS, buddy…

When i click photo button, i want my homepage’s animation to play at Frame 299 till the end and then load photo.swf

Sorry I am not too good to explain.

I am not good at explanations either.

I will see what I can do, but as for now I have to go. I will work on this later though :slight_smile:

Check your e-mail…

Problem solved :slight_smile:

GLAD… thx buddy :beam: I owe you a beer :stuck_out_tongue:

I have visited your website. It is great site, and it seem like you work in flash but it is html. Am i right? when i click experiment button, it rolling to the right and then click home, rolling to the left.

Once again, thx buddy

Yeah, my site uses a lot of Javascript and some DHTML :slight_smile:

I learned those before I started AS (well I learned very little DHTML, but I am thinking about taking it up again).

No Problem…

what is the difference between dhtml and html?
"d" stand for database?**

you should start learn XML and i think it is hard to use.:rambo:

*Originally posted by so9 *
what is the difference between dhtml and html?
“d” stand for database?

you should start learn XML and i think it is hard to use.:rambo: **

d stands for dynamic

h88

Yep…

Dynamic Hypertext Markup Language.

It is like Actionscript for HTML (it is harder to utilize, but now that I know a bit of AS, I might get back into it).

hey lostinbeta

Remembered, i click photo button, my animation of homepage fade out and load photo.swf.

Now, the problem is that when i am at photo page, and i click home button, my animation of photo won’t fade out. It staight away go to homepage.swf, how do i fix it?

Hrmm, I didn’t know there was a fade out animation for photo.swf.

You never sent me the .fla.

Have your home button do the same thing as you about button.

Have it gotoandplay the fade out animation (by targeting _root.container)… then do the variable thing I did with the photo.swf (the action for actually changing that is on the last frame of homepage.swf)

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: