Hi I am trying to apply style in a newly created component
    but since it is not instantiated it gives me error message.

    My code is like this:

        var button:Button = new Button;
        button.setStyle("styleName", "myStyle");
        canvas.addChild(button);
    I need to create the component dynamically and also need
    to apply the style dynamically. How can I do that?

    Regards,

Reply via email to