A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Basic Questions, Class Path Troubles?

  1. #1
    Senior Member
    Join Date
    Aug 2001
    Posts
    227

    [RESOLVED] Basic Questions, Class Path Troubles?

    Well i spose this will be my basic question location. I just installed 3.0, and am toying with it, but i cannot even get a hello world program to work lol.

    I am attempting to Have a main FLA that loads one class and gives itself (level0_ you could say) as a paremeter. That class then goes on and does everything. Basically a 100% AS Website.

    Now i can't even seem to get the class to be recognized. And i am sure i am doing a ton of things wrong.. ie, how i am organizing my class (Which exists in a custom folder "MovieFolder/AS/UIMng/Index.as" and my FLA is in "MovieFolder/myMovie.fla".

    Here is the only thing in the fla:
    Code:
    stop();
    import AS.UIMng.Index;
    var objIndex = new Index();
    Here is the index.as file:
    Code:
    class AS.UIMng.Index {
    	public var traceDebug:Boolean;
    	//private var rootClp:MovieClip;
    	function Navigation() {
    		//this.rootClp = rootClip;
    	}
    }
    Note that the two movieclip variables are the root movieclip, but i'm waiting to implement them until i can get the actual class to be fully defined.


    Could someone give me a pointer? Being that it is so amazingly simple, i assume somehow i am defining the class path wrong.. how would i do that?

    Here is the error i am getting:
    Code:
    C:\~~\asv301\index.fla:
    ReferenceError: Error #1065: Variable Index is not defined.
    	at Timeline0_6684953c7a2dd54f9ea879d9b6d76711/::frame1()

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Check out this thread. There is some discussion and also examples attached.

    http://board.flashkit.com/board/showthread.php?t=699819

    Check the resources thread in this forum. There are links to some basic tutorials.
    - The right of the People to create Flash movies shall not be infringed. -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center