View Full Version : what code would i use if i wanted it so if a button is pressed a movies clip, is play
happi
01-16-2009, 02:50 PM
i don't know if this is a noob question or not xD but what code would i use if i wanted it so if a button is pressed a movies clip, is played (or altleast to a certain frame) or start form a certain frame insted of from the start of the clip... ty in advance if you help :)
pixum
01-16-2009, 03:18 PM
something like this:
myButton.addEventListener(MouseEvent.CLICK, playMovie, false, 0, true);
function playMovie(e:MouseEvent):void {
myMovie.gotoAndPlay(15) // it can be a frame no (int), or a framelabel (string)
}
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.