Flex 4 Halo Theme & Spark Theme
now of halo theme used css no longer valid, if application using "halo" theme application can't simple changed "spark" theme withput considerable change ui , feel. simple thing titlewindow close button part of skinning if using "spark" theme, no longer property of s:titlewindow unlike mx:titlewindow, header color simple in mx:panel in s:panel have doa programatic skining. not sure why adobe decided "hide" css style component.
anybody has insight ? more difficult change theme dynamically.
thanks
theming document
1. create skinning components in flex using flash catalyst 5.5.
(flash catalyst learning aid : http://tv.adobe.com/show/flash-catalyst-1-1-with-doug-winnie)
2. use them in model application using css.
eg. of css:
/* css file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
s|button {
fontsize:24; //may or may not use these
color: #ff9933;
skinclass: classreference("buttonskin3");
cornerradius:10;
}
where buttonskin3 skinning file… in same folder css file exists.
3. after model finalized place css in application (right click on css , check css swf) using flash builder.
4. use swf file application change , feel via menu @ runtime…
to learn how use link…
5. in application call dynamically menu or button.
stylemanager.loadstyledeclarations("assets/basicstyles.swf")
basicstyles.swf our css file in swf format.
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment