Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Top World Wide Web Interviews:Action ScriptAJAXBasic InternetBloggingCascading Style Sheet CSSCSS3DHTMLDomain Name System (DNS)EcommerceHTMLHTML5JavaScriptjQueryjQuery KnockoutJSONJSONPUser Interface DesignerVBScriptW3CWeb 2.0 TechnologiesWeb 3.0 TechnologiesWeb BuildingWeb DevelopersWeb QualityWeb SecurityWeb SemanticWebmaster
Copyright © 2018. All Rights Reserved
Action Script Interview Question:
How to write a program to create custom list in ActionScript?
Submitted by: Administrator- To create the custom list there is a need of the parent to child relationship and a hierarchy needs to be maintained.
- There is a way to access the parent and children without or with adding of new nodes in the link.
- To create a custom list in ActionScript there is a need of the variables and listing:
package{
import fl.controls.List;
import fl.controls.Label;
import flash.display.*;
import flash.events.Event;
import flash.net.URLRequest;
import flash.events.IOErrorEvent;
public class ListTest extends MovieClip{
public function ListTest(){
var imageHolder = new MovieClip();
imageHolder.width = 140;
imageHolder.height = 140;
var theSprite = new Sprite();
theSprite.height = 150;
var theMsg = new Label();
theMsg.text = "something";
theSprite.addChild(theMsg);
trace("text = " + theSprite.getChildAt(0).text);
}
Submitted by: Administrator
- There is a way to access the parent and children without or with adding of new nodes in the link.
- To create a custom list in ActionScript there is a need of the variables and listing:
package{
import fl.controls.List;
import fl.controls.Label;
import flash.display.*;
import flash.events.Event;
import flash.net.URLRequest;
import flash.events.IOErrorEvent;
public class ListTest extends MovieClip{
public function ListTest(){
var imageHolder = new MovieClip();
imageHolder.width = 140;
imageHolder.height = 140;
var theSprite = new Sprite();
theSprite.height = 150;
var theMsg = new Label();
theMsg.text = "something";
theSprite.addChild(theMsg);
trace("text = " + theSprite.getChildAt(0).text);
}
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.