Thanks for the reply, but I could not get this to work.
Nothing shows up when I try using a custom AccordionHeader class.

However I did manage to achive my objective by programatically looping
over the Accordion instance's headers ( using getHeaderAt() ) and
setting the values for :

ref.trueUpSkinL = skin_a;
ref.trueUpSkinR = skin_b;

Doing this in the parent container's initialize event.

Wish I could get your method to work ...seems cleaner ..:)

- superabe


On 7/24/05, Clint Modien <[EMAIL PROTECTED]> wrote:
> Have to do it programatically....  something like this.. 
> 
> import mx.containers.accordionclasses.AccordionHeader
> class MyHeader extends AccordionHeader
> {
>     [Embed("yourSWF.swf#yourFalseUpIcon")]
>     var falseUpSkin:String;
>     [Embed("yourSWF.swf#yourFalseDownIcon")]
>     var falseDownSkin:String;
>     [Embed("yourSWF.swf#yourFalseOverIcon")]
>     var falseOverSkin:String;
>     [Embed("yourSWF.swf#yourFalseDisabledIcon")]
>     var falseDisabledSkin:String;
>     
>     [Embed("yourSWF.swf#yourTrueUpIcon")]
>     var trueUpSkin:String;
>     [Embed("yourSWF.swf#yourTrueDownIcon")]
>     var trueDownSkin:String;
>     [Embed("yourSWF.swf#yourTrueOverIcon")]
>     var trueOverSkin:String;
>     [Embed("yourSWF.swf#yourTrueDisabledIcon")]
>     var trueDisabledSkin:String;
> }
> 
> 
> Then in the mxml set the AccordionHeader's headerClass like this
> <mx:Accordion id="acc" headerClass="MyHeader">
> ..... your components
> </mx:Accordion>
> 
> 
> 
> 
> 
> On 7/23/05, superabe superabe <[EMAIL PROTECTED]> wrote:
> > 
> > Hello List,
> > 
> > Is'nt there any way of specifying different theme skins to be used by
> > diff instances of the same component?
> > 
> > E.G.
> > Accordion "A" has green graphical skins with a Icon on the top right. 
> > Accordion "B" has blue  graphical skins with no Icon
> > 
> > Form the docs it seem like we can specify only one theme file for the
> > entire application and the skins affect all Accordions in that App.
> > :-( 
> > 
> > Hoping there is way to do this :-)
> > 
> > Thanks,
> > 
> > superabe
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> --
> 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 
> Computer software testing Macromedia flex Development 
> Software developer 
> ________________________________
> YAHOO! GROUPS LINKS 
> 
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> ________________________________
>


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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to