# Include .as file problem!

**URL:** https://forum.kirupa.com/t/include-as-file-problem/21975
**Category:** Uncategorized
**Created:** [May 28, 2003, 7:22pm UTC](https://forum.kirupa.com/t/include-as-file-problem/21975 "2003-05-28T19:22:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mojoNYC](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mojoNYC](https://forum.kirupa.com/u/mojoNYC)
#### Post date: [May 28, 2003, 7:22pm UTC](https://forum.kirupa.com/t/include-as-file-problem/21975/1 "2003-05-28T19:22:10Z")

</div>

hi all-  
i’ve built a piece for a client (who doesn’t have flash), that contains some text variables that are sent to flash via include:

```php

#include "newsVar.as"

```

i just found out that changing the text file doesn’t do anything to the .swf until you re-publish the .swf–is there any way around this?  
your help is greatly appreciated!

-mojo

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 28, 2003, 7:55pm UTC](https://forum.kirupa.com/t/include-as-file-problem/21975/2 "2003-05-28T19:55:43Z")

</div>

Yeah I just recently found out from ahmed that .as files get compiled into flash during the publishing process and not during runtime as well.

You can use external .txt files and loadVars() as a workaround.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 28, 2003, 8:04pm UTC](https://forum.kirupa.com/t/include-as-file-problem/21975/3 "2003-05-28T20:04:36Z")

</div>

^ read

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 28, 2003, 9:07pm UTC](https://forum.kirupa.com/t/include-as-file-problem/21975/4 "2003-05-28T21:07:32Z")

</div>

i just found out the same thing…heh. like 3 days ago.
