yeah, putting the renderer in the parent swf works for now, but I know it's going to come back to bite me later.
On Sat, May 31, 2008 at 10:25 AM, Ian Thomas <[EMAIL PROTECTED]> wrote: > Not terribly helpful, I know, but I've had a bunch of problems where > mx Flex components in loaded child .swfs don't render properly (and/or > throw exceptions) unless the same Flex component is compiled into the > parent movie. > > I've never figured out why; when it's happened, so far I've been in a > rush trying to get things finished and adding the component to the > parent movie is an easy solution. > > I'd love to track down an answer to this one, too... > > Ian > > On Sat, May 31, 2008 at 5:31 PM, Rich Rodecker <[EMAIL PROTECTED]> > wrote: > > ok...i think i was wrong on that. I wound up having to add the custom > cell > > renderer to the parent swf's library for now. I'd still love to figure > > thisout if anyone has any ideas. > > > > On Fri, May 30, 2008 at 6:15 PM, Rich Rodecker <[EMAIL PROTECTED]> > wrote: > > > >> Figured it out...it was due to hacking UIComponent: > >> > http://www.visible-form.com/blog/one-note-about-hacking-cs3s-uicomponent-to-fix-eventrender/ > >> > >> > >> On Fri, May 30, 2008 at 11:09 AM, Rich Rodecker <[EMAIL PROTECTED]> > >> wrote: > >> > >>> I have a situation where I have a swf, let's call it child.swf, > contains a > >>> List component which makes use of a custom cell renderer, > >>> CustomCellRenderer, which extends CellRenderer. On it's own, > everything > >>> works fine. > >>> My problem is trying to load it into Main.swf, which also has a List in > >>> it's library, and thus the CellRenderer and CellRendererSkins component > >>> assets exported with it. When i load child.swf into Main.swf, it finds > the > >>> CustomCellRenderer class fine, but that class is throwing errors saying > that > >>> the assets which are supposed to be on stage are not found, which > sounds > >>> like it can no longer pull the library symbol for CustomCellRenderer. > I > >>> have custom skins for the scrollbar in the List though that work fine. > >>> > >>> I have narrowed it down to the CellRenderer symbol being exported in > >>> Main.swf. Right now, I am setting LoaderContext.applicationDomain = > >>> ApplicationDomain.currentDomain for the Loader which is loading > child.swf, > >>> but I've tried every combo of application/security domain and it's > still a > >>> no go. > >>> > >>> It does work if I export the CustomCellRenderer symbol in Main.swf's > >>> library, but that is not ideal. > >>> > >>> Any ideas? > >>> > >>> > >>> > >>> > >>> > >> > > _______________________________________________ > > Flashcoders mailing list > > [email protected] > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

