Rich Rodecker’s blog on flash, flex, actionscript, javascript, and php, with a dash of randomness
One note about hacking CS3′s UIComponent to fix Event.RENDER
Recently I posted about an issue about Flash CS3 components, wmode=transparent, and Event.RENDER, and in that post mentioned the UIComponent hack. One problem I did run into after using that hack was with custom CellRenderers, they didn’t work properly when loaded into another swf (when the parent swf exported it’s own CellRenderer). The fix was simple enough though: I just commented out the stage.invalidate(); line in callLaterDispatcher() and the loaded CellRenderer worked fine again.
Update: I’m going to have to call myself on this one…I must have done something screwy during my testing, because when I went back to it, I couldn’t get it to work. I wound up having to add the custom cell renderer from the child swf into the parent swf, which is reeeaaaal dirty but it’ll have to do for now.
| Print article | This entry was posted by rich on May 30, 2008 at 10:50 am, and is filed under flash. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |