If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hi I don't have a "step by step" answer for you, but I can help with your error code. It looks like you put your "stop();" code on the button and are using the wrong function declaration type as well.

It sounds like you will need to use ActionScript 2 since you have an older version of flash.

Your action script will need to be broken up into two locations:
1) on the timeline: This is where your stop(); goes. Put a stop on frame 1 and another on frame 10
2) on the button: you need to change your code to say:

Code:

on(press){
play();
}

//If you say gotoAndPlay(10) you are telling flash to jump to frame 10 and play from that point, i think you want to play the movie from current location and stop at 10.

Hi I don't have a "step by step" answer for you, but I can help with your error code. It looks like you put your "stop();" code on the button and are using the wrong function declaration type as well.

It sounds like you will need to use ActionScript 2 since you have an older version of flash.

Your action script will need to be broken up into two locations:
1) on the timeline: This is where your stop(); goes. Put a stop on frame 1 and another on frame 10
2) on the button: you need to change your code to say:

Code:

on(press){
play();
}

//If you say gotoAndPlay(10) you are telling flash to jump to frame 10 and play from that point, i think you want to play the movie from current location and stop at 10.

Kool, that's helped alot thanks jkell.

I have a question though, you see where you writ the code: play()
Do i have to write the keyframe i want to target in the brackets?

I've tried doing that, whenever i do, i get an error. Whenever i don't write a keyframe number in the brackets, i don't get an error.

If i have alot of buttons which i want to 'play', i can't specify which keyframe i want it to link to.

I have a question though, you see where you writ the code: play()
Do i have to write the keyframe i want to target in the brackets?

I've tried doing that, whenever i do, i get an error. Whenever i don't write a keyframe number in the brackets, i don't get an error.

If i have alot of buttons which i want to 'play', i can't specify which keyframe i want it to link to.

Perhaps I dont understand what you are trying to do exactly. If you are wanting a button to do a drop down, The drop down animation should should be inside that button. I would attach a sample file, but I dont have the ability to save back to 2004.

As far as the gotoAndPlay(15); vs play(); They both will start playing the movie

gotoAndPlay(***) will jump the playhead to either a ***Frame Label or *** Frame number and then begin playing.

play(); does not need anything inside the perenthesis and starts playing from the current location.

If you are wanting a button to do a drop down, The drop down animation should should be inside that button. I would attach a sample file, but I dont have the ability to save back to 2004.

I would want that exactly, i just don't know how to do it..

So i tried to make a Graphic, convert it into a button and then click on it to show other graphics [in a different keyframe] (which i would also make into buttons, which would also connect to other keyframes).

Is that the correct method to do it?

My problem is whenever i make buttons, i can't actually link them to a different keyframe (i've tried the gotoAndStop/gotoAndPlay method [mentioning the frame they should connect to] but nothing happens, just errors.

My questions:

1 - What's the real method to make buttons with a dropdown (containing graphics) easily?

2 - If my gotoAndPlay idea is correct, why can't i connect to another frame?

“ The strong is not the one who overcomes the people by his strength, but the strong is the one who controls himself while angry." - Muhammad.