PDA

View Full Version : loading a .txt(Or something else) containing my game engine A.S into flash.



zach93111
December 19th, 2007, 08:47 PM
I wanted to add all my engine script to something else for easy editing, then just make 3 scripts (frame1, 2, and 3) then just loading each up into flash, for easy editing/playing.

Mr beef
December 19th, 2007, 09:04 PM
Hoe about classes?

-Z-
December 19th, 2007, 10:29 PM
Great go for it.

zach93111
December 19th, 2007, 10:42 PM
Great go for it.

can I see an example?

-Z-
December 19th, 2007, 10:46 PM
Hrmm that is very deep, an example of "Great go for it".

zach you need to be more clear on what you are asking. The only question you have asked so far is "Can I see an example"

zach93111
December 19th, 2007, 10:52 PM
Hrmm that is very deep, an example of "Great go for it".

zach you need to be more clear on what you are asking. The only question you have asked so far is "Can I see an example"

Can I see an example of a script where you load an entire script off some place other than flash.

Sirisian
December 19th, 2007, 11:18 PM
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/URLLoader.html

hatu
December 20th, 2007, 02:26 AM
Like Mr Beef said what you're looking for is classes. There are some pretty good tutorials on them here at Kirupa. Probably under OOP or object oriented programming

-Z-
December 20th, 2007, 07:39 AM
include "scripts/myscript.as"; ....

joran420
December 20th, 2007, 08:43 PM
#include :P

zach93111
December 20th, 2007, 10:56 PM
#include :P

Nevermind...

I used #include...