I am doing a Video Gallery in flash, Im loading the FLV files dynamically, I 
want to know the totalTime of the new video loaded, Im using the totalTime 
property after load the FLV but It doesnt work.
I need the total duration of each video, how can I do?, any ideas?

function carga() 
    {
        video_mc.visible = false;
        video_mc.stop();
        video_mc.setMedia("video1.flv");
        //video_mc.contentPath = "video1.flv";
        onEnterFrame = function() 
          {
                btotal = video_mc.bytesTotal;
                bcargados = video_mc.bytesLoaded;
                redondeo = Math.round((bcargados*100)/btotal);
                barraProgreso_mc.barra_mc._xscale = redondeo;
                if (redondeo >= 100) 
                    {
                        delete onEnterFrame;    
                        cargado = true;                                         
       
                        duracionTotal  = video_mc.totalTime;    
                    }
          }
    }//carga


 
Ing. Juan Anzaldo
Tel Cel. 614 427-6523
Blog : http://janzaldo.wordpress.com

----- Original Message ----
From: Rob Romanek <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, March 26, 2007 10:59:46 AM
Subject: Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

On Mon, 26 Mar 2007 12:17:10 -0400, elibol <[EMAIL PROTECTED]>  
wrote:

> Here is a good article on class/package syntax and structure:
>
> http://probertson.com/articles/2006/07/28/one-file-many-as3-classes/
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com







 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to