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



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

Answer / Gyanesh Kumar

Yes, I have built custom components using ActionScript. To create a component, you typically create an AS file that extends the UIComponent class and define its structure, properties, and behaviors. The Component can then be added to the display list like any other DisplayObject. Here's an example:
package {
import flash.display.*;
import flash.events.*;

public class MyComponent extends UIComponent {
private var _label:TextField;

public function MyComponent() {
init();
}

protected function init():void {
_label = new TextField();
addChild(_label);
}

public function setLabel(value:String):void {
if (_label) _label.text = value;
}
}
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Multimedia General Interview Questions

Can I dynamically instantiate a webservice or httpservice in actionscript?

1 Answers  


Difference between Media Player and Media Element?

1 Answers   MindCracker,


What are the features of jpeg 2000 standard?

1 Answers  


What is the importance of typography in multimedia?

1 Answers  


What is video-on-demand?

1 Answers  


How DLNA is better for music sharing as compare to other technologies ?

1 Answers   Sony,


Why are my valueobject member variables undefined in the results from my remoteobject requests?

1 Answers  


What software tools are commonly used in multimedia production?

1 Answers  


What is the base for DLNA?

1 Answers   Sony,


Define midi?

1 Answers  


What is wave pattern of the sound?

1 Answers  


Explain the role of each type of server required in a multimedia system and the type of storage media that should be used for it.

0 Answers  


Categories