# Help with PHP and FLASH showing content

**URL:** <https://forum.kirupa.com/t/help-with-php-and-flash-showing-content/56491>\
**Category:** programming\
**Created:** [July 5, 2004, 6:54am UTC](https://forum.kirupa.com/t/help-with-php-and-flash-showing-content/56491 "2004-07-05T06:54:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaDeViL](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@DaDeViL](https://forum.kirupa.com/u/DaDeViL)\
**Post date:** [July 5, 2004, 6:54am UTC](https://forum.kirupa.com/t/help-with-php-and-flash-showing-content/56491/1 "2004-07-05T06:54:46Z")

</div>

Hello, I am trying to put together a web site that takes ALL content from the MYSQL database and displays it in dynamic text boxes…

I am having no trouble getting the variables from PHP, it is just a problem of storing those variables so taht they can be used later. Problem is displayed here:

[http://test.un-identified.com/gateway/index.html](http://test.un-identified.com/gateway/index.html)

click through all 3 buttons – make sure it loads the content, after you have clicked through all three, try clicking them again – the content does not show up and i cannot figure out why – or a soultion to it.

here is the function to get the content when given a page title.

```auto

function get_page(page_title){ 
 //creates a new loadVars object with the title of requested page, then returns 
 // with the page content to put inside the text box  
content = new LoadVars(); 
 content.page_title = page_title;  
 content.onLoad = function(success) {     
  if (success){   		
        // enters recieved content into text box  		
        _root.content_box.scrollerText.htmlText = this.content; } else{           
       trace("Problems...");       
   }   	 
 } 
 content.sendAndLoad("http://test.un-identified.com/gateway/php/display_page.php?uniqueID=" + getTimer() , content, "POST");    
}

```

Here is some button code that calls the function with the desierd page title as a parameter:

```auto
on (release) {  
    	_root.get_page("Home");  	  
}

```

(also: the ‘loading’ is just another variable i load with LoadVars everytime a button is clicked (before the get\_page() function is called) so as to make sure the text box reloads with new content each time --is there a real way to check if the content is loaded, and possibly use a loading bar for this type of dynamic content?)

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:** [July 5, 2004, 10:06pm UTC](https://forum.kirupa.com/t/help-with-php-and-flash-showing-content/56491/2 "2004-07-05T22:06:40Z")

</div>

ok it works great in Mozilla Firefox, but not in ie. or opera. It is not very reliable in either of those browsers…it cant be the php code, so it has something to do with my actionscript? Anyone?

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:** [July 8, 2004, 6:18pm UTC](https://forum.kirupa.com/t/help-with-php-and-flash-showing-content/56491/3 "2004-07-08T18:18:29Z")

</div>

anyone?
