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 use a text field and display it using the ActionScript?
Submitted by: Administrator- The ActionScript uses some APIs to create the objects to display it using the scripts and different functions.
- The text field is accessed and created using the following functions as shown below:
var hello:TextField = new TextField();
hello.text = "Hello World";
this.addChild(hello);
- The program that is written is complex and larger in size to be displayed at faster pace on the browser.
- The program show the use of text field in an object oriented manner with the help of IDE and other programs and it is shown as:
package com.example
{
import flash.text.TextField;
import flash.display.Sprite;
public class Greeter extends Sprite
{
public function Greeter()
{
var txtHello:TextField = new TextField();
txtHello.text = "Hello World";
addChild(txtHello);
}
}
}
Submitted by: Administrator
- The text field is accessed and created using the following functions as shown below:
var hello:TextField = new TextField();
hello.text = "Hello World";
this.addChild(hello);
- The program that is written is complex and larger in size to be displayed at faster pace on the browser.
- The program show the use of text field in an object oriented manner with the help of IDE and other programs and it is shown as:
package com.example
{
import flash.text.TextField;
import flash.display.Sprite;
public class Greeter extends Sprite
{
public function Greeter()
{
var txtHello:TextField = new TextField();
txtHello.text = "Hello World";
addChild(txtHello);
}
}
}
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.