Hello All,
I'm hoping to use the FLVPlayback component with a class in flash 8 AS2. I'd
like to avoid placing an instance on the stage at author time. 

Unfortunately, the class below does not play video. Any thoughts? I don't need
any UI controls. I'm just looking to play the flv and loop it continuously. 

Thanks for the help!

-Steven

----- Begin class FLVPlayer.as -----

import mx.video.*;

class FLVPlayer{
        var rootRef:MovieClip;
        var my_FLVPlybk:FLVPlayback;
        
        function FLVPlayer(rootRef:MovieClip) {
                this.rootRef = rootRef; // ref to timeline
        
                rootRef.attachMovie("FLVPlayback", "my_FLVPlybk", 10, 
{width:320, height:240,
x:100, y:100});
                my_FLVPlybk.skin = none;
                my_FLVPlybk.contentPath = "barkerVideo.flv";
        }
}

code on timeline of my .fla:
var player:FLVPlayer = new FLVPlayer(this);



      
___________________________________________________________________________________
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html
_______________________________________________
[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