[flexcoders] Re: Cannot change button style

2007-11-28 Thread Amy
--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote: Amy wrote: A is the label, whereas a is the ID. The code hinting works, so I have no reason to suspect I've gotten that bit wrong. Ahh.. sorry my mistake. :) Well, from the original error message you provided it

[flexcoders] Re: Cannot change button style

2007-11-28 Thread Amy
--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote: Amy wrote: A is the label, whereas a is the ID. The code hinting works, so I have no reason to suspect I've gotten that bit wrong. Ahh.. sorry my mistake. :) Well, from the original error message you provided it

[flexcoders] Re: Cannot change button style

2007-11-27 Thread Amy
--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote: Amy wrote: I have a TileList that has XML as its dataProvider and is using my custom itemrenderer to display the data. The itemrenderer has 5 buttons, labeled A, B, C, D, and E. These buttons are intended to look

[flexcoders] Re: Cannot change button style

2007-11-27 Thread Amy
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: ... However, if I use a.stylename = selectedBtn, I get TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.magnoliamultimedia.components::AnswerBubble/com.magnoliamultimedia

Re: [flexcoders] Re: Cannot change button style

2007-11-27 Thread jitendra jain
Hi, Take a new button instance,let say Button bt = new Button();. then set the styles for this button and assign this button to one you have. Might this will work Thanks, with regards, JJain Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com,

Re: [flexcoders] Re: Cannot change button style

2007-11-27 Thread shaun
Amy wrote: A is the label, whereas a is the ID. The code hinting works, so I have no reason to suspect I've gotten that bit wrong. Ahh.. sorry my mistake. :) Well, from the original error message you provided it looked like your button was null.. I imagine the easiest way would be to use