# I can load .swf now but some of the AS arent working?

**URL:** <https://forum.kirupa.com/t/i-can-load-swf-now-but-some-of-the-as-arent-working/37292>\
**Category:** Uncategorized\
**Created:** [December 8, 2003, 3:12pm UTC](https://forum.kirupa.com/t/i-can-load-swf-now-but-some-of-the-as-arent-working/37292 "2003-12-08T15:12:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdjstudios](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mdjstudios](https://forum.kirupa.com/u/mdjstudios)\
**Post date:** [December 8, 2003, 3:12pm UTC](https://forum.kirupa.com/t/i-can-load-swf-now-but-some-of-the-as-arent-working/37292/1 "2003-12-08T15:12:48Z")

</div>

for one of my .swf i load it is this… when i load the .swf on the button dynamically, the the .swf loads, but the code doesnt… which means that i do not have a text following my cursor? is there soemthing i can do about this?

[AS]fscommand(“allowscale”,“false”)  
stop();  
Movieclip.prototype.elasticMove = function(target, accel, friction) {  
this.xspeed = (this.xspeed+(target.\_x - this.\_x) \* accel) \* friction;  
this.yspeed = (this.yspeed+(target.\_y - this.\_y) \* accel) \* friction;  
this.\_x += this.xspeed + 4; // plus 4 for letter offset  
this.\_y += this.yspeed;  
}

phrase = “||||||||||”;  
for(i=0;i\<phrase.length;i++){  
\_root.attachMovie(“letter”, “l”+i, i)  
\_root[“l”+i].char = phrase.charAt(i)  
if (!i) \_root[“l”+i].follow = \_root.mouseFollow  
else \_root[“l”+i].follow = \_root[“l”+(i-1)]  
}[/AS]
