Log in

View Full Version : Variable in .swf's URL



Moglizorz
01-03-2008, 11:47 AM
I wonder if it is possible to do the same sort of thing that gets done in pHp, but for flash:

File: /player.swf

I want to call "video1.flv" that is in the same directory, to a video player in that .swf, like so:

File: /player.swf?v=video1.flv (This will just be embedded in the html/php)

If there any way to do this in flash? The video1.flv would be in the same directory by the way.



Perhaps the same way as YouTube would present a link like http://www.youtube.com/v/TC2xmIbTBBI and it redirects to a video file, but the embed still works.

Medyman
01-03-2008, 06:16 PM
You can do it with a combination PHP + FlashVars.

Take a look at my post here: http://dynamicdrive.com/forums/showthread.php?t=27385&p=123272

Post back with any questions.