Click to See Complete Forum and Search --> : php and flash


jrthor2
06-20-2005, 12:58 PM
I have a flash file that I want to link to this:

a href="<?=log_and_redirect('http://xxx.xxx.com')?>"

But, how do I put that link into the flash getURL command:

on release {
getURL("<?=log_and_redirect('http://xxx.xxx.com')?>")
}

I use this log_and_redirect php method to track where my users are going.

Thanks!

Frozen Peas
06-23-2005, 03:49 PM
There is no way that method will work... PHP processes PHP files, not Flash.

You need to get your data with a PHP script, return that data to Flash using loadVars, then use that data in the getURL statement.