Can't dislplay Dynamic Text Pls Help

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

Thanks

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…

Sorry but that didn’t work

I just worte print $x because I wanted to make sure I wrote same as the tutorial says

If you look at this page there is no & infont of myvar

http://www.kirupa.com/developer/actionscript/flash_php_mysql.asp

Anyway I tried putting a & in front of my variable but it still displays the text filed empty

Thanks alot

I am still looking forward to hear your advices

Do you have your own website or host? Because you would need to change the http://localhost/test.php to your own webdomain…

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

well I have to go to class…hopefully someone will get it working for you…

I hope :frowning:

If someone can send me a working example of what I need, I think it would be easier to compare what you did and what I did.

Thanks

well I decided to ditch class, I’ll see what I can come up with…

Got it to work on my machine.

Flash Code is in the first frame and then the DYNAMIC text box is in the 5th frame:


if (nTest ne "") {
	gotoAndPlay (5);
} else {
	loadVariables ("http://www.livetoskateboard.com/curious/test.php", "");
}

PHP Code:


<?php
$x = "abc";
print "nTest=$x";
?>

I couldn’t open the file, I get an error “unexpected file format”

I think I am cursed or something

sorry that is in Flash MX format…you’re running flash 5…let me make up a new FLA…

(stupid on my part I should have asked which version you were using first…:))

Here’s the new file:

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 works here:

<embed src=“http://www.livetoskateboard.com/curious/loadVars.swf” height=45 width=200 menu=false></embed>

Its the same file…

finally can someone pls check out
http://members.lycos.co.uk/mkelleci/loadvars.html
it’s the Jubba’s file published without any change

It’s not working with me but if it is working with you there should be something worng with my IE or something related to that.

Jubba it works with flash but not with IE
I havent looked at the new file

nope, doesn’t work. Perhaps your host does not allow the use of PHP? CUz it works fine when placed on my browser…

http://www.livetoskateboard.com/curious/loadVars.swf

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 have no idea…you may want to contact your host…

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