Flash
  Home arrow Flash arrow Page 3 - Flash MX Pro 2004 - Text Area Component
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
FLASH

Flash MX Pro 2004 - Text Area Component
By: Jefferis Peterson
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 50
    2004-01-26

    Table of Contents:
  • Flash MX Pro 2004 - Text Area Component
  • Transition
  • The TextArea Component – First Encounter
  • Bugs
  • Using the TextArea
  • Steps

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Flash MX Pro 2004 - Text Area Component - The TextArea Component – First Encounter


    (Page 3 of 6 )

    The advantage of the TextArea Component, which comes as an extension with Flash 2004, is that it has an embedded scroll bar. However, the manual does not teach you how to load a text file into the component itself. The instructions are to add text either directly into the component inspector by typing out the text longhand into the parameter field (Fig. 3) (that would only be practicable for short snippets of text), or to set the variable on the stage with myText.text = "some text typed here." Neither of these solutions offers the advantage of having a separate text file that can be edited and updated without having to open Flash.

    TextArea Component
    (Fig 3. – The TextArea Component Parameters Panel)

    By creating an instance of the TextArea Component on the stage and naming it myText, I was able to load some text using an OnClipEvent action. But as you can see from the code below, I still had to type out my text directly onto the MovieClip on the stage. While I could create bold or italic text using simple HTML tags, I could not change the color of the text itself, using the specified color parameter in the manual. In fact, the only way I could find to change the text color was by using CSS and XML style sheets.


    onClipEvent (load) {
        this
    .color0x003470;  
        
    // this code does not work to change text color! 
        this.text = "<b>Ideas arise first in the mind and then are set to paper, wood, and stone. </b>  The task of the craftsman is to create works of art and draw out the beauty of an idea. <b>Peterson Design Studio</b> offers creative works for your business …";
    }

    More Flash Articles
    More By Jefferis Peterson


     

    FLASH ARTICLES

    - Organizing Frames and Layers for Flash Anima...
    - Organizing Frames and Layers
    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications
    - ActionScript in Flex Applications
    - A Closer Look at Apollo`s File System API
    - Using the File System API
    - ActionScript 101
    - Flash Buttons
    - Advanced Flash Animation
    - Creating Your First Animated Movie with Flas...
    - Flash: Building Blocks
    - Building Preloaders






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT