Friday, March 27, 2009

Have you built any components with actionscript? If so explain how you did it

Question :Have you built any components with actionscript? If so explain how you did it?
Answer :CountryComboBox.as
package components
{ import mx.controls.ComboBox;
public class CountryComboBox extends ComboBox
{ public function CountryComboBox()
{ dataProvider = [ "United States", "United Kingdom" ];
}
}
}

xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:custom="components.*"
width="220" height="115"
>

No comments: