PDA

View Full Version : scrollpane Background Color


claudia
03-16-2005, 09:22 AM
this is strange. Im trying to change Scrollpane´s background color and its impossible. Please help.
I have a scrollpane named myScrollpane in the main time line. In the first frame I have this code

myScrollPane.setStyle("backgroundColor","0xFFCC00");
trace(myScrollPane.getStyle("backgroundColor"));

ths trace result is "undefined".Why?

thanks a lot
Claudia

BullFrawg
03-16-2005, 12:35 PM
hi Claudia,

Your code works fine for me in Flash MX 2004 Pro. Check to make sure you actually named the instance of your scrollpane myScrollPane instead of myScrollpane (one uses "P" and the other uses "p"). Click the scrollpane on the stage and look at its properties. I'll bet your component instance name is simply typed wrong.

Good luck.

claudia
03-21-2005, 09:42 AM
thanks a lot for youe answer. finally I just entered the code and changed the tint of the background MC. Grazie again