# Can't dislplay Dynamic Text Pls Help

**URL:** https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302
**Category:** programming
**Created:** [December 9, 2002, 12:27pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302 "2002-12-09T12:27:45Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![overflow](https://avatars.discourse-cdn.com/v4/letter/o/848f3c/32.png) [@overflow](https://forum.kirupa.com/u/overflow)
#### Post date: [December 9, 2002, 12:27pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/1 "2002-12-09T12:27:45Z")

</div>

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](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](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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 2:23pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/2 "2002-12-09T14:23:33Z")

</div>

For Flash to read test as a variable you have to put a & in front of it…the PHP should look like this:

```php

<?
$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…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 2:42pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/3 "2002-12-09T14:42:04Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 2:45pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/4 "2002-12-09T14:45:02Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 2:52pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/5 "2002-12-09T14:52:33Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 2:54pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/6 "2002-12-09T14:54:25Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 2:59pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/7 "2002-12-09T14:59:16Z")

</div>

I hope ☹

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 3:52pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/8 "2002-12-09T15:52:04Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 3:56pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/9 "2002-12-09T15:56:29Z")

</div>

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:

```php

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

```

PHP Code:

```php

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

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:02pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/10 "2002-12-09T16:02:54Z")

</div>

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

I think I am cursed or something

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:03pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/11 "2002-12-09T16:03:55Z")

</div>

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…:))

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:04pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/12 "2002-12-09T16:04:51Z")

</div>

Here’s the new file:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:14pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/13 "2002-12-09T16:14:22Z")

</div>

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](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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:22pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/14 "2002-12-09T16:22:10Z")

</div>

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](http://www.livetoskateboard.com/curious/loadVars.swf)” height=45 width=200 menu=false\>\</embed\>

Its the same file…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:23pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/15 "2002-12-09T16:23:32Z")

</div>

finally can someone pls check out  
[http://members.lycos.co.uk/mkelleci/loadvars.html](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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:27pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/16 "2002-12-09T16:27:21Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:29pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/17 "2002-12-09T16:29:33Z")

</div>

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](http://www.livetoskateboard.com/curious/loadVars.swf)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:33pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/18 "2002-12-09T16:33:55Z")

</div>

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](http://localhost/loadvars2.html) ) When I tried to reach from the server it dislpays just dark blue screen

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:34pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/19 "2002-12-09T16:34:58Z")

</div>

I have no idea…you may want to contact your host…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 9, 2002, 4:44pm UTC](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302/20 "2002-12-09T16:44:51Z")

</div>

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

[Next page](https://forum.kirupa.com/t/cant-dislplay-dynamic-text-pls-help/9302.md?page=2)
