Painful! Painful! It amazes me how little effort is sometimes put into documentation and today I found another example in Actionscript 3.0. (This is another reason I love codeigniter: great user-friendly manual! but that is another story). The actionscript goal was as follows: to change text characteristics by applying css to a textField. I was thinking I would use the “b” and “i” tags (old school bold and italics) as my target tags. The only problem was that when applied nothing happened. Nothing, the “b” and “i” tags retained their original styling and my css was as if it was not applied. I spent time checking to make sure I applied it, time checking to make sure the tags where really there, and time looking through the manual to discover anything…
The tests proved that the tags where there and that the css was applied but I was still having the issue. So I just tried other tags and to my slight surprise the other tags worked. It appears that actionscript will not style “b” and “i” tags but will style “em” and “strong” tags. It will still interpet the “b” and “i” tags and apply their default styling it just will not let you overwrite those defaults with css. Sounds like either a bug or an undocumented exclusion… Either way very annoing and the manual is very unfriendly and slow. In fact online help through their livdocs was faster than through the program… Great manuals designed to be usable make or break software in the long run and this cannot be a good sign for Adobe. I’ve been playing/using flash since 2000 and their CS5 manual/help is much worse in terms of usability than their help was in 2000.
If you want to see a demo showing this issue try out the code below:
... var newStyle:StyleSheet = new StyleSheet(); var styleObj:Object = new Object(); styleObj.fontStyle = 'normal'; styleObj.color = '#660066'; styleObj.display = 'inline'; newStyle.setStyle("b", styleObj); newStyle.setStyle("i", styleObj); newStyle.setStyle("strong", styleObj); newStyle.setStyle("em", styleObj); text_field.styleSheet = newStyle; text_field.htmlText = '<b>Hi</b> <i>World!</i> <strong>Hi</strong> <em>World!</em>'; ...
The output should look something like this:
Hi World! Hi World!
It has been some time since the first post on this 

We (i.e., Dr. Adams and I) just had our 





