-
Help me! Flash Button to run JavaScript
Help me! I want to run JavaScript by Click on Flash Push Button
-
Flashkit Jedi
Code the function into the head of the html and then use the following code to execute it:
Code:
on(release){
getURL("yourfunction();");
}
XFM
-
When you do it like that and click the button you hear a "click sound" which is ok if you are launching a popup window.
However, I have a java applet that views panorama virtual tours.
Under it I have buttons to move left,right,zoom in & out and everytime I hit a flash button you get the "browser click sound"
If I make the rollover image feature in dreamweaver for the control buttons the beginning of the code looks like this:
<a href="#" onMouseOut="MM_swapImgRestore()"
If I remove the href="#", then the rollover button works but it doesn't generate the "click sound", which is what I also want to achieve with a flash button.
I hope this makes sense but I want several buttons in flash to call a function and not generate the "click sound". Possible?
Thanks,
George
-
Flashkit Jedi
Sorry, but I think it's an internet explorer thing, so coding something in flash wouldn't do anything.
I duno if there is and javascript that disables the sound...
XFM
-
Is there another way to call a function without using "get url"?
-GB
-
Flashkit Jedi
Not that I know of matey
XFM
-
how bout the other way around?
running flash button with javascript??
-
Flashkit Jedi
There is a way to do it, I'm just not familiar with it. I worked with JS and Flash recently on a third party image resizer.
Go to http://www.resize-before-upload.com and check their demos area. They have a demo that has a form that executes a flash function.
XFM
-
ok ill try but i think it is a little complicated eheh
-
Senior Member
If you dont want the sound to come then you have to call the JavaScript function using fsommand();
To know more about fscommand, look at this tutorial.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|