473,320 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

javascript function call from Flash

Hi,

i need to invoke a javascript function while clicking a button that is
in a flash movie.
i hav used geturl() to redirect the page to some other page.
but is it possible to call a javascript function from FLASH..??

please help me

Regards
Anees

Jul 11 '07 #1
2 4635

"Anees" <mu********@gmail.comwrote in message
news:11*********************@r34g2000hsd.googlegro ups.com...
Hi,

i need to invoke a javascript function while clicking a button that is
in a flash movie.
i hav used geturl() to redirect the page to some other page.
but is it possible to call a javascript function from FLASH..??
Sorry if this shows up twice. I thought I already answered this, but OE
shows no trace of it. The short answer is that you can use the javascript
protocol with geturl. There are at least two other methods, but not all of
them work in across all browsers and Flash versions. The long answer
involves detecting the Flash version with script and there are exactly zero
competent examples of this on the Internet. Adobe's own "future-proof"
deployment kit is one of the worst, which should tell you something.

BTW, don't use Flash unless absolutely necessary (and it is never absolutely
necessary.)
>
please help me

Regards
Anees

Jul 11 '07 #2
d d
Anees wrote:
i need to invoke a javascript function while clicking a button that is
in a flash movie.
i hav used geturl() to redirect the page to some other page.
but is it possible to call a javascript function from FLASH..??
Anees
There are 3 ways to call javascript from Flash.

#1 - You can do this: getURL("javascript:alert('hello world')");
Note, this can result in a "navigation click" sound on Windows/IE.

#2 - use an FS command (this needs the JavaScript to be FS command aware).

#3 - Use the Flash8+ ExternalInterface

You'll get more useful help for Flash from one of the Adobe support forums.

~dd
Jul 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bin_P19 P | last post by:
the code i have got is as follows and now im stuck <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Shopping...
3
by: johnsonholding | last post by:
Here is the script I have in my page : <!-- Begin function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "',...
4
by: kidalex | last post by:
I'm a programmer but I have never programmed in Action Script or very advanced JavaScript. So, please be gentle :-) I'm looking to develop a simple ( or is it? ) system with 2 parts to it: ...
3
daJunkCollector
by: daJunkCollector | last post by:
I have the html/javascript posted below, I imagine the fix to my problem is something simple that I am overlooking. My script is a little bit of html and javascript, and there is an embedded flash...
13
by: mudgen | last post by:
I have a webpage that has two flash animations running. I also have a javascript script running that rotates 3 images and fades them in and out. To do the fading and rotating in javascript I am...
0
forsiam
by: forsiam | last post by:
I've seen the example in http://www.thescripts.com/forum/thread694359.html but I still have problem about javascript. (I use SWFObject) My Action Script import...
1
by: critchey1 | last post by:
Hey everyone, i've been playing around with trying to get some scripts to work with detecting whether flash player is installed on your computer or not. I found a flash detection kit on the adobe...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.