Monday, 15 September 2014

How to stop a video in a scene from playing after i move to another scene in flash? -


I have two views, both buttons add both scenes together but from scene 1 to scene 2, The problem arises. The video that plays in Scenario 1 continues to play after I have a second view when I see it on scene 2. Is there any way to stop the previous video?

Here is my code in Adobe Flash CC Action Script.

Button 1 in View 1

  button_1.AdventListener (mouse Event. Pasting, siniotoccen2); Function Scene_1ToScene2 (Event: MouseEvent): Zero {Goto Endplay (1, "Scene 2"); Stay (); }  

2 views in scene 2

  button_2 addEventListener (MouseEvent.CLICK, Scene_2ToScene1) ; Function Scene_2ToScene1 (Event: MouseEvent): Zero {Goto Endplease (1, "Scene 1"); Stay (); }  

Video_001.stop ();

The example video of "video_001" is the name.


No comments:

Post a Comment