JohnnyC
01-25-2005, 06:07 PM
Hello all,
What I am trying to do is take a file named test.php, which includes something like this:
<?
// START of TEST.php
$name = "file name blah blah blah";
$url_location = "http://www.yahoo.com/images/blahblahblah/TEST.swf";
?>
<form>
<input name ="name" value ='<? echo $name; ?>'>
<embed src="/swf_file.swf"> (with all the other normal flash embed stuff)
</form>
<?
// END of TEST.php
?>
and get swf_file.swf to IMPORT the local variable $name and $url_location from the TEST.php file which it is being output from.
Also how to take the FORM data variable field of name and be able to use that variable in the flash.
I really would like to do this WITHOUT having to do something like:
<embed src="/swf_file.swf?name=filename&url=http://www.yahoo.com/images/blahblahblah/TEST.swf">
I appreciate all helpful responses to help me out, please understand I am a VERY n00b to this flash coding, this should be a piece of cake for anyone with the slightest experience. the reason I do not want to do the ?name = on the .swf file is this is meant to HIDE that information, I am building a small PRIVATE anti leech script, but would be happy to share it with anyone who wants it, it's not for sale or anything, free.
thanks.
What I am trying to do is take a file named test.php, which includes something like this:
<?
// START of TEST.php
$name = "file name blah blah blah";
$url_location = "http://www.yahoo.com/images/blahblahblah/TEST.swf";
?>
<form>
<input name ="name" value ='<? echo $name; ?>'>
<embed src="/swf_file.swf"> (with all the other normal flash embed stuff)
</form>
<?
// END of TEST.php
?>
and get swf_file.swf to IMPORT the local variable $name and $url_location from the TEST.php file which it is being output from.
Also how to take the FORM data variable field of name and be able to use that variable in the flash.
I really would like to do this WITHOUT having to do something like:
<embed src="/swf_file.swf?name=filename&url=http://www.yahoo.com/images/blahblahblah/TEST.swf">
I appreciate all helpful responses to help me out, please understand I am a VERY n00b to this flash coding, this should be a piece of cake for anyone with the slightest experience. the reason I do not want to do the ?name = on the .swf file is this is meant to HIDE that information, I am building a small PRIVATE anti leech script, but would be happy to share it with anyone who wants it, it's not for sale or anything, free.
thanks.