Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-03-2012, 02:06 AM   #1
Join Date: Mar 2012
Posts: 64
Default External FLV from web server.

I have a new SWF file loading an external flv I have added One cue to this movie "cue1"
I have traced it the problem is when the cue comes the flv will not play the 2nd frame on the maintime line (I only have 2 frames in all the SWF frame 1 = where the flv is and frame 2 = blank)
here is my code :

import mx.video.*; 
if (eventObject.info.name == "cue1") {

var listenerObject:Object = new Object(); 
listenerObject.metadataReceived = function(eventObject:Object):Void { 
        var i:Number = 0; 
        trace("This FLV contains the following cue points:"); 
        while(i < my_FLVPlybk.metadata.cuePoints.length) { 
            trace("\nName: " + my_FLVPlybk.metadata.cuePoints[i].name); 
            trace(" Time: " + my_FLVPlybk.metadata.cuePoints[i].time); 
            trace(" Type is " + my_FLVPlybk.metadata.cuePoints[i].type); 
my_FLVPlybk.addEventListener("metadataReceived", listenerObject); 
my_FLVPlybk.contentPath = "mov.flv"; 

Here is what i want it to do if (eventObject.info.name == "cue1") {

when the FLV reaches the cue point.
My trace works perfectly
"This FLV contains the following cue points:

Name: cue1
Time: 42.717
Type is event"
So my question is at the time "42.717" the "cue1" point how can i make it play the 2nd frame in the swf...
Thanks in advance!
MAGG0T is offline   Reply With Quote
Old 06-03-2012, 04:31 AM   #2
Join Date: Mar 2012
Posts: 64

this on maintime line where the flv is:

var vidList : Object = new Object();

vidList.complete = function() {



vid.addEventListener ("complete",vidList);


Making the FLV instance name "vid"
MAGG0T is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 02:14 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.