>
Writing Text Effect in Flash using AS 2
Welcome, Guest

by Gagan on Thursday, 07 May 2009
Writing Text Effect in Flash using AS 2


step 1. Rename the layer to text . Create a multiline textfield on the stage and make it cover whole stage. Name the text filed to theText. Lock the layer.

step 2. Create a new layer on top of the text layer . Rename it to action. On the first frame of the action layer put the following actionscript 2 code.

 

//===start of code===

�var str:String = "Evon's key focus is Offshore Software Development. We bring our experience, best practices and tools into partnership with our clients to deal with rapidly evolving business and technology scenarios. Collaboration is a central pillar of our service delivery. We understand that each client's requirements are unique and so the best way for us to work for you is to work with you. From strategy to implementation, we work beside you every step of the way. We firmly believe that Evon's responsibility is to help you define the rules of the game, rather than be limited by them.";

// variable str contains the string which you want to display on the text field

var sInterval = setInterval(writeIt,86);

�//the writeIt method will be called on a regular interval of 86ms

var count:Number = 0;

//declare a variable count and set its initial value to 0

function writeIt() {� //function writeIt
�� �theText.text = str.substring(0, count);

�// we will use the substring method of the string class to display text n the textfield

�� �count++;
�� �if (count>str.length) {
�� ��� �clearInterval(sInterval);

�� // when text has been displayed completely then we do not need to call the setInterval method

�� }
}

//===end of code===

 

step 3: Compile and run the code. Enjoy :)



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering