# Updating game via .as files

**URL:** https://forum.kirupa.com/t/updating-game-via-as-files/232316
**Category:** flash
**Created:** [July 12, 2007, 7:12pm UTC](https://forum.kirupa.com/t/updating-game-via-as-files/232316 "2007-07-12T19:12:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Byte1](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@Byte1](https://forum.kirupa.com/u/Byte1)
#### Post date: [July 12, 2007, 7:12pm UTC](https://forum.kirupa.com/t/updating-game-via-as-files/232316/1 "2007-07-12T19:12:00Z")

</div>

Im working on a Flash that loads all its scripts and stuff from external .as files. Basically making the .swf a client of sorts to display and execute, while the .as files on server contain all the functions and basically the game itself. I want to make sure that when someone views the .swf, the .as files and all thier code are loaded again and again so I can update the game without having to open the original .fla at all. I really just want to have to write in the .as files to update, since its just basically a text file, I can open it anywhere with notepad and add code.

I just cant figure out how to do this. #include wont work because all the code is placed in the .swf during compilation. Thus, I’d have to open the .fla. #include is the only way I can think of to load code into Flash. Does anyone else know another way?
