Not quite. Something is a bit funky in what you are doing that is annoying
the linker.

Components have two pieces, a class sprite (to lay out the class structure,
name starts with __Packages.whatever) and a skin sprite (which holds some
graphical assets and does the Object.registerClass call).

What seems to be happening is that the class sprite
(__Packages.mx.containers.HBox) is being loaded as usual from the system
library, mx.swc.

However, you have redefined the associated skin sprite (mx.containers.HBox)
definition, which is getting loaded from MyContainer.swc.

This is a bit unusual, 99% of the time not what you want, but sometimes it
is. So its a warning only. If as a result, your code isn't working, its
because the skin sprite isn't honoring the full contract between the two.

Now, at this point, you're wondering "Huh?" and I'm wondering "Why is he
trying to subclass inside Flash MX?"

This is all kind of strange, because Flash MX bakes SWCs that have all
dependent symbols flattened out inside them. I can't really imagine how a
SWC is getting written for a subclass of HBox that doesn't have the base
classes for the HBox included. But maybe it is in there! Please open
MyContainer.swc inside WinZip and look at the Catalog.xml file. Is there a
__Packages.mx.containers.HBox? What's the timestamp? Does it match the
timestamp in the catalog for mx.swc?

Failing all that, why not just define your HBox subclass as an ActionScript
component in Flex? Flex components do not currently work in Flash MX
anyway, so its not like you're losing any functionality anyway.

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]


> -----Original Message-----
> From: opus4210 [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 11, 2004 12:45 PM
> To: [email protected]
> Subject: [flexcoders] Interpret warning message: different 
> parent loaders
> 
> I am creating a custom component that extends mx:HBox and I get the 
> following message:
> 
> Warning
> Component http://www.macromedia.com/2003/mxml:mx.containers.HBox 
> class symbol JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-
> INF\flex\frameworks\mx.swc:__Packages.mx.containers.HBox (modified 
> 3/11/04 11:46 PM, priority 2) and component sprite 
> Inetpub\wwwroot\MyContainer.swc:mx.containers.HBox (modified 3/18/04 
> 4:40 AM, priority 2) have different parent loaders.
> 
> Can I infer that, since the dates are different, the problem is that 
> they are different versions of the base HBox component?
> 
> Thanks,
> Kevin.
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> ---------------------~-->
> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/nhFolB/TM
> --------------------------------------------------------------
> -------~->
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


Reply via email to