Oh! You want to call some JavaScript function when your Flash button is clicked, right?
Ok, then is this your onRelease code for the Flash button in addCart.swf:
Main Topics
Browse All TopicsI hate to be such a dunce - I've read the responses to others that have had this problem, but I still can't get it to work. I want to add an onclick event to a Flash button provided by Dreamweaver. Here is the code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://downloa
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE
<param name="BGCOLOR" value="" />
<param name="movie" value="addCart.swf" />
<param name="quality" value="high" />
<embed src="addCart.swf" quality="high" pluginspage="http://www.ad
</object>
</noscript>
Where does the Onrelease and GetURL code go? Can I also include return false;?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The flash button is one provided by Dreamweaver (I don't understand why they provide these buttons without explaining how to make them functional). I know I must be missing a big piece of this, but my question is: Just exactly where does that code go? You can't put it in the .swf, and everywhere else I've put it errors out. Yes, I do want to activate JavaScript function - which adds to a shopping cart.
"The flash button is one provided by Dreamweaver (I don't understand why they provide these buttons without explaining how to make them functional)."
That's why I decided so far NOT to use toolkits, neither Dreamweaver nor prototype.js
You depend on them. You have to learn their philosophy.
By the way, I do not beleave that Dreamweaver has such flash buttons, but as I already stated: I do not want to know it ;-)
So sorry, I have no other solution then the upper I alreadey proposed: take over the control and make YOUR flash buttons and ActiveScript code.
Here a thread from Adobe where you can use some FLA file for your flash button: http://www.adobe.com/devne
I'm using Dreamweaver CS3 and I do not have the toolkit. The buttons provided by Dreamweaver can be accessed by clicking Insert>Media>Flash Button. When I provide a URL the button works fine but does nothing if you reference an internal JavaScript function. HOWEVER, I did create my own Flash button, inserted it in the Dreamwever page, and applied Behavior: Call JavaScript. It works great. I would rather have used the provided buttons, but this way I can create exactly what I want and need.
Business Accounts
Answer for Membership
by: ZvonkoPosted on 2007-12-30 at 04:31:32ID: 20550585
It is not clear to me what you are asking for.
Basicaly is the Flash button behaviour NOT represented in the html part of the page. The button is handled inside of the Flash movie where you code in ActionScript what the button does.
So are onRealease and getUrl not JavaScript but ActionScript methods.