# Can I load text into actionscript using php?

**URL:** <https://forum.kirupa.com/t/can-i-load-text-into-actionscript-using-php/66538>\
**Category:** flash\
**Created:** [October 6, 2004, 6:19pm UTC](https://forum.kirupa.com/t/can-i-load-text-into-actionscript-using-php/66538 "2004-10-06T18:19:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superduper](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@superduper](https://forum.kirupa.com/u/superduper)\
**Post date:** [October 6, 2004, 6:19pm UTC](https://forum.kirupa.com/t/can-i-load-text-into-actionscript-using-php/66538/1 "2004-10-06T18:19:26Z")

</div>

As always: Just another wierd q from me:p:

In a html-code i could use the print-function if I wanted to load something from my database.

for instance:

```auto
 
<div class="headline"><? print $query["headline"]; ?></div>

```

Is it possible to do this, or something similar in actionscript?

my code:

```auto
 
on (release) {
 unique=Math.round(Math.random()*10000);
 loadText = new LoadVars();
 loadText.load("[http://www.filaung.no/moduler/test.php?text=1&unique](http://www.filaung.no/moduler/test.php?text=1&unique)=" add getTimer());
 loadText.onLoad = function() {
  nyheter.Htmltext = this.nyheter;
 }
}

on (rollOver) {
 _root.x = 1;
 _root.caption.words = "**[color=red]Nyheter1![/color]**";
}
on (rollOut) {
 _root.x = 0;
 _root.caption.words = " ";
}

```

I want to load the [color=red] **red** [/color] text from the the test.php-file. Can I do that?  
ps: it should load “text=1o”  
:h:
