Grupos de Google ya no admite publicaciones ni suscripciones nuevas de Usenet. El contenido anterior sigue visible.

How to loop FLV video

4,740 vistas
Ir al primer mensaje no leído

mouser

no leída,
16 sept 2007, 5:45:17 p.m.16/9/2007
para
I created a Quicktime file, then imported it into a Flash document as an FLV
file. I will then export to an SWF file. However, I need the SWF file to
loop continuously. How to I do this? I assume I need to do this looping
command to the FLV file in the Flash document BEFORE I export to SWF. If it's
an "action" command, please give me a step by step. Thanks.

dzedward

no leída,
16 sept 2007, 7:02:05 p.m.16/9/2007
para
click the component on stage, look down in the properties inspector and you'll
see <instance name>, click that and type, flvPlayer. Then click the frame that
this resides on, open up the actions panel, make sure it says Actions-Frame in
the upper left hand corner.. paste this.

var myLis:Object = new Object;
myLis.complete = function(){
flvPlayer.play();
}
flvPlayer.addEventListener("complete", myLis);

mouser

no leída,
17 sept 2007, 9:26:46 a.m.17/9/2007
para
Thanks. It works.

donkiekong76

no leída,
2 nov 2007, 12:43:01 p.m.2/11/2007
para
I'm trying to do the same thing, but when I tried the script, I got this error:
"1118: Implicit coercion of a value with static type Object to a possibly unrelated type Function.

dzedward

no leída,
2 nov 2007, 12:46:58 p.m.2/11/2007
para
What are you Actionscript publish settings? AS2 or AS3?

donkiekong76

no leída,
2 nov 2007, 12:54:16 p.m.2/11/2007
para
action script 3

dzedward

no leída,
2 nov 2007, 12:56:42 p.m.2/11/2007
para
im going to assume AS3 since the nature of the Error. You will need to use AS3
syntax, my earlier post is AS2 syntax. This is what you need.

import fl.video.VideoEvent;
flvPlayer.addEventListener(VideoEvent.COMPLETE, videoFinished);
function videoFinished(event:Event){
flvPlayer.play();
};

donkiekong76

no leída,
2 nov 2007, 1:10:47 p.m.2/11/2007
para
awesome, that worked. Thank you very much.

I have another question. While I was looking up a solution for this, I found
the following AS2 script which you're supposed to apply to an flv object, I
believe:

on (complete) {
this.autorewind =true;
this.play();
}

Is there an AS3 equivalent to this script?

dzedward

no leída,
2 nov 2007, 1:18:38 p.m.2/11/2007
para
you do not need that.

XiRoCCo

no leída,
15 abr 2008, 1:40:00 p.m.15/4/2008
para
Thanks for this thread, and dzedward - thanks for the AS3 looping code! Works like a charm.

jras...@gmail.com

no leída,
21 jun 2012, 3:37:04 p.m.21/6/2012
para
On Tuesday, April 15, 2008 1:40:00 PM UTC-4, XiRoCCo wrote:
> Thanks for this thread, and dzedward - thanks for the AS3 looping code! Works like a charm.

I don't see where to paste the code. I'm using CS6. When I open up the "Actions" panel, it just says "Actions" in the upper-left, not "Actions-Frame".

I'm surprised Flash doesn't simply have a checkbox that you can click to tell the video to loop. Why make it so complicated?

jras...@gmail.com

no leída,
21 jun 2012, 4:00:26 p.m.21/6/2012
para
Where do you place this code? I tried placing it in the COMPLETE event, but when I tried to publish the file, I get this error:
Scene 1, Layer 'Layer 1', Frame 1, Line 7 1118: Implicit coercion of a value with static type Object to a possibly unrelated type Function.

thereap...@gmail.com

no leída,
19 nov 2014, 6:58:25 a.m.19/11/2014
para
For the code to work, you will have to make a new layer above your animation layer, then in a single above the component, paste the code (in the new layer)

0 mensajes nuevos