Hi dj,

I found what I think is the same problem this morning, and here is
what I figured out.  I am developing with Flex Builder 2b3. I have an
application that includes a custom MXML component that is based on
Panel.  When the application includes the panel-based custom
component, it fails to initialize.  When I remove the panel-based
custom component, it initializes.  When I include the custom component
but wrap it in a canvas, it intializes.

The problem only occurs under the release Flash 9 player.  Everything
runs fine under FlDbg9a.ocx, so I assume that is why you and your
co-worker got different results.

Here is some sample code that produces the error.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
        xmlns:myComps="components.*" layout="absolute"> 
        <myComps:Dummy/>                        
</mx:Application>

   and the component

<?xml version="1.0" encoding="utf-8"?>
<!-- Dummy.mxml -->
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"; 
        layout="absolute" 
        width="400" height="300">
        <mx:Text text="Hello!"/>
</mx:Panel>

This generates no compile errors, but fails to initialize.  The
initializing progress bar displays, but stops at about 1/3, and the
app never launches.

I hacked around the problem by wrapping my panel in a canvas, as follows.

<?xml version="1.0" encoding="utf-8"?>
<!-- Hacky.mxml -->
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; 
        width="400" height="300">
        <mx:Panel>
                <mx:Text text="Hello from a panel in a canvas."/>
        </mx:Panel>
</mx:Canvas>

This works as expected.

Hope this helps.  I am hoping that this is just a problem with the
beta3 builder, and that it will go away after I install the release
version.

Fingers crossed,
Dave

--- In [email protected], "djbrown_rotonews"
<[EMAIL PROTECTED]> wrote:
>
> my flex app has just recently gotten "stuck" on initializing, but a co-
> worker is able run it from his browser when pointing to my ip address. 
> My browser briefly shows a re-direct url to
> flex-internal?action=history 
> 
> any ideas on how to fix this in my local browser? I'd just assume not 
> have to sit in my co-workers lap to develop :)
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to