FORUMS: list search recent posts

Flash: Make stop/go back button

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Thomas Kop
Flash: Make stop/go back button
on Oct 24, 2013 at 12:44:48 pm

First of all, I'm a total newb at codes and stuff. Just been following a few tutorials that's it.

Making a menu with clickable video thumbnails. Click on any of them and that video starts playing. Been following this one:
http://www.republicofcode.com/tutorials/flash/video_portfolio/

The code for the whole thing I have up to now is

my1_btn.onRelease = function (){
myPlayer.contentPath = "video1.mp4";
}
my2_btn.onRelease = function (){
myPlayer.contentPath = "video2.mp4";
}
my3_btn.onRelease = function (){
myPlayer.contentPath = "video3.mp4";
}
my4_btn.onRelease = function (){
myPlayer.contentPath = "video4.mp4";
}
my5_btn.onRelease = function (){
myPlayer.contentPath = "video5.mp4";
}


'my*_btn' is the name of the buttons.

Problem: I click on any video, it starts playing but I cannot stop or pause it, nor can I click on another vid (Well I can one single time, it's like this: I open the menu, click on video A, and when i click on video B it works, but clicking on A again, or C or D etc doesnt work. When I try, the video just keeps playing without reaction)

6671_screenshot2013102414.37.40.png.zip
Thats the interface.

What should I add to the code to make it all work?


Return to posts index

demetri tashie
Re: Flash: Make stop/go back button
on Oct 24, 2013 at 9:12:31 pm

Why not follow one of Tony Ross's tuorials here; either for AS2:
http://library.creativecow.net/ross_tony/Simple_Multi-VideoPlayer_AS2/1

or for AS3:
http://library.creativecow.net/ross_tony/Simple_Multi-VideoPlayer_AS3/1

i personally don't recommend using AS2 for anything like this anymore, but since your code was AS2, i am suggesting either link


Return to posts index

Thomas Kop
Re: Flash: Make stop/go back button
on Oct 25, 2013 at 12:13:15 pm

Thanks, will look into it.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]