I have created a variety of components using .as. I have decided to document 
them so that other developers can use them. I would like to put example usage 
in my documentation.

I tried;

         * @example
         * The following is a simple application that show some of the 
functionality;
         * <code>
         * <?xml version="1.0" encoding="utf-8"?>
         * <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" xmlns:ns1="Classes.panel.*" xmlns:inp="Classes.Input.*">
         *      <ns1:SuperPanel x="171" y="88" width="726" height="521">
         *              <mx:Canvas width="100%" height="100%" id="myCanvas">
         *                      <inp:ValidatedTextInput x="260" y="411" 
id="input2"/>
         * 
         *                      <mx:Button x="32" y="411" label="Disable" 
         *                              
click="rbg2.enabled=!rbg2.enabled;(rbg2.enabled)?btnEnable2.label='Disable':btnEnable2.label='Enable'"
 id="btnEnable2"/>
         * 
         *                      <mx:Button x="124" y="411" label="Clear" 
click="rbg2.value=null;"/>
         * 
         *                      <mx:Button x="187" y="411" label="Set" 
click="rbg2.value=input2.text;"/>
         * 
         *                      <mx:Button x="441" y="411" label="Set default" 
click="rbg2.setDefault();"/>
         * 
         *                      <mx:Button x="551" y="411" label="Validate" 
click="rbg2.validateData();"/>
         *                      
         *                      <inp:ValidatedRadioButtonBox x="372" y="29" 
width="281" height="22" direction="horizontal" 
         *                              id="rbg2" required="true" 
defaultValue="test3">
         *                              <mx:RadioButton label="Button 1" 
value="test1"/>
         *                              <mx:RadioButton label="Button 2" 
value="test2"/>
         *                              <mx:RadioButton label="Button 3" 
value="test3"/>
         *                      </inp:ValidatedRadioButtonBox>
         * 
         *              </mx:Canvas>
         *      </ns1:SuperPanel>
         *      
         * </mx:Application>
         *</code>

and it doesn't work.

Any ideas?

Paul

Reply via email to