FORUMS: list search recent posts

FLV not playing in DVD mimic project

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mark Allen
FLV not playing in DVD mimic project
on Oct 9, 2009 at 7:40:47 pm



I was following the excellent tutorial of demetri for making flash act like a DVD posted here: http://www.demetri-media.com/FlashTalker/CuePoints.html

But I'm not having much luck when I mimicked it. I'm pretty new to flash, so I may have made some obvious error, but the debugger shows no problems (anymore).

The movie files are sitting in the same folder as every other file and are flv's.

What happens is that I click on the button (this is maybe an issue, I used buttons as my buttons?) and it does hide everything, but the movie does not ever start to play. So did I do something wrong in my indication for the movie to play?

thank you.



import fl.video.*;

var flvPlayer:FLVPlayback = new FLVPlayback();

flvPlayer.addEventListener(VideoEvent.COMPLETE, remove);
function remove(evt:VideoEvent):void{
removeChild(flvPlayer);
flvPlayer.stop();
backgroundimage.visible=true;
btn01.visible=true;
btn02.visible=true;
btn03.visible=true;
btn04.visible=true;
btn05.visible=true;
btn06.visible=true;
btn07.visible=true;
btn08.visible=true;
}

btn01.addEventListener(MouseEvent.CLICK, movie1);
function movie1(evt:MouseEvent):void{
addChild(flvPlayer);
flvPlayer.x=115;
flvPlayer.y=70;
flvPlayer.source="00_30p960_0PLAYALL";
backgroundimage.visible=false;
btn01.visible=false;
btn02.visible=false;
btn03.visible=false;
btn04.visible=false;
btn05.visible=false;
btn06.visible=false;
btn07.visible=false;
btn08.visible=false;
}

btn02.addEventListener(MouseEvent.CLICK, movie2);
function movie2(evt:MouseEvent):void{
addChild(flvPlayer);
flvPlayer.x=115;
flvPlayer.y=70;
flvPlayer.source="00_30p960_MarkAllen_Montage2009a_vb3";
backgroundimage.visible=false;
btn01.visible=false;
btn02.visible=false;
btn03.visible=false;
btn04.visible=false;
btn05.visible=false;
btn06.visible=false;
btn07.visible=false;
btn08.visible=false;}

btn03.addEventListener(MouseEvent.CLICK, movie3);
function movie3(evt:MouseEvent):void{
addChild(flvPlayer);
flvPlayer.x=115;
flvPlayer.y=70;
flvPlayer.source="01_30p960_Fallen_Deliver01b3960cut";
backgroundimage.visible=false;
btn01.visible=false;
btn02.visible=false;
btn03.visible=false;
btn04.visible=false;
btn05.visible=false;
btn06.visible=false;
btn07.visible=false;
btn08.visible=false;}

btn04.addEventListener(MouseEvent.CLICK, movie4);
function movie4(evt:MouseEvent):void{
addChild(flvPlayer);
flvPlayer.x=115;
flvPlayer.y=70;
flvPlayer.source="02_24p960_PSA_blur1_Leastlikely960ProRes";
backgroundimage.visible=false;
btn01.visible=false;
btn02.visible=false;
btn03.visible=false;
btn04.visible=false;
btn05.visible=false;
btn06.visible=false;
btn07.visible=false;
btn08.visible=false;}

btn05.addEventListener(MouseEvent.CLICK, movie5);
function movie5(evt:MouseEvent):void{
addChild(flvPlayer);
flvPlayer.x=115;
flvPlayer.y=70;
flvPlayer.source="03_24p960_SI_RW_V0711_960PRORES_D01";
backgroundimage.visible=false;
btn01.visible=false;
btn02.visible=false;
btn03.visible=false;
btn04.visible=false;
btn05.visible=false;
btn06.visible=false;
btn07.visible=false;
btn08.visible=false;}

btn06.addEventListener(MouseEvent.CLICK, movie6);
function movie6(evt:MouseEvent):void{
addChild(flvPlayer);
flvPlayer.x=115;
flvPlayer.y=70;
flvPlayer.source="05_30p960_skechers-ALLcombo";
backgroundimage.visible=false;
btn01.visible=false;
btn02.visible=false;
btn03.visible=false;
btn04.visible=false;
btn05.visible=false;
btn06.visible=false;
btn07.visible=false;
btn08.visible=false;}

btn07.addEventListener(MouseEvent.CLICK, movie7);
function movie7(evt:MouseEvent):void{
addChild(flvPlayer);
flvPlayer.x=115;
flvPlayer.y=70;
flvPlayer.source="07_24p960_KRDK_2009scenes";
backgroundimage.visible=false;
btn01.visible=false;
btn02.visible=false;
btn03.visible=false;
btn04.visible=false;
btn05.visible=false;
btn06.visible=false;
btn07.visible=false;
btn08.visible=false;}

btn08.addEventListener(MouseEvent.CLICK, movie8);
function movie8(evt:MouseEvent):void{
addChild(flvPlayer);
flvPlayer.x=115;
flvPlayer.y=70;
flvPlayer.source="08_30p960_discovery_v03";
backgroundimage.visible=false;
btn01.visible=false;
btn02.visible=false;
btn03.visible=false;
btn04.visible=false;
btn05.visible=false;
btn06.visible=false;
btn07.visible=false;
btn08.visible=false;}




Return to posts index

Robert Meade
Re: FLV not playing in DVD mimic project
on Oct 11, 2009 at 6:12:44 am

I'm fairly new to Flash as well. I'm personally an AE / Photoshop guy. However, I don't see any action script code telling the player to actually play the source file your naming it. Try going over that in your code or select the flashplayer component and go to windo > component inspector > and set auto play to true Maybe that will help.


Return to posts index

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