homepage Welcome to WebmasterWorld Guest from 23.20.61.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
streaming audio mp3 video flv using flashvars and html
streaming audio mp3 video flv using flashvars and html
drooh

5+ Year Member



 
Msg#: 3807501 posted 11:24 pm on Dec 14, 2008 (gmt 0)

Hello, I am using the default streaming player included in flash and just wondering how i might could use variables passed from the html to set the video file itself and possibly the width of the player.

is there an easy way to do this? Id like to not have to specify the video file name in flash but rather in the html or javascript as I plan to use this dynamically with php and alot of different video files.

 

eelixduppy

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3807501 posted 8:59 pm on Dec 21, 2008 (gmt 0)

Using PHP, you should be able to echo the value of a "movie" flash variable in the generated HTML:

<PARAM NAME=FlashVars VALUE="movie=<?php echo $movie_name; ?>">

or within the embed:

FlashVars="movie=<?php echo $movie_name; ?>"

drooh

5+ Year Member



 
Msg#: 3807501 posted 6:14 pm on Dec 22, 2008 (gmt 0)

yes this part is easy and i understand it. what i need to know is how to allow this in flash. for instance i am building an mp3/flv streamer and want to inside using flash set it up to allow flash vars.

eelixduppy

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3807501 posted 6:43 pm on Dec 23, 2008 (gmt 0)

You can try something like this in AS3:

var videoSource:String = root.loaderInfo.parameters.movie;

drooh

5+ Year Member



 
Msg#: 3807501 posted 4:59 am on Jan 19, 2009 (gmt 0)

eelixduppy can you provide any links to such documentation?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved