#1 (permalink)  
Old 05-19-2008, 07:29 AM
Junior Member
 
Join Date: May 2008
Posts: 2
Default FLV player light help pls

Hey,

I've purchased your player for my project but want to remove the xml and link a video.flv from within my source fla.

I’ve looked at your notes and AS but can’t work out how to modify this… could you help pls.

An example would be great.

Many thanks
Dax
Reply With Quote
  #2 (permalink)  
Old 05-19-2008, 12:40 PM
Super Moderator
 
Join Date: May 2008
Posts: 518
Send a message via Skype™ to Adrian
Default

Hi,
To play a certain flv without specifing it in the xml file, just use loadFLV command:

_global.PLAYER.loadFLV("flv url goes here");

You will have to remove line 23 from the first frame action script of the main .fla file.

If you mean loading a movie from the library, that is not going to work. I've created this player to work only with external files, and the video object is action script controlled.
Reply With Quote
  #3 (permalink)  
Old 05-19-2008, 02:02 PM
Junior Member
 
Join Date: May 2008
Posts: 2
Default

Hi Adrian,

This is great I will give it a try when i get home from work - thanks for your reply by the way.

The reason for avoiding the xml route is that I think it's clashing with some other AS in my horizontal scrolling gallery. The video is buried within several nested mc's and when I use your xml route and player it causes the movie to stutter along... I've tested in another project and it works fine so am thinking if I link the flv directly it might cure the problem - it's a shame cos i think the xml route is ace! – Unless you have any other theories?

Also, am I able to control the video via my fla too? Basically i don't want the video to auto play.

Cheers
Dax
Reply With Quote
  #4 (permalink)  
Old 05-20-2008, 07:58 PM
Super Moderator
 
Join Date: May 2008
Posts: 518
Send a message via Skype™ to Adrian
Default

Yes,
You can use applyVars method to initialize the player. Here is a sample code:

Code:
var o:Object = {autoplay:"true", autorewind:"true", buffer:"5", ...} // and almost all the other variables you can find in the xml file with values as String

_global.PLAYER.applyVars(o);
Reply With Quote
  #5 (permalink)  
Old 07-07-2008, 05:44 PM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default Still not quite sure how to do it...

I read your post above after i recently downloaded this file. I still can't get it to work within my html file. Can i simply change the loadFLV() in the JS part of my html? Like:

var so = new SWFObject("VPlayer2.swf", "flash2", "606", "486", "8", "#303030");
loadFLV(url:String)
so.loadFLV("orfalea-Oprah-Winfrey-Show-2005.flv");

?

What i'm trying to accomplished is loading dynamic values via ColdFusion into the loadFLV() function, so that i only need 1 player. According to your features, it said this product could do that by just using the loadFLV() function.
Any suggestions?
Thanks,
David
Reply With Quote
  #6 (permalink)  
Old 07-07-2008, 06:32 PM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default Firefox

I also realized that the toolbar doesn't appear in firefox, but it appears fine on your site. Any thoughts?
Reply With Quote
  #7 (permalink)  
Old 07-08-2008, 06:00 PM
Super Moderator
 
Join Date: May 2008
Posts: 518
Send a message via Skype™ to Adrian
Default

the loadFLV method is ActionScript not Javascript. You have to specify the flv file in the xml.
Reply With Quote
  #8 (permalink)  
Old 07-08-2008, 06:13 PM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default Did that

I tried to do that, but i still didn't work. Can you just refund my money? I've already wasted far too much time on this. I'd appreciate it.
Thank you.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.