Applying Images from XML file to button states.
i'm using flash mx professional 2004. have xml file in same directory flash file i'm reading in file names / paths images i'm setting in flash file. have buttons created , set on stage @ design time. need know code set different state properties of buttons images in xml file.
example:
offimage = nodes .attributes.offimage;
onimage = nodes.attributes.onimage;
trace("off image is: " + offimage); // @ point getting text offimage xml file in output box. know xml being read , i'm recieving correct information it.
trace("on image is: " + onimage); // example of text be: testimg.jpg or testimg.gif
btnmybutton.loadmovie(onimage); // tried this, doesn't work. syntax checker doesn't error on this.
btnmybutton.onmouseover(onimage); // tried this, doesn't work. syntax checker doesn't error on this.
btnmybutton.onmouseover.loadmovie(onimage); // doesn't work. syntax checker doesn't error on this.
notes: able apply .gif images of reading i've done says in 2004 can use jpg. true?
if additional information needed i'll more happy provide it.
thanks in advance
braden
example:
offimage = nodes .attributes.offimage;
onimage = nodes.attributes.onimage;
trace("off image is: " + offimage); // @ point getting text offimage xml file in output box. know xml being read , i'm recieving correct information it.
trace("on image is: " + onimage); // example of text be: testimg.jpg or testimg.gif
btnmybutton.loadmovie(onimage); // tried this, doesn't work. syntax checker doesn't error on this.
btnmybutton.onmouseover(onimage); // tried this, doesn't work. syntax checker doesn't error on this.
btnmybutton.onmouseover.loadmovie(onimage); // doesn't work. syntax checker doesn't error on this.
notes: able apply .gif images of reading i've done says in 2004 can use jpg. true?
if additional information needed i'll more happy provide it.
thanks in advance
braden
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment