It is simple one but i cant figure it out how to do it.
I am doing flash and i have 5 buttons(home,photo,description,service and contact).
Let say my “Home” total timeline is 1-150. In the Home.swf, it run from Frame1 to 100 and then repeat to the beginning. When i click button photo, i need it to start from Frame 101-150 before it go to photo.swf. After reaching Frame 150, it go to photo.swf
Can you do that?? How to do it? Can you reply this and write action script. Is it action script write in the button’s action or somewhere?
you can use gotoAndStop(101) to make it stop at 101
or you can add a stop() action to the frame to make it stop on that frame (I still recommend using gotoAndStop even if you do put a stop() action on each frame).
Ok so I have been wrong, the basic idea is still there, and it is even simpler than what I was saying.
You can send me your .fla if you would like my e-mail is lost at lostinbeta dot com (spam reasons on why I won’t put it, spiders search the board and spam your e-mail… it is a pain)
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?
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.
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)