域卡的卜 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

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

Flickr

msc_bio_v1_2.png wanshan.jpg munsang2.jpg 0511_web_usability_asg_b.jpg eagles.jpg msc_bio_v3_4.png 467149871_292083b8cc_o msc_bio_v3_2.png diarybox1.jpg csgame3.jpg munsang1.jpg msc_bio_v2_1.png 28072007078.jpg msc_bio_v3_5.png DSCN4303 csgame2.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