gotoAndPlay to another scene for video does not work

  • MartinJRR
  • Born
  • Born
  • No Avatar
  • Joined: Mar 24, 2012
  • Posts: 2
  • Status: Offline

Post March 24th, 2012, 9:12 am

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.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 24th, 2012, 9:12 am

  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post March 24th, 2012, 12:44 pm

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.
Use your words like arrows to shoot toward your goal.
  • MartinJRR
  • Born
  • Born
  • No Avatar
  • Joined: Mar 24, 2012
  • Posts: 2
  • Status: Offline

Post March 25th, 2012, 6:26 am

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
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post March 30th, 2012, 11:02 pm

You can upload a zipped file of your project to google docs and invite me to the file. My gmail username is voltecdesign.
Use your words like arrows to shoot toward your goal.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 27 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.