域卡的卜 Vicker’s Blog

Hong Kong Adobe Flash platform (Flex, Flash and AIR) developer
  • rss
  • Home
  • About
  • Resume
  • Flickr
  • Contact

TEXTFORMAT and STYLESHEET

Vicker | January 16, 2006 | 12:26 am

Before talking about the already finished prototype 0.3, I think it is better to pin point on the two troublesome items as stated in my heading. That is the TEXTFORMAT and STYLESHEET classes within Flash.The reason that I want to talk about these is that these two little item (seems like little…) troubles me a whole week to work on it. I dont know why, however it seems that Macromedia do have a lot of bugs in these two classes.First, let me introduce these two classes.TEXTFORMAT- A class that is used to apply text formats to a textfield on the stage- It can be applied to the whole textfield, or a portion of it if specified- Adv: It is easy to use and flexible because you can apply on anywhere- Dis: It is hard to maintain and it requires great programming effortSTYLESHEET- Alternative approach to apply text formats- Apply to be whole textfield- Adv: It is surely easy to maintain. Further it can be reused for HTML section- Dis: The text content need to attach many tags in order to apply stylesheetsOkay, actually coding in both approarch is very simple. However there are tons of bugs came out which makes me crazy within this week. So I better mention in the web somewhere to let others preventing these traps.If you are using dynamic textfields with embedded character, you CANNOT use STYLESHEET NOR TEXTFORMAT with FONT-FAMILY settings!!- I put this one so seriously because this bug takes me nights to discover!!!!- If you violate this, the text will simply not displaying… which you will never know that it is related to FONT-FAMILY until you delete your codes line by line…- The possible reason probably is that embedded character will only embed for the current font, so… changing it will make the text simply gone…- For the same reason… If you want to set Bold, Italic, etc. You HAVE to set it in the textfield beforehand. This will make sure that the embeded character will also embed those styles.* Dynamic textfield means that the content of the textfield is defined by external codings.* Embedded characters are essential for animations on textfields.And what I can suggest for future development is that…If you use dynamic textfields… try not to put animations… it will drive you crazy…

Related posts

  • 重返 EE (0)
  • 時光倒流第二集 - Thanks FLABER (0)
  • 實力? 運氣? 我信運多 d… (0)
Comments
No Comments »
Categories
FLABER development, RIA
Tags
Flash, stylesheet, textfield, textformat
Comments rss Comments rss
Trackback Trackback

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Certification


Adobe MAX 2008

Categories

Archives

Tag Cloud

family Densha Otoko flash video encoder good dog u Adobe MAX meta Macromedia AIR Munsang College bobby component Andy Chun stylesheet JAWS APICTA John Koch Adobe textformat suck flv gundam Web Usability business FYP Misaki Ito CityU validation the core freelance Mac color selector XML Hacken Lee Flex FAQ music PS2 Yahoo UI braille WYSIWYG Flash Flex Laszlo depth manager HTML Apple SEO flysbookmark WMV flysforum webxact OO web page exhibition Battlenet WarCraft hea YouTube frame bt form assembly XHTML OSS W3C Gary Wong prototype blog algorithm include ACSS PHP Molyx Cyber Formula presentation Experts Exchange textfield ActionScript Lego Flex Builder MOV birthday design pattern MovieClip Chris Liang CSS VideoDisplay color accessibility job hunting Tim Shiu HKICTA FLABER Eva Shi form Google AdvancedDataGrid hyperlink WCAG protoype sitemap

Flickr

flyunited.jpg 0511_web_usability_asg_a.jpg wanshan.jpg diarybox1.jpg tcmd2.jpg DSCN4338 DSCN4289 0509_battle_system_1_5.jpg munsang1.jpg 469790470_55a3908526_b iad2.jpg DSCN4411 07082007084.jpg DSCN7195 DSCF0016 guesthouse1.jpg 0607_flaber_1_1.png 11092007101.jpg

Blogroll

  • Eva’s Blog
  • Way’s Blog

RSS FxAIR.org

  • ActionScript for Random Numberic Text Lucky Draw
  • Post in cookbook to win a copy of Flex 3 Pro
  • Adobe Flash Player 10 Release is out
  • Adobe CS4 Launch Seminar
  • Flex 3 + external swf with embedded video
  • Flex & AIR @ BarCamp Hong Kong on 6 Sep.
  • Mojave Experiment by Microsoft
  • FotoViewr beta
  • RIAJobs
  • Cairngorm on opensource.adobe.com
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox