vlad2005
05-18-2007, 10:39 AM
Ai have an simpe aplication for testing purpose, used from help:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import samples.SampleCode;
var mySample:SampleCode = new SampleCode();
mySample.sampleGreeting = "this is line with error";
]]>
</mx:Script>
</mx:Application>
This is package
package samples
{
public class SampleCode
{
public var sampleGreeting:String;
}
}
Import package is ok, but i have error on line with "mySample.sampleGreeting" that say "Acces of undefined property mySample".
From where is this error?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import samples.SampleCode;
var mySample:SampleCode = new SampleCode();
mySample.sampleGreeting = "this is line with error";
]]>
</mx:Script>
</mx:Application>
This is package
package samples
{
public class SampleCode
{
public var sampleGreeting:String;
}
}
Import package is ok, but i have error on line with "mySample.sampleGreeting" that say "Acces of undefined property mySample".
From where is this error?