# Javascript "onclick" in flash link

**URL:** <https://forum.kirupa.com/t/javascript-onclick-in-flash-link/128776>\
**Category:** Uncategorized\
**Created:** [November 16, 2004, 4:14am UTC](https://forum.kirupa.com/t/javascript-onclick-in-flash-link/128776 "2004-11-16T04:14:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FearYourDreams](https://avatars.discourse-cdn.com/v4/letter/f/53a042/32.png) [@FearYourDreams](https://forum.kirupa.com/u/FearYourDreams)\
**Post date:** [November 16, 2004, 4:14am UTC](https://forum.kirupa.com/t/javascript-onclick-in-flash-link/128776/1 "2004-11-16T04:14:44Z")

</div>

I have a script that, when clicked on certain links, it changes the active css stylesheet via an “onclick” command.

I want to be able to use the same kind of links in a flash movie but i don’t exactly know how. I’m somewhat novice to actionscript so any help would be appretiated.

example of link in HTML:

```auto
<a href="#" onclick="setActiveStyleSheet('default'); return false;" target="main">change style to default</a>

```

how would i insert this into a flash “on (release)” link? :crying:
