Flash
  Home arrow Flash arrow Page 5 - 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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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 / 52
    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 - Using the TextArea


    (Page 5 of 6 )

    As you can see by the new TextArea Component Inspector (Fig. 4), the promise of this Component is that you can link text content from an online database, creating a reusable dynamic display. With the new Class structure in ActionScript 2, you can also create a reusable style set to govern the appearance of the TextArea's background color, skins, etc. However, my less lofty goal was to add a text file to one component and get it to display with some style. In my view, an upgrade to a program should make the harder things simple while not making the simple things hard. So far, I'm finding the simplest things being much harder to do - a situation that might be remedied by better documentation.

    TextField
    Fig. 4 – TextArea Component Inspector

    Warning: One of the most important changes to the new ActionScript model is the addition of Class Structure, which is used as an integral part of creating styles and definitions, among other things. This new way of doing things is taken for granted by the programmers who wrote the manual, but it is not well or often explained to the new user. One thing that really threw me is a rather basic thing. I've used PHP but never used Classes. I never needed them, so when seeing new code like


    myTextStyle = new TextField.StyleSheet();
    myTextContent 
    = new XML();

    it never dawned on me that this code was a Class definition. I thought it was a variable definition, and I couldn't figure out how anyone could keep reusing a variable definition 'new Anything' for multiple instances without losing the original variable. In this example, new XML() creates an instance of the predefined XML Class which exists in ActionScript 2. If you do not understand that you can create multiple instances of a Class, you will be lost with much of the documentation provided with Flash 2004. So, the following code is a valid way of creating three instances of text XML object:


    myTextContentA = new XML();
    myTextContentB 
    = new XML();
    myTextContentC 
    = new XML();

    An  instance of a Class is different animal entirely than a variable definition – as in myText.text = "a string", which defines the value of the text itself. So, with that warning, we shall proceed.

    More Flash Articles
    More By Jefferis Peterson


     

    FLASH ARTICLES

    - Critical Flash Vulnerability Heats Up the Web
    - More on Nonpersistent Client-Side Remote Sha...
    - Nonpersistent Client-Side Remote Shared Obje...
    - Using the Decorator Pattern for a Real Web S...
    - Using Concrete Decorator Classes
    - Delving More Deeply into the Decorator Patte...
    - The Decorator Pattern in Action
    - A Simple Decorator Pattern Example
    - Decorator Pattern
    - 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







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT