# AS3 / Flex2 import not working

**URL:** <https://forum.kirupa.com/t/as3-flex2-import-not-working/211059>\
**Category:** flash\
**Created:** [December 26, 2006, 6:46pm UTC](https://forum.kirupa.com/t/as3-flex2-import-not-working/211059 "2006-12-26T18:46:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Z11](https://avatars.discourse-cdn.com/v4/letter/z/97f17d/32.png) [@Z11](https://forum.kirupa.com/u/Z11)\
**Post date:** [December 26, 2006, 6:46pm UTC](https://forum.kirupa.com/t/as3-flex2-import-not-working/211059/1 "2006-12-26T18:46:45Z")

</div>

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.

```auto

    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…

```auto

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
