XML data help
hey all, first shot @ trying import info xml file , sure many of have ideas on how tighten code (by means suggest), wondering if there way import exernal image movieclip opposed using loader component. ask of course because can't apply motion tweens loader. assuming can't done because external image , have tool around masking, if possible great help.
i placed actionscript code below have done far, advice helpful, , explanation doing going featured news section rotates between 4 stories , each story have button assigned url story. ready go in effects stage.
all best
i placed actionscript code below have done far, advice helpful, , explanation doing going featured news section rotates between 4 stories , each story have button assigned url story. ready go in effects stage.
all best
quote:
function loadxml(loaded) {
if (loaded) {
headline0.text = this.firstchild.childnodes[0].childnodes[0].firstchild.nodevalue;
link0 = this.firstchild.childnodes[0].childnodes[1].firstchild.nodevalue;
teaser0.text = this.firstchild.childnodes[0].childnodes[2].firstchild.nodevalue;
image0 = this.firstchild.childnodes[0].childnodes[3].firstchild.nodevalue;
headline1.text = this.firstchild.childnodes[1].childnodes[0].firstchild.nodevalue;
link1 = this.firstchild.childnodes[1].childnodes[1].firstchild.nodevalue;
teaser1.text = this.firstchild.childnodes[1].childnodes[2].firstchild.nodevalue;
image1 = this.firstchild.childnodes[1].childnodes[3].firstchild.nodevalue;
headline2.text = this.firstchild.childnodes[2].childnodes[0].firstchild.nodevalue;
link2 = this.firstchild.childnodes[2].childnodes[1].firstchild.nodevalue;
teaser2.text = this.firstchild.childnodes[2].childnodes[2].firstchild.nodevalue;
image2 = this.firstchild.childnodes[2].childnodes[3].firstchild.nodevalue;
headline3.text = this.firstchild.childnodes[3].childnodes[0].firstchild.nodevalue;
link3 = this.firstchild.childnodes[3].childnodes[1].firstchild.nodevalue;
teaser3.text = this.firstchild.childnodes[3].childnodes[2].firstchild.nodevalue;
image3 = this.firstchild.childnodes[3].childnodes[3].firstchild.nodevalue;
myloader.contentpath = image1;
} else {
trace("file not loaded!");
}
}
xmldata = new xml();
xmldata.ignorewhite = true;
xmldata.onload = loadxml;
xmldata.load("test.xml");
seems more movieclip loading question versus xml question.
> means suggest), wondering if there way import
> exernal
> image movieclip opposed using loader component. ask of
> course because can't apply motion tweens loader. assuming
>
> can't done because external image , have tool
> around
> masking, if possible great help.
i use moviecliploader , apply tween onloadcomplete
event.
http://livedocs.macromedia.com/flash/8/main/00002543.html
--
lon hosford
www.lonhosford.com
flash, actionscript , flash media server examples:
http://flashexamples.hosfordusa.com
may many happy bits flow way!
"bbrevet" <webforumsuser@macromedia.com> wrote in message
news:ece787$jj3$1@forums.macromedia.com...
>
> means suggest), wondering if there way import
> exernal
> image movieclip opposed using loader component. ask of
> course because can't apply motion tweens loader. assuming
>
> can't done because external image , have tool
> around
> masking, if possible great help.
i use moviecliploader , apply tween onloadcomplete
event.
http://livedocs.macromedia.com/flash/8/main/00002543.html
--
lon hosford
www.lonhosford.com
flash, actionscript , flash media server examples:
http://flashexamples.hosfordusa.com
may many happy bits flow way!
"bbrevet" <webforumsuser@macromedia.com> wrote in message
news:ece787$jj3$1@forums.macromedia.com...
>
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment