# Linking with Dynamic Text & CSS problem

**URL:** <https://forum.kirupa.com/t/linking-with-dynamic-text-css-problem/43158>\
**Category:** flash\
**Created:** [February 19, 2004, 10:59am UTC](https://forum.kirupa.com/t/linking-with-dynamic-text-css-problem/43158 "2004-02-19T10:59:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juxtapozed](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@juxtapozed](https://forum.kirupa.com/u/juxtapozed)\
**Post date:** [February 19, 2004, 10:59am UTC](https://forum.kirupa.com/t/linking-with-dynamic-text-css-problem/43158/1 "2004-02-19T10:59:37Z")

</div>

After doing the tutorial on kirupa for using css, I wanted to create text links to other frames in my movie. So I searched the forums and came across kode’s really helpful info on creating them. But when i try to incorporate the two i just cant seem to pull it off.

Basically i’m trying to attach a css to the below code, but due to my action script skills fail.

Text Links Code:  
[COLOR=royalblue]\_root.myText.htmlText = ‘\<a href=“asfunction:gotoAndStop,myFrame”\>Click here and goto my frame\</a\>’;[/COLOR]

CSS code:  
[COLOR=royalblue]var format = new TextField.StyleSheet();  
var path = “[http://www.juxtapozed.com/testing/personal/juxtstyle.css](http://www.juxtapozed.com/testing/personal/juxtstyle.css)”;  
var quick = “\<h3\>This is s test.\</h3\>\<p\>This is s test\<br\>This is s testThis is s testThis is s test\</p\>\<h4\>Click here to see This is s test.\<h4\>”  
format.load(path);  
format.onLoad = function(success) {  
if (success) {  
output.styleSheet = format;  
output.text = quick;  
} else {  
output.text = “Error loading CSS file!”;  
}  
};[/COLOR]

any help will be much appreciated . juxatpozed.
