Comments on: Bug when creating CS3 UIComponents in Document Class constructor https://joshblog.net/2008/07/16/bug-when-creating-cs3-uicomponents-in-document-class-constructor/ 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: Josh Tynjala https://joshblog.net/2008/07/16/bug-when-creating-cs3-uicomponents-in-document-class-constructor/#comment-1006 Wed, 13 May 2009 16:43:56 +0000 http://www.zeuslabs.us/?p=244#comment-1006 Some Guy, this post is related to the fl.* component set included in the CS3 and CS4 versions of the Flash authoring tool. It is not about using Flex components in any way. This issue can never be encountered in Flex, but it’s an unfortunate issue with component sets meant to run in vanilla AS3 applications. Thankfully, there are workarounds.

]]>
By: Some Guy https://joshblog.net/2008/07/16/bug-when-creating-cs3-uicomponents-in-document-class-constructor/#comment-1005 Wed, 13 May 2009 16:34:43 +0000 http://www.zeuslabs.us/?p=244#comment-1005 Well, it’s not really a bug. You guys are just doing it wrong.

UIComponents are rendered AFTER they are added to their parent. By adding them to their parents before the parents themselves are added to the screen puts them all at (0,0). To properly implement this process, you might want to consider making a custom UIComponent by extending the UIComponent class. The UIComponent has the createChildren method where you are supposed to add children. Also, the updateDisplayList method is used for sizing and positioning…

If you need any help, try searching google for something like “custom uicomponent”

]]>
By: benji https://joshblog.net/2008/07/16/bug-when-creating-cs3-uicomponents-in-document-class-constructor/#comment-1004 Mon, 22 Sep 2008 14:46:21 +0000 http://www.zeuslabs.us/?p=244#comment-1004 is there any chance to hack this bug somehow??

]]>