How do i consolidate my classes into one file?

Subscribe to How do i consolidate my classes into one file? 9 posts

avatar for epicfail1994 epicfail1994 253 posts
Flag Post

The title says it all, basically. I have several classes in seperate .as files (i used shootorial for help with my current game; normally i would code in the game, its new for me). Kong only lets you attach one seperate file on the upload screen….I’d try putting them all in a folder, but from my previous experience w/Web design, I’m thinking the .as files would be on a different “level” of folders. Any advice?

I have 10 seperate classes. not the most efficient way of doing things….

 
avatar for UnknownGuardian UnknownGuardian 8141 posts
Flag Post

You should compile your .as files into a .swf file.

You should check out (the soon to be updated) How to make Flash games sticky in the programming forum.

 
avatar for epicfail1994 epicfail1994 253 posts
Flag Post

Ah. Thank you!

 
avatar for epicfail1994 epicfail1994 253 posts
Flag Post

So basically, put the code in frames, and it will still access/be accessed by the game?

 
avatar for UnknownGuardian UnknownGuardian 8141 posts
Flag Post

What does your code look like? I think you’ve confused yourself a lot. And what IDE are you using?

 
avatar for epicfail1994 epicfail1994 253 posts
Flag Post

I meant to say, copy the code from the .as files into keyframes of a seperate .swf? Because for each enemy instance, etc I created a separate actionscript file using shootorial, something I’ve never done before

 
avatar for epicfail1994 epicfail1994 253 posts
Flag Post

It’s not the code thats the problem, but the files that the code contains

 
avatar for UnknownGuardian UnknownGuardian 8141 posts
Flag Post

Oh, when you compile your code using Flash CS then it will generate the swf file which has your code in it.

 
avatar for epicfail1994 epicfail1994 253 posts
Flag Post

I’m aware of that. I’m speaking of .as files SEPARATE from the /fla file my game is in..we’re on two entirely different levels of thinking. Thanks for your patience!