gotoAndPlay to another scene for video does not work

  • MartinJRR
  • Born
  • Born
  • MartinJRR
  • Posts: 2

Post 3+ Months Ago

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.
Code: [ Select ]
Script: gotoAndPlay(1, "Navigation");


Second scene | Navigation
Level 1: scripts
Code: [ Select ]
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");
}
  1. bu_verwaltung.addEventListener(MouseEvent.ROLL_OVER, bu_verwaltungOver);
  2. bu_verwaltung.addEventListener(MouseEvent.ROLL_OUT, bu_verwaltungOut);
  3. bu_wareneingang.addEventListener(MouseEvent.ROLL_OVER, bu_wareneingangOver);
  4. bu_wareneingang.addEventListener(MouseEvent.ROLL_OUT, bu_wareneingangOut);
  5. function bu_verwaltungOver(event:MouseEvent):void{
  6.     bu_verwaltung.gotoAndPlay("Over_verwaltung");
  7. }
  8. function bu_verwaltungOut(event:MouseEvent):void{
  9.     bu_verwaltung.gotoAndPlay("Out_verwaltung");
  10. }
  11. function bu_wareneingangOver(event:MouseEvent):void{
  12.     bu_wareneingang.gotoAndPlay("Over_wareneingang");
  13. }
  14. function bu_wareneingangOut(event:MouseEvent):void{
  15.     bu_wareneingang.gotoAndPlay("Out_wareneingang");
  16. }

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.
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Posts: 854

Post 3+ Months Ago

If you post your files for me or pm me with the project files I can take a look and see if I can find the answer. But I have a feeling that your last keyframe on scene 1 isn't calling the second scene nor setting a stop() command.
  • MartinJRR
  • Born
  • Born
  • MartinJRR
  • Posts: 2

Post 3+ Months Ago

Hello mindfullsilence, friendly, that you want to help. How can I send the file for you? It would be somewhat unhappy to publish them here. Until then, a nice Sunday for you.
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Posts: 854

Post 3+ Months Ago

You can upload a zipped file of your project to google docs and invite me to the file. My gmail username is voltecdesign.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.