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]> 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"
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
Blog - Flex2Components
http://www.flex2components.com
You can find more by solving the problem then by 'asking the question'.