I need help figuring out how to properly make a website using 100% classes.
Tell me if this is right, if not what do I do:
-
For each swf (about, contact, etc), there should be an individual document class (aboutdocclass.as, contactdocclass.as, etc) which are used to animate and create the content within each of them.
-
I should have 1 index.swf which loads in all these other swf’s and handles unloading/loading of them. This swf just acts as a global “manager/boss” of some sort.
Okay and a question: In the INDEXDOCCLASS.as, I loaded HOME.SWF into a movieclip on the stage. However, I can’t figure out how to access movieclips inside HOME.SWF!
For example:
// index doc class
var container1:Container = new Container();
addChild(container1);
Preloader.loadAMovie("home.swf", container1);
container1.SOMEMCINSIDEHOMESWF.x = 100; // failed
All in all, I’m brand new to AS3. I need to learn how to program websites properly, and its a little frustrating that I’m not sure what the correct path to go about it is. Any help is appreciated.