PDA

View Full Version : alternative to: onClipEvent (load)?



artane
August 21st, 2003, 05:57 PM
hey guys I'm stuck again,

I've got this on a movie clip instance and it works great:

onClipEvent (load) {
tellTarget ("music1") {
gotoAndPlay(5);
}
}


What I want to do however, is have "music1" play earlier on in the movie. I have a specific frame that I want it to start playing on. I don't want to wait until this clip loads.

I've tried just putting a keyframe on a frame within the main timeline and adding some script but, I can't make it work. What would be the correct way to do this?

Thanks again,

artane :)

claudio
August 21st, 2003, 11:26 PM
Place this on the frame you want it to start playing:music1.gotoAndPlay(5);

artane
August 22nd, 2003, 04:41 PM
thanks claudio, I got it working!

artane

claudio
August 22nd, 2003, 11:06 PM
welcome :)