Sun 26 Feb 2006
type: command
location: commands-->classBuilder
usage:
open a symbol in the ide. dbl-click the jsfl file.
a class shell like this :
-
import ucles.visual.RadioButton
-
-
import mx.controls.MediaController
-
-
import mx.containers.Accordion
-
-
class myName extends MovieClip
-
{
-
-
private var prompt:TextField
-
-
private var questionNumber:TextField
-
-
private var optionAtxt:TextField
-
-
private var optionBtxt:TextField
-
-
private var optionA:RadioButton
-
-
private var optionB:RadioButton
-
-
private var iMedia:MediaController
-
-
private var accTest:Accordion
-
}
will be generated in the output window, with all the necesary includes and variable declarations. all elements with an instance name will be included, if no instanceName is assigned the element will be ignored.
loads of improvements can be made int he jsfl i am certain.
the extension is availible @
http://www.lennel.org/commands/classBuilder.zip
errata:
currently buttons are declared as MC's. their interfaces are so similiar that i saw no need for otherwise.
compiled clips it searches the import library by walking through the fl.configURI+"Classes/mx/" folder recusively, thus if two similiar class names exists but with different namespaces both will be imported.