# Actionscript embedded in .txt file?

**URL:** <https://forum.kirupa.com/t/actionscript-embedded-in-txt-file/123>\
**Category:** Uncategorized\
**Created:** [July 6, 2002, 12:20am UTC](https://forum.kirupa.com/t/actionscript-embedded-in-txt-file/123 "2002-07-06T00:20:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dizzy](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@dizzy](https://forum.kirupa.com/u/dizzy)\
**Post date:** [July 6, 2002, 12:20am UTC](https://forum.kirupa.com/t/actionscript-embedded-in-txt-file/123/1 "2002-07-06T00:20:06Z")

</div>

I’m fairly certain it isn’t, but does anyone know if it’s at all possible to pass actionscript back to the player through an externally loaded .txt file via some sort of “a href” tag?  
Or am I out to lunch in thinking this would be a cool feature?  
🙂  
-Diz

---

<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:** [July 6, 2002, 2:16am UTC](https://forum.kirupa.com/t/actionscript-embedded-in-txt-file/123/2 "2002-07-06T02:16:22Z")

</div>

Well it’s certainly possible to have Flash read functions from an external text file using the #include statement, so I’m sure you could pass values from the file as well. But do you want to pass things to a text file dynamically? That is, do you want to write information to a file with Flash? If so, I think you would need to write yourself a simple PHP (or similar) script that could read Flash input and output to a text file. Or am I getting this all wrong? 🙂

- ptolemy

---

<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:** [July 6, 2002, 2:26am UTC](https://forum.kirupa.com/t/actionscript-embedded-in-txt-file/123/3 "2002-07-06T02:26:14Z")

</div>

it is indeed possible. this saved me huge headaches once upon a time…

you can call a function from imported html by using asfunction:

```auto

&#060;a href="asfunction:functionName[,function arguments]"&#062;

```

that would be in the external file you loaded in.

---

<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:** [July 6, 2002, 2:32am UTC](https://forum.kirupa.com/t/actionscript-embedded-in-txt-file/123/4 "2002-07-06T02:32:58Z")

</div>

WOW! this could be cooler, but I’m not sure how =)

ptolemy wrote:  
\>\>That is, do you want to write information to a file with Flash?

Nope, I want to load a .txt file with navigational elements in it that control the movie.  
Now that I know I can do it and have the syntax to boot, I’m gonna go put it to use!!  
Thank you sbeener - I live in Victoria, and happen to be going to Vancouver tomorrow. Can I buy you a beer for your help?  
lol  
Peace,  
Dizzy
