Comments on: Style system bug in Flash CS3 UIComponents https://joshblog.net/2008/06/04/style-system-bug-in-flash-cs3-uicomponents/ Archive of older blog posts written by Josh Tynjala about Flash, Flex, and ActionScript Wed, 26 Jun 2013 02:52:46 +0000 hourly 1 https://wordpress.org/?v=4.9.9 By: Geoffrey Hom https://joshblog.net/2008/06/04/style-system-bug-in-flash-cs3-uicomponents/#comment-957 Tue, 28 Oct 2008 16:13:24 +0000 http://www.zeuslabs.us/?p=241#comment-957 Hi, I randomly ran into this article, and I don’t seem to have a problem setting, say, the font size for just one type of component in Flash CS3. Presumably they fixed the bug, but my StyleManager constructor looks the same as in your article. Any idea how they fixed it?

FYI, this seems to work for me:

var textFormat:TextFormat = new TextFormat();
textFormat.size = 36;
StyleManager.setComponentStyle(new TextInput(), “textFormat”, textFormat);

]]>
By: Josh Tynjala https://joshblog.net/2008/06/04/style-system-bug-in-flash-cs3-uicomponents/#comment-956 Thu, 31 Jul 2008 02:31:19 +0000 http://www.zeuslabs.us/?p=241#comment-956 Copy the edited class file into the same folder as your FLA file. It should override the default pre-compiled version. Alternatively, add the top level folder containing the User Interface class files to your FLA file’s source path (in Publish Settings). This will override all classes in the “component shim”, but it may take longer to compile.

]]>
By: K Anderson https://joshblog.net/2008/06/04/style-system-bug-in-flash-cs3-uicomponents/#comment-955 Thu, 31 Jul 2008 00:08:17 +0000 http://www.zeuslabs.us/?p=241#comment-955 Wow, this is exactly what i was looking for! I spent hours trying to figure out why i couldn’t set the textFormat style on a List component.

For now i am using your StyleManager.setStyle() solution, but i’d really like to make the edit you suggested to the StyleManager constructor. I tracked the class down and made the change, but nothing is happening… Wondering if i need to reload the classes into flash somehow, or what… Any ideas?

Thanks!

]]>
By: Josh Tynjala https://joshblog.net/2008/06/04/style-system-bug-in-flash-cs3-uicomponents/#comment-954 Thu, 05 Jun 2008 04:04:04 +0000 http://www.zeuslabs.us/?p=241#comment-954 Thanks, TJ. It seemed like kind of an abstract bug, so I figured some extra explanation would help make it clear for those unfamiliar with the component architecture, and it shows to Adobe’s developer that I understand what’s happening under the hood. Plus, being a typical egotistical developer, I know how easy it can be to dismiss a bug report because it doesn’t point to the problem clearly enough. 🙂

Also, just to clarify, it’s not a Flex bug. It applies to the components that come with Flash CS3.

]]>
By: TJ Downes https://joshblog.net/2008/06/04/style-system-bug-in-flash-cs3-uicomponents/#comment-953 Thu, 05 Jun 2008 00:40:53 +0000 http://www.zeuslabs.us/?p=241#comment-953 “Probably one of the most well thought out and documented explanations…” in regards to a bug, was the intended thought.

]]>
By: TJ Downes https://joshblog.net/2008/06/04/style-system-bug-in-flash-cs3-uicomponents/#comment-952 Thu, 05 Jun 2008 00:39:54 +0000 http://www.zeuslabs.us/?p=241#comment-952 Probably one of the most well thought out and documented explanations I have ever read in the Flex community. Kudos and thanks for the thorough report and explanation

]]>