maith wrote:
> Im using Actionscript2. I had placed a query in Flash in
"General
> Discussions", before I came on the Dreamweaver Forum,
but got no reply.
The way to get the euro symbol to display in Flash is to use
XML. I have
tested this, and it works:
euro.php
<?php
header('Content-type: text/xml');
echo '<root>
<elem>This is the euro symbol:
€</elem>
</root>';
?>
ActionScript 2.0 to display the value of <elem> in a
dynamic text field
called myText:
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = handleLoad;
myXML.load('
http://localhost/test/euro.php');
function handleLoad(success) {
if (success) {
var theRoot:XMLNode = this.firstChild;
myText.text = theRoot.firstChild.firstChild.nodeValue;
} else {
myText.text = 'Not working :(';
}
}
Handling XML in ActionScript 2.0 is like poking needles in
your eyes,
but it's the only way I have been able to get the euro symbol
from an
external source into a Flash movie.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/