I can’t seem to import correctly… I’ve been trying for almost 24 hours and still nothing… So here is the code, It’s in a flex2 project.
creationComplete="start()">
<mx:Script>
<![CDATA[
import main.startup;
public function start()
{
startup.start3();
trace('hi');
}
]]>
</mx:Script>
and in the main project folder I have a main folder with a startup.as in it… with the following in side it…
package main
{
import flash.display.Sprite;
public class startup extends Sprite
{
public function start3():void
{
trace ('start');
}
}
}
And It won’t work. . tells me i got a possibly undefined start3() through reference of static type class… or something like that… which is like swahili to me