Schwan
08-10-2007, 07:32 PM
I'm working on a site where I have a functional text link named "scroll to section" in HTML that looks like this:
<a href="javascript:;" onclick="dw_scrollObj.scrollToAnchor('section', 'wn', 'lyr1', 500)">scroll to section</a>
I want to change the boring text link to a Flash button. I have the button. I need to know how to convert that HTML to Flash actionscript that runs that javascript in my page. Any help would be greatly appreciated.
<a href="javascript:;" onclick="dw_scrollObj.scrollToAnchor('section', 'wn', 'lyr1', 500)">scroll to section</a>
I want to change the boring text link to a Flash button. I have the button. I need to know how to convert that HTML to Flash actionscript that runs that javascript in my page. Any help would be greatly appreciated.