![]() ![]() | |
Once you have edited a skin, you must apply it to a component in a document. You can either use the createClassObject() method to dynamically create the component instances, or you can manually place the component instances on the Stage. There are two different ways to apply skins to component instances, depending on how you add the components to a document.
To dynamically create a component and apply an edited skin, do the following:This adds the symbols to the document's library, but doesn't make them visible in the document.
This adds the symbols to the document's library, but doesn't make them visible in the document.
import mx.controls.RadioButton
createClassObject(RadioButton, "myRadio", 0, {trueUpIcon:"MyRadioTrueUp", label: "My Radio Button"});
To manually add a component to the Stage and apply an edited skin, do the following:This adds the symbols to the document's library, but doesn't make them visible in the document.
onClipEvent(initialize){
trueUpIcon = "MyRadioTrueUp";
}
![]() ![]() | |