Hi,

the following code crash the Flash Player 8.5 Beta2 (Flex2 Beta2).
Is there something particularely wrong with this code? or is it 
compiler bug? or a flash player bug?

I had also some crash with similar code, but on construction, but 
there was no consistent ways to reproduce it.

Is there any work around ?

Thanks

Alain

 
the mxml:
=========
<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
        xmlns:mx="http://www.adobe.com/2006/mxml"; 
        xmlns="*" 
        layout="absolute"
        creationComplete="OnCreateComplete()">
        <mx:Script>
                <![CDATA[
                        import classes.DMDL_Query;
                        import classes.DMDL_QueryAll;
                        
                        public function OnCreateComplete() : void
                        {
                                trace( m_myQuery.toXML().toXMLString
() );
                        }
                
                        private var m_myQuery : DMDL_QueryAll = new 
DMDL_QueryAll();
                ]]>
        </mx:Script>    
</mx:Application>







in a classes directory 

classes/DMDL_Query.as
=====================
package classes 
{
import flash.util.trace;

public class DMDL_Query
{ 

    public function DMDL_Query()
    {
        trace( "DMDL_Query" );
        }
                
        public function toXML() : XML
        {
                default xml namespace = 
DMDL_Query.XML_QUERY_NAMESPACE;
                return new XML("<query-none/>");
        }       

    public static const XML_QUERY_NAMESPACE : String =  
        "www.kodak.com/WPE/Galiano/ViewCreationQueries";    
}

}



classes/DMDL_QueryAll.as
========================

package classes
{
import classes.DMDL_Query;

import flash.util.trace;

public class DMDL_QueryAll extends DMDL_Query
{
    public function DMDL_QueryAll()
    {
        super();
        
        trace( "DMDL_QueryAll" ); 
    }
}

}









--
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