http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09983.html
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09985.html
On 7/11/05, Nithya R <[EMAIL PROTECTED]> wrote:
hai,i posted this question long back but found no response... i use the following code for skinning an accordion but it doesnt display anything except the label for header et runtime... please anybody tell me where the fault is... if the code is correct then is there anythiong wrong the swf that i am using?<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">
<mx:Script>
<![CDATA[
[Embed("accordion-b.swf")]
var accoridonDownSkin:String;
[Embed("accordion-a.swf")]
var accordionOverSkin:String;
function changeMe(event) {
//Loop through all the headers of Accordion control and set the skins
for(var i=0;i<myAcc.numChildren;i++) {
event.target.getHeaderAt(i).falseUpSkin = "accordionOverSkin";
event.target.getHeaderAt(i).falseOverSkin = "accordionOverSkin";
event.target.getHeaderAt(i).falseDownSkin = "accoridonDownSkin";
event.target.getHeaderAt(i).trueUpSkin = "accoridonDownSkin";
event.target.getHeaderAt(i).trueOverSkin = "accoridonDownSkin";
event.target.getHeaderAt(i).trueDownSkin = "accoridonDownSkin";
}
}
]]>
</mx:Script>
<mx:Accordion id="myAcc" width="200" height="150" backgroundAlpha="0" borderThickness="0" initialize="changeMe(event)" >
<mx:VBox label="Tab 1">
<mx:Label text="Skinning" fontSize="15"/>
</mx:VBox>
<mx:VBox label="Tab 2">
<mx:Label text="Accordion" fontSize="15"/>
</mx:VBox>
<mx:VBox label="Tab 3">
<mx:Label text="Control" fontSize="15"/>
</mx:VBox>
</mx:Accordion></mx:Application>
Send instant messages to your online friends http://uk.messenger.yahoo.com
--
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
- 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.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
---- LSpots keywords ?> ---- HM ADS ?>
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.