Content.load("directory path");


hi..i have flash file using textarea component brings in xml data. i'm running issue involves xml , css file residing on different server. ".load" command seems read directory path. think need command read url based ("http") path. ideas? below code reference.

//init textarea component
mytext.html = true;
mytext.wordwrap = true;
mytext.multiline = true;
mytext.label.condensewhite=true;

//load css
gpsdsstyle = new textfield.stylesheet();
gpsdsstyle.load("gpsdsnet/xml/gpsdsupdate.css"); //need insert http path here
mytext.stylesheet = gpsdsstyle;

//load in xml
gpsdscontent = new xml();
gpsdscontent.ignorewhite = true;
gpsdscontent.load("gpsdsnet/xml/gpsdsupdate.xml"); //need insert http path here
gpsdscontent.onload = function(success)
{
if(success)
{
mytext.text = gpsdscontent;
}
}



i may wrong, think if need load data server, you'll need load policy file server so...


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62