Hey Guys,
As the title suggests, Ive got a standard flash file with the option to play one of three FLVs and when each flv is clicked it makes the others stop.
What I need to do is set an action so that when an flv reaches the end of its duration it goes to a specific frame in the timeline?
Im new to Actionscripting so any help will be appreciated!
Thanks!
ps. here is my code
stop();
import flash.events.MouseEvent;
import flash.media.SoundMixer;
//---People --//
people.addEventListener(MouseEvent.MOUSE_OVER, peopleover);
people.addEventListener(MouseEvent.MOUSE_OUT, peopleout);
people.addEventListener(MouseEvent.CLICK, peopleclick);
function peopleover(event:MouseEvent):void{
people.alpha = 1;
}
function peopleout(event:MouseEvent):void{
people.alpha = 0;
}
function peopleclick(event:MouseEvent):void{
SoundMixer.stopAll();
gotoAndStop("getpeoplevid");
}
//---Ethics --//
ethics.addEventListener(MouseEvent.MOUSE_OVER, ethicsover);
ethics.addEventListener(MouseEvent.MOUSE_OUT, ethicsout);
ethics.addEventListener(MouseEvent.CLICK, ethicsclick);
function ethicsover(event:MouseEvent):void{
ethics.alpha = 1;
}
function ethicsout(event:MouseEvent):void{
ethics.alpha = 0;
}
function ethicsclick(event:MouseEvent):void{
SoundMixer.stopAll();
gotoAndStop("getethicsvid");
}
//---ambition --//
ambition.addEventListener(MouseEvent.MOUSE_OVER, ambitionover);
ambition.addEventListener(MouseEvent.MOUSE_OUT, ambitionout);
ambition.addEventListener(MouseEvent.CLICK, ambitionclick);
function ambitionover(event:MouseEvent):void{
ambition.alpha = 1;
}
function ambitionout(event:MouseEvent):void{
ambition.alpha = 0;
}
function ambitionclick(event:MouseEvent):void{
SoundMixer.stopAll();
gotoAndStop("getambitionvid");
}