Chad Pilkey
unread,Feb 7, 2012, 12:15:07 PM2/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BigBlueButton-dev
Just to expand on the RadioButton problem. The default appearance and
skin for RadioButtons is the same as a Button. For example if you add
a label to a RadioButton it places it inside the rounded rectangle
rather then to the side of it.
I've been trying to alter the style of the RadioButton, but every
attempt I make just results in the function not being run.
The code that I'm using to try and reskin the RadioButton is as
follows:
> import mx.core.FlexGlobals;
> [Embed(source="../assets/skin.swf", symbol="upIcon")]
> public var rbup:Class;
> private function init():void {
> FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration("RadioButton").setStyle("upIcon", rbup);
> }
My init() function won't run, but if I change the "RadioButton" in the
second last line to "CheckBox" the skin of a CheckBox is correctly
displayed as my new image. "upIcon" is supposed to be a valid property
of both CheckBoxes and RadioButtons so the line should alter the two
the same.
I've also tried changing the "color" property of RadioButtons to
"Red," but that doesn't even work. The color change works correctly
with CheckBoxes. I figured "color" would work with RadioButtons
because they are drawing the same as Buttons so I figured they'd at
least have a color property.
The equivalent property for Buttons of the "upIcon" property is the
"upSkin" property which I tried to change as well for RadioButtons,
but that doesn't work either.
This RadioButton problem has me very confused.
-Chad