FORUMS: list search recent posts

AS 3.0 flv playback: close upon completion

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
walt landy
AS 3.0 flv playback: close upon completion
on Nov 12, 2008 at 5:08:35 pm

hi all,

many thanks in advance for any help with this.

i'm working on an interactive ergonomics guide (playback from disc), where one of the modules has a picture of a workstation where users click on a button over the chair/monitor/keyboard and a video would play explaining how to adjust that item. the video is an flv in a player component that plays on top of the menu and then when complete (here's my problem) it should disappear/close and reveal the menu.

do you know what script i'd use to close the flv playback component upon completion. there's a videoevent close script, but i don't know how to execute it (if that's the right solution). maybe a flv cue point could trigger it? any advice?

here's the current script:

stop();
import fl.video.VideoPlayer;
import flash.events.MouseEvent;
import fl.video.*;

mon_flv.visible = false

mon_btn.addEventListener(MouseEvent.CLICK, monClick);
function monClick(event:MouseEvent):void
{
mon_flv.visible = true;
mon_flv.play();
}


Return to posts index

Johan le Roux
Re: AS 3.0 flv playback: close upon completion
on Nov 13, 2008 at 10:50:46 am

maybe look here:

http://www.laflash.org/forum/archive/index.php/t-1418.html



Return to posts index

walt landy
Re: AS 3.0 flv playback: close upon completion
on Nov 13, 2008 at 3:53:20 pm

hi johan,

thanks for taking the time to respond. i really appreciate it.

i just solved the problem with help on another board. here's the code:

stop();

import fl.video.VideoPlayer;
import flash.events.MouseEvent;
import fl.video.*;

mon_flv.visible = false;

mon_btn.addEventListener(MouseEvent.CLICK, monClick);
function monClick(event:MouseEvent):void
{
mon_flv.visible = true;
mon_flv.play();
}

import fl.video.VideoEvent;
mon_flv.addEventListener(VideoEvent.COMPLETE, hideVideo);
function hideVideo(event:VideoEvent):void
{
mon_flv.visible = false ;
mon_flv.seek(0) ;
}



Return to posts index


Johan le Roux
Re: AS 3.0 flv playback: close upon completion
on Nov 24, 2008 at 8:24:47 am

Simple and effective way of doing it yes. great. Johan.



Return to posts index

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