Flash
  Home arrow Flash arrow 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  
Dedicated Servers  
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


    (Page 1 of 6 )

    FlashFlash 5 introduces specialized movie clips called SmartClips. The major drawback was that SmartClips exported into the first frame of a movie, and could cause serious loading delays, a nightmare for anyone on dialup. Flash MX introduced an improvement in the TextField component which reduced the need to export it as a SmartClip. Enter TextArea. In this article, we’ll discuss the TextArea component in detail, as well as covering some of the possible bugs that might be encountered while working with it.

    Flash MX Pro 2004 – TextArea Component History

    When Macromedia released Flash 5, it introduced specialized MovieClips called SmartClips. These SmartClips were reusable and exportable. Simply by typing in a URL pathway in the properties panel, it could change the text inside the clip. In other words, it was easy to drop a text box with a built in scroll bar onto the stage and use the data link to load some text. Here's a picture of what it looked like in Flash 5:

    TextField Component Flash 5

    Any text file with embedded HTML tags (like bold or italic) worked. A text SmartClip (in this case one named prices) could have a Title (Pricing) and be linked it to a file on the website (prices.txt) - all within the Properties and Parameters Inspector. With the advent of SmartClips, a container could be exported once from your Flash Library, but the text itself could change from frame to frame by assigning new variables. In the code below, I used the same "story" SmartClip and gave it a new instance name (Marketing), set its place on the stage with x/y values, and assigned a new title and text file, all in a button action.


    on (release) { // button action
        _root.attachMovie("story", "Marketing", 4); 
        // names new instance
        _root.Marketing._x= 434;  
        // sets x position
        _root.Marketing._y= 40; 
        // sets x position
        Marketing.dataURL = "design.txt";  
        // sets data file to load
        Marketing.titleField = "The Importance of Design"; 
        //sets Title Bar
    }

    The one major drawback of Flash 5 was that all SmartClips exported into the first frame of a movie and could cause serious loading delays. A dial-up customer might be treated to a full minute of blank screen before a loading bar even appeared. Not good for a web site.

    Flash MX (Flash 6), introduced an improvement to the TextField Component which reduced the need to export it as a SmartClip. It added a scroll bar that could be dragged from the Library and dropped onto any dynamic text field (Fig. 2). It was a great, time saving feature for content oriented developers.

    TextField
    Fig. 2 - Scroll bar auto assigned to a TextField named "display."

    More Flash Articles
    More By Jefferis Peterson


     

    FLASH ARTICLES

    - 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
    - Fun Things to Do with Movie Clips in Flash MX
    - Referencing Movie Clips in Flash MX







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway