After skin is created, we have to try skin. First, we need to load the skin and components to the application.
<? XML version = "1.0" encoding = "UTF-8"?> <Br/> <s: Application xmlns: FX = "http://ns.adobe.com/mxml/2009" <br/> xmlns: S = "Library: // ns.adobe.com/flex/spark" <br/> xmlns: MX = "Library: // ns.adobe.com/flex/mx" <br/> xmlns: view = "com. shine. framework. dashboard. view. * "> <br/> <FX: declarations> <br/> <! -- Place non-visual elements (such as services and value objects) Here --> <br/> </FX: declarations> <br/> <FX: SCRIPT> <br/> <! -- [CDATA [<br/> Import COM. shine. framework. dashboard. skin. dashboardtenskin; </P> <p> Import skin. dashboard80; </P> <p>] --> <br/> </FX: SCRIPT> <br/> <View: dashboard id = "dashboardten" width = "80" Height = "80" x = "0" Y = "0" skinclass = "com. shine. framework. dashboard. skin. dashboardtenskin "/> <br/> <mx: slider id = "Slider" minimum = "0" Maximum = "100" width = "200" x = "0" Y = "250" livedragging = "true" change = "{ dashboardtenskin (dashboardten. skin ). setvalue (slider. value)} "/> <br/> </S: Application> <br/>
Add the skin and slider to the dashboard.
:
Some friends say that some classes are missing and cannot be run. I will send an SVN address:
Http://ken-javaframeword.googlecode.com/svn/trunk/framework2.0/src/com/shine/framework/Dashboard/
You can download the classes in this folder.
The fxg of a 100-grid dashboard is attached.
Http://ken-javaframeword.googlecode.com/svn/trunk/framework2.0/src/com/shine/framework/Dashboard/fxg/round100.fxg