Oh yeah, one other thing;

Why can't we have...

[Style(name="buttonModuleDisabledSkin", type="Class", inherit="no" default="mx.skins.halo.ButtonSkin")]

Where default would be the default value?

or even easier example..

[Style(name="cornerRadius", type="Number", format="Length", inherit="no", default="4")]

Just a question.

Peace, Mike

On 6/18/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Hi,

I have got this error before. "Ambiguous reference to setStyle." in the classConstruct() initializer.

I thought when you create a component and want to defined you class styles, you use classConstruct() construct.

Am I wrong? Or do I use a style sheet. Seems to me I would use this, did this change in b3?

Anyway,

I have this; at the top of the class;


[Style(name="buttonModuleDisabledSkin", type="Class", inherit="no")]

[Style(name="buttonModuleDownSkin", type="Class", inherit="no")]

[Style(name="buttonModuleOverSkin", type="Class", inherit="no")]

[Style(name="buttonModuleUpSkin", type="Class", inherit="no")]


And this at the bottom of the class.


    private static var classConstructed:Boolean = classConstruct();

    private static function classConstruct():Boolean
    {
        if (!StyleManager.getStyleDeclaration("MessageBarFX"))
        {
            var style:CSSStyleDeclaration = new CSSStyleDeclaration();
            style.setStyle("buttonModuleUpSkin", ButtonSkin);
            style.setStyle("buttonModuleOverSkin", ButtonSkin);
            style.setStyle("buttonModuleDownSkin", ButtonSkin);
            style.setStyle("buttonModuleDisabledSkin", ButtonSkin);
   
            StyleManager.setStyleDeclaration("MessageBarFX", style, false);
        }
        return true;
    }


I guess I just don't get what is ambiguous about this call.

If it IS ambiguous, then how do I initialize these styles with ButtonSkin?

Peace, Mike



--
What goes up, does come down.



--
What goes up, does come down. __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to