;

PDA

Click to See Complete Forum and Search --> : [RESOLVED] Basic Questions, Class Path Troubles?


Zeusbwr
09-04-2006, 01:17 PM
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:
stop();
import AS.UIMng.Index;
var objIndex = new Index();


Here is the index.as file:
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:
C:\~~\asv301\index.fla:
ReferenceError: Error #1065: Variable Index is not defined.
at Timeline0_6684953c7a2dd54f9ea879d9b6d76711/::frame1()

cancerinform
09-04-2006, 04:19 PM
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.