Hello Friends,
Here’s what I’m trying to do:
I’ve got an external text file with a bunch of pieces that I want to load via asfunction. Here’s my script:
_global.doSomething = function(what) {
myLoadVar = new LoadVars ();
myLoadVar.load("text/lyrics.txt")
myLoadVar.onLoad = function (success){
if (success == true) {
_root.popup.fullStory.text = myLoadVar.what;
}
}
_root.popup._y = 0;
_root.popup._x = 0;
_root.popup._alpha = 100;
}
Here’s the asfunction piece:
<a href=‘asfunction:doSomething,Surrounded’>Surrounded</a>
However, this traces to “myLoadVar.Surrounded” instead of loading the proper text. Can anyone help me figure out the proper way to do this?
Thanks,
Igby