do the same thing as it is shown in the tutorial but still the dynamic text area is empty when I run the page.
I will write the things step by step so you may tell me about the problem
I open my flash5
I create a new empty text area
I switch to dynamic text
Single line is sleceted
I select HTML and Border/Bg
I enter test as a variable name
Then I select the text area and convert it to a movie clip symbol
Then I right click on the symbol and click actions
I add the actions and the line looks like this
onClipEvent (load) {
loadVariables (“http://localhost/test.php”, “this”, “GET”);
}
Then I create the php file which looks exactly like this
$x = “abc”;
print $x;
print “test=$x”;
?>
Then I click publish in flash, it generates the files and when I goto http://localhost/test.html I see the text area I created but it is empty.
I am nearly going mad I couldn’t find what is wrong, someone pls help me
For Flash to read test as a variable you have to put a & in front of it…the PHP should look like this:
<?
$x = "abc"
print $x
print "&test = $x"
?>
that should work…
Oh, and just curious, why do you ‘print $x’ ? I don’t think that step is needed…might be wrong tho…I tested it myself and it did not work with that print $x… take that out…
Usually I work at my own computer I mean localhost.But I tried uploading the files to a server.Sure I removed the localhost part.But it didn’t work
Thanks
Ok I could open the file this time.
But here comes another adventure
I publised the file without touching it and the screen was again blank http://www.livetoskateboard.com/curious/test.php is working
and your flash file should be working so where is the problem I can’t figure out.
Did you try just testing the movie within Flash? Pressing (Conrol+ENTER)
I included the file again…Didn’t change much tho…it works fine for me…not sure why it isn’t working for you…
It does allow mysql and php…
Anyway I publish the new file you send, it works when I double clik on it. ( not through http://localhost/loadvars2.html ) When I tried to reach from the server it dislpays just dark blue screen
I can run normal flash animations etc.
Yes your swf on your server works so one last option is something wrong with my publishing options
I will try to look for an answer
Thanks alot Jubba for spending your time with my problem