[MX] N00B actionscripting here

hey
i wanna try an get this navigation goin for a portfolio site
lol, first part of the project an im already stuck

im tryin to get this main nav bar working

this is sort of like yorkshires post, whatever, ill post what i got so far

if you check the actions on the movieclip inside the other movieclip, they are prolly wrong
i would just like it go to a frame label when pressed
let me know what im doing wrong please
thx

Simply change the on press action on your movie clip to this…

on (press) {
	_parent.gotoAndPlay("closed");
}

This works too…

on (press) {
	_parent.play();
}

HEY - dont say simply!!
it is simple to you but hard for people just learning like me! lol jk
thanks so much
now just so i know -
u obviously use _parent because it is nested in another mc, correct?

your current script was expecting to play a frame that was inside that clip, but in actuality ut was supposed to play a frame on the timeline that the clip is on… so yes…lol.

yeeeo, check it out

couple of questions

1- whats the best way to link those buttons to the information they will provide (work button will lead to jpg slideshow or something, resume button will lead to a scrollable box with resume, and contact will lead to just a single page of info)

2-you see that graphic in the circle? i lowered opacity to conceal the white BG, but i was wondering if there was another way to get rid if the BG of an imported jpg. (if you save it as a gif with no BG in photshop, doesnt that lose qaulity?)

  1. loadMovie()

  2. No, considering the amount of colors used, you can have great quality, with less file size if you save as a transparent gif.

I’m not sure, and I’m no expert (trust me), but if you not already, I would use Lost’s second option… The Play() one. Otherwise, I think, you would just keep going to 1 frame, the frame with the stop().

Both do the exact same thing morse.

The play() one is just shorter :slight_smile:

:slight_smile:

thx guys