Ah, that makes sense.  Thanks!
 

Jason Merrill 
Bank of America
Learning & Organizational Effectiveness 
  
  
  
  
  

 


________________________________

        From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle
        Sent: Tuesday, January 09, 2007 11:37 AM
        To: [email protected]
        Subject: Re: [flexcoders] odd script error - undefined property
        
        

        Hi,
        
        The script tag is like the class definition
        
        You need to put property definitions in a method
        
        function initApp():void
        {
            foo = "Hello World";
        }
        
        
        On 1/9/07, jmerrill_2001 <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

                my entire MXML & Actionscript, which I can't see any
errors with:
                
                <?xml version="1.0" encoding="utf-8"?>
                <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 
                layout="absolute">
                <mx:Script>
                <![CDATA[
                public var foo:String;
                foo = "Hello World";
                ]]>
                </mx:Script>
                </mx:Application>
                
                I am getting this error on that second line in the
script: 
                "1120: Access of undefined property foo."
                
                ??? Any ideas? Haven't I already defined the variable
"foo"???
                
                Thanks,
                
                Jason
                
                

                




        -- 
        Teoti Graphix
        http://www.teotigraphix.com <http://www.teotigraphix.com> 
        
        Blog - Flex2Components
        http://www.flex2components.com <http://www.flex2components.com> 
        
        You can find more by solving the problem then by 'asking the
question'. 

        

         

Reply via email to