# Applying AS to dynamic text

**URL:** https://forum.kirupa.com/t/applying-as-to-dynamic-text/150103
**Category:** flash
**Created:** [June 3, 2005, 7:31pm UTC](https://forum.kirupa.com/t/applying-as-to-dynamic-text/150103 "2005-06-03T19:31:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![beamond](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@beamond](https://forum.kirupa.com/u/beamond)
#### Post date: [June 3, 2005, 7:31pm UTC](https://forum.kirupa.com/t/applying-as-to-dynamic-text/150103/1 "2005-06-03T19:31:46Z")

</div>

how do i add the following as to a couple of words in a dynamic text field. basically its a html type link but needs to have AS applied to it. the dynamic text is within a scroll box.

on(press) {if (selected == “testimonials”){break;}  
else {loadMovieNum(“testimonials.swf”,2);}  
selected = “testimonials”;  
trace (selected);  
gotoAndPlay(15);  
}  
on (rollOver) {  
unloadMovieNum(1);  
loadMovieNum(“navigatetest.swf”, 1);  
}  
on (rollOut) {  
unloadMovieNum(1);  
loadMovieNum(“infocenter.swf”, 1);  
}

thanks
