Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,383 Programmers. There are 1,390 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

PLAYER_NAME.source = FlashVars

 
Reply to this topicStart new topic

PLAYER_NAME.source = FlashVars, pass a flashVars to flvplayback

wiredwizard
post 24 Apr, 2008 - 10:06 AM
Post #1


D.I.C Head

Group Icon
Joined: 7 May, 2005
Posts: 64



Ok trying to use flvPlayback commponent in the actionscript section I have
CODE
PLAYER_NAME.source = FlashVars


and I am passing the vars from html page.

when code is set up as
CODE
myPlayer.source = "movie1.flv";


all works fine I want to change the movie1.flv to be the FlashVars I'm passing in from html
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


wiredwizard
post 24 Apr, 2008 - 11:53 AM
Post #2


D.I.C Head

Group Icon
Joined: 7 May, 2005
Posts: 64

ok got it myself but just for FYI just added to frame one of video player
CODE

function loaderComplete(myEvent:Event)
{
  var flashVars=this.loaderInfo.parameters;
  myPlayer.source=flashVars.moviePath;
}

this.loaderInfo.addEventListener(Event.COMPLETE, loaderComplete);

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 03:52AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month