Frase69
07-04-2008, 09:25 AM
Hi,
I've only recently begun making the step from 2.0 to 3.0 and I was wondering if anyone could briefly explain a few things to me. I definately think 3.0 is worth the effort of learning as it is much more similar to Java which I am familiar with.
With the old language, when I made games I made everything on the stage, now I'm interested into looking into making movieclip objects in code and placing them onto the stage.
What I can't get my head around though is where all this code should go, it seems ridiculously to put absolutely everything into the frame of the main timeline. Thus I looked around, and realised I could build external .as scripts to hold my classes.
However, I'm finding this all very hard to picture. Even if I made .as files for all my objects, where would I put all the code for interactions between those objects, would this all go in the actual timeline frame? Or else, could I put these controller classes into .as files, and just import everything in with the timeline actions? It seems to require much, much more planning than the old days of just including all methods and attributes within a movieclip. What are the standards?
Basically could you please give me advice on the above as best you can, and one other little thing:
If I did make a flash project of all these external documents, does it combine absolutely everything into the .swf once published? (I'm assuming that must be the case in order to add the flash to a web page without all the project files).
Thankyou for any help or information you can give. Any tutorials or game examples would be much appreciated too.
I've only recently begun making the step from 2.0 to 3.0 and I was wondering if anyone could briefly explain a few things to me. I definately think 3.0 is worth the effort of learning as it is much more similar to Java which I am familiar with.
With the old language, when I made games I made everything on the stage, now I'm interested into looking into making movieclip objects in code and placing them onto the stage.
What I can't get my head around though is where all this code should go, it seems ridiculously to put absolutely everything into the frame of the main timeline. Thus I looked around, and realised I could build external .as scripts to hold my classes.
However, I'm finding this all very hard to picture. Even if I made .as files for all my objects, where would I put all the code for interactions between those objects, would this all go in the actual timeline frame? Or else, could I put these controller classes into .as files, and just import everything in with the timeline actions? It seems to require much, much more planning than the old days of just including all methods and attributes within a movieclip. What are the standards?
Basically could you please give me advice on the above as best you can, and one other little thing:
If I did make a flash project of all these external documents, does it combine absolutely everything into the .swf once published? (I'm assuming that must be the case in order to add the flash to a web page without all the project files).
Thankyou for any help or information you can give. Any tutorials or game examples would be much appreciated too.