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;
}
}
//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
Post a Comment