Groups | Blog | Home
all groups > macromedia flash sitedesign > november 2003 >

macromedia flash sitedesign : button prob


GilesW
11/29/2003 12:10:31 PM
hello,

Well, I have run into a little problem whilst making my site. I have nave bat which, when the mouse goes over it comes up and reveals the buttons *the buttons being 3 pictures) Ive put a stop action at from 86 (the frame where i dont want the movie to continue to go) and i want the button, when pressed to go to frame 87, which is easy enu, noramly. My problem is i put an ; on release, folowed my a; gotoAndPlay(87) code, which i thought would make the movie start playing frame 87, but, instead it only puts the nav bar down. The fla. is below if you dont unerstand me. The button i want to make the movie go to fame 87 has an instance name "portfolio" and it is in the bar at the button of the screen named "navbar"

If you could help me that would be swell.

I couldnt uload the fla, the file is too big (even ziped)

Ohwel, hope you understand me

Thanks alot.

GilesW
11/30/2003 10:21:06 AM
please???

I think Ive worked out the problem, but its the solution which is giving me a hard time.

The button seems to be playing the navbar's movie clip's timeline, not the main one, so i tryed button in "Scene 1" into the script but it doesnt change nething. So im think i wil have to use a direct reference thing (eg: navbar.portfolio gotandplay(87) ) or somthing but I cant write actionscript so i dont know what to do.

this is my code so far:

on (release) {
gotoAndPlay("Scene 1", 87);
}

thanks for ne help


stwingy
11/30/2003 2:17:40 PM
Yes, it does sound like a problem of reference. It is difficult to help you without the file but to find the path to a movieclip, type trace (this) in its timeline.

Certified but not by Macromedia!
AddThis Social Bookmark Button