I just posted this in the General Help section but maybe this would be a better
place for it. Sorry for the double post
Ok I have a couple problems which all are to do with loading a php variable
into a dynamic text box.
First here is how I am doing it:
The php page is just this:
<?
The variable $content is held in a database.
echo "&textArea= $content";
?>
Then I use this in the flash file
loadVariables ("location of php file", this); and I have a Dynamic Text area
called "textArea"
Ok here are the problems I am running into:
1) If there is an & symbol in the php variable $content the flash file thinks
its another variable so doesnt load anything after it into the Dyanmic Text
Box. Currently I am doing a cheap fix and just replacing & with and... But
this is not good... Ive tried changing the & to \&\ aswell to see if it would
get skipped but no luck
2) The PHP variable $content in many cases can include simple HTML tags. <b>,
<i>, <u>, <a href =""></a>
Here is one of the php pages that sends the PHP variable $content to the Flash
file (This is when you View Source so you can see the \n).
<!----------------------------------------------FILE
STARTS--------------------------------->
&textArea=<b>Testimonials:</b>
-<i>Jeff is soooo yummy. After you hear him speak you will want to double team
him with your supermodel friends. ~Carmen Elecktra</i>
<b>RWA Program:</b>
Jeff is also an ambassador for the newly formed Ready Willing and Able Program
through Paralympics Ontario.
<!----------------------------------------------FILE
ENDS--------------------------------->
Ok so when this is loaded into the flash file anywhere there is an end tag
then a break row (\n) then a start tag.
Ex:
Elecktra</i>
<b>RWA
The flash file doesnt reconize the \n for some reason and displays it all on
the same line??
3) This is just a minor problem. Basically the client who enters the data
into the database usually uses Microsoft Word and then pastes from there into
the database. You know how Word like changes characters very slightly. Like
an " looks a bit different and a ' looks a bit differnt. Hope this makes
sense. If not go into Word and type Adam's and you will notice that the ' gets
a little curve to it. Anyway when these "Word" characters get loaded into the
flash file they just get displayed as Hollow Boxes (Flash doesn't understand
them) Also other things dont get understood by Flash like Bullets.
Anyway sorry this is so long but any help with any one of these 3 would be
Awesome!!
Adam