Ok, So i have been working on this concerpt a little more.
I have created a HTTPS service,
Quote:
<mx:HTTPService id="getImage" result="handleImage(event)" url="change.xml" method="POST">
<mx:request xmlns="">
<dataDumping>
{dataDump}
</dataDumping>
</mx:request>
</mx:HTTPService>
|
This pulling data from the XML file where i plan to store the frame that needs to be displayed on of the SWF file.
I checked that the HTTP service was working by using the function
Quote:
private function handleImage(event:ResultEvent):void
{
img1.source = event.result.imagelocation;
}
|
And as i expected when i change the xml file, the image changes.
However i created a variable
private var i:String = "test";
And planned to have the HTTP service change the value of this value. I assumed it would be the same code as what i previously used,so used the following code
Quote:
private function handleImage(event:ResultEvent):void
{
var i = event.result.imagelocation;
}
|
However using this, it dosent update the value of the variable being displayed in the text box,
Quote:
|
<mx:Text x="817" y="10" text="Total: {i}" width="157"/>
|
Can anyone see where i am going wrong ?