Components
Using components SILEX
- The main components (.cmp) are in the "components" of the toolbox library SILEX.
- Once you have droped the component on the scene, select and enter its settings in the toolbox Properties.
=> [[Open:documentation/editing/library.toolbox.and.ftp.client |ask the media on the scene]]
=> [[Open:documentation/editing/tableau.proprietes|table properties]]
=> [[Open:documentaion/tutorials/advanced.editing|tutorial: advanced editing : import components]]
Particular components SILEX
- Flint components must have a name ending with .cmp.swf
- Class of your button must :
derive from org.silex.ui.components.ComponentBasehave a single clip in _root called main (name here)use the method of dispatch class ComponentBase instead DispatchEvent dispatcher for the events of your choice (a priori onRelease, onRollOver, onPress)have a method selectIcon:- Function selectIcon (isSelected: Boolean)
- It will be called by the flint when the button corresponding page will be opened (isSelected = true) and when it is closed (isSelected = false)
of getter and setter for width and heighta method _initBeforeRegister- Function _initBeforeRegister ()
- It is called by flint
- It can define the parameters that appear in a box of tools properties SILEX
- ComponentBase example, with properties width, height and scale
Exemple button
An example of button with several states (page open / closed) is
in the main repository of flint :
=> Https://silex.svn.sourceforge.net / svnroot / flint / trunk
in components / buttons / label_button.cmp.fla
=> Http://silex-ria.org/doku.php/documentation/fr/api