To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Product Support > Koolmoves

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-22-2006, 03:15 PM   #1
tdromba
Junior Member
 
Join Date: Nov 2006
Posts: 3
SWF to play FLV passed as a get variable

Hi all:

I've build quite a few swf's which play video and audio, but now I need to build some which can play mp3 or flv based on a get variable, e.g.:

http://foo.com/player.swf?movie=bar.flv

So, the swf needs to be able to load the flv or mp3 dynamically based on the url, in other words.

Any clues how to start? I've done a reasonable amount of action scripting but not this particular problem.

Thanks in advance for your help.

TD
tdromba is offline   Reply With Quote
Old 11-27-2006, 06:33 PM   #2
tdromba
Junior Member
 
Join Date: Nov 2006
Posts: 3
Well, no responses. How can I word this differently, perhaps more clearly.

I not familiar with how a swf retrieves variables from a url. For example, in PHP, all 'GET' variables (those appended to a url) are available in the $_GET[] array, post variables in $_POST, cookie vars in $_COOKIE, etc.

And, in javascript, you can set the 'src' attribute of an image. So you can simply do myimage.src="./foo.gif" to change it.

So I simply need to know how to more or less replicate those behaviours in a SWF using action script. How can I retrieve the value of a GET variable via action script, and use that value to set the stream source for an FLV object in a SWF movie.

Thanks in advance if you can help.

Best,
td
tdromba is offline   Reply With Quote
Old 11-27-2006, 08:19 PM   #3
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,911
Quote:
Originally Posted by tdromba
Hi all:

I've build quite a few swf's which play video and audio, but now I need to build some which can play mp3 or flv based on a get variable, e.g.:

http://foo.com/player.swf?movie=bar.flv

So, the swf needs to be able to load the flv or mp3 dynamically based on the url, in other words.

Any clues how to start? I've done a reasonable amount of action scripting but not this particular problem.

Thanks in advance for your help.

TD
That would work actually you that should give you a variable named movie set to equal bar.flv
blanius is offline   Reply With Quote
Old 11-28-2006, 02:35 PM   #4
tdromba
Junior Member
 
Join Date: Nov 2006
Posts: 3
Okies, thanks, Blanius. I'll move ahead from there.

td
tdromba is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Product Support > Koolmoves

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT -4. The time now is 08:22 AM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.