Thursday, 18 October 2012

Have you built any components with actionscript? If so explain how you did it? | Multimedia Interview Questions

CountryComboBox.as
package components
{

import mx.controls.ComboBox;
public class CountryComboBox extends ComboBox
{

public function CountryComboBox()

{dataProvider = [“United States”, “United Kingdom’];
}

}
}
<‘xml version=” 1.0” encoding=”uff-8”?>
<mx: Application
xmlns:mx=’http://www.adobe.com/2006/mxml”
xmlns:custom=”components.*”
width=”220” height=”l 1 5” >
<custom:CountryComboBox />
</mx:Application>

No comments: