# ASfunction and loadVars?

**URL:** <https://forum.kirupa.com/t/asfunction-and-loadvars/198689>\
**Category:** flash\
**Created:** [August 27, 2006, 7:47pm UTC](https://forum.kirupa.com/t/asfunction-and-loadvars/198689 "2006-08-27T19:47:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnizm](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gnizm](https://forum.kirupa.com/u/gnizm)\
**Post date:** [August 27, 2006, 7:47pm UTC](https://forum.kirupa.com/t/asfunction-and-loadvars/198689/1 "2006-08-27T19:47:31Z")

</div>

Anyone know why this doesn’t work? :crazy:

I have an external .AS file with this function ::

post\_text = function(){  
text\_box.html = true;  
text\_box.htmlText = loadText.about;  
}  
//the “about” is just a &variable in an external text file loaded via LoadVars…

In the external text file, I’ve set this link up ::

\<a href= “asfunction:post\_text”\>News\</a\>

What I had hoped would happen was when the link was clicked it would wipe away the current text (the default text that loads with the page, “variable &current” in the text file) and load &about in the dynamic textbox.

PS. Heard thaat the Asfunction acts strange on a Mac? I am on a Mac, maybe this could be it??
