Home arrow Flash arrow Page 3 - Flash MX Pro 2004 - Text Area Component
FLASH

Flash MX Pro 2004 - Text Area Component


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.

Author Info:
By: Jefferis Peterson
Rating: 4 stars4 stars4 stars4 stars4 stars / 55
January 26, 2004
TABLE OF CONTENTS:
  1. · Flash MX Pro 2004 - Text Area Component
  2. · Transition
  3. · The TextArea Component – First Encounter
  4. · Bugs
  5. · Using the TextArea
  6. · Steps

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

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 …";
}

Next: Bugs >>

blog comments powered by Disqus
FLASH ARTICLES

- More Top Flash Game Tutorials
- Top Flash Game Tutorials
- Best Flash Photo Gallery Tutorials
- The Top Flash Tutorials for Menus
- 7 Great Flash Tutorials
- Adobe Creative Suite 5.5 Now Available
- 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

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 9 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials