Hi everyone,.
I am anticipating that I use today for the first time in ActionScript 3 and used previously only on the edge of AS2.
My problem:In the first scene, an integrietes FLV video expires. After the video at the end arrives, will be bound to the next scene (navigation), where a script is to provide MouseOver menus.
My attempt:First scene | Video
Video on a level and script on a different level.
Script: gotoAndPlay(1, "Navigation");
Second scene | Navigation
Level 1: scripts
bu_verwaltung.addEventListener(MouseEvent.ROLL_OVER, bu_verwaltungOver);
bu_verwaltung.addEventListener(MouseEvent.ROLL_OUT, bu_verwaltungOut);
bu_wareneingang.addEventListener(MouseEvent.ROLL_OVER, bu_wareneingangOver);
bu_wareneingang.addEventListener(MouseEvent.ROLL_OUT, bu_wareneingangOut);
function bu_verwaltungOver(event:MouseEvent):void{
bu_verwaltung.gotoAndPlay("Over_verwaltung");
}
function bu_verwaltungOut(event:MouseEvent):void{
bu_verwaltung.gotoAndPlay("Out_verwaltung");
}
function bu_wareneingangOver(event:MouseEvent):void{
bu_wareneingang.gotoAndPlay("Over_wareneingang");
}
function bu_wareneingangOut(event:MouseEvent):void{
bu_wareneingang.gotoAndPlay("Out_wareneingang");
}
- bu_verwaltung.addEventListener(MouseEvent.ROLL_OVER, bu_verwaltungOver);
- bu_verwaltung.addEventListener(MouseEvent.ROLL_OUT, bu_verwaltungOut);
- bu_wareneingang.addEventListener(MouseEvent.ROLL_OVER, bu_wareneingangOver);
- bu_wareneingang.addEventListener(MouseEvent.ROLL_OUT, bu_wareneingangOut);
- function bu_verwaltungOver(event:MouseEvent):void{
- bu_verwaltung.gotoAndPlay("Over_verwaltung");
- }
- function bu_verwaltungOut(event:MouseEvent):void{
- bu_verwaltung.gotoAndPlay("Out_verwaltung");
- }
- function bu_wareneingangOver(event:MouseEvent):void{
- bu_wareneingang.gotoAndPlay("Over_wareneingang");
- }
- function bu_wareneingangOut(event:MouseEvent):void{
- bu_wareneingang.gotoAndPlay("Out_wareneingang");
- }
Level 2: MC 1
Level 3: MC 2
Level 4: background image
The effect/error:Unfortunately is not only published the second scene (navigation) and the video from scene 1 (video) will play in a loop.
I would be very relieved here would help to find. For the interest already thank you.