Log in

View Full Version : flash movie reading current url



da_mascus
02-01-2010, 11:05 PM
Hi folks,
I am trying to make a flash header that would load external movies/images depending on what url it is.
The thought was something like flash movie checks the url, compares with those ones he has stored in his script and if he finds it there it'll load the approperiate external movie/image.
thanks in advance for any help with this

djr33
02-02-2010, 02:12 AM
Not that this is necessarily the cleanest way to do it, but you can of course use a get variable to pass along the url:
<.... src="flash.swf?url=<?php echo $_SERVER['REQUEST_URI']; ?>">

Then you'd have that in flash as you need it. I'm sure there's a way to do this without it, but that may help. If you don't have php available, there are other ways to pass that along if needed.

Of course you'll need to do the other part with deciding how to parse that and do something. (I wouldn't know how in flash.)

da_mascus
03-01-2010, 09:06 AM
thanks a lot my friend.
sorry for the late reply but somehow I didn't get the new post notification.
anyhow, will try and maybe trouble you some more :)

THNX!