calling javascript from flash

rimjhim

New Member
Joined
Aug 29, 2005
Messages
36
Reaction score
0
can anyone help me in calling javascript from flash movie in a web page...i mean the javascript is given in the web page and flash movie is also in that same web page. when the user clicks on the flash button it will execute the javascript from the same page. Plz help as soon as possible.
 
You can use getURL("javascript:message('what\'s up, dude? I am doing busy on My Crib project.');", "_blank") in actionscript (flash code)..You can build function in javascript script...(HTML SOURCE)

<script language="javascript">
function message(msg)
{
alert(msg);
}
</script>
 
AOFrozenCity said:
You can use getURL("javascript:message('what\'s up, dude? I am doing busy on My Crib project.');", "_blank") in actionscript (flash code)..You can build function in javascript script...(HTML SOURCE)

<script language="javascript">
function message(msg)
{
alert(msg);
}
</script>

thanks a lot for replying...
I have tried using what u have suggested but i don't know why is not happening...when i click on the flash button it shows the message --"macromedia flash player has stoped a potentially unsafe operation"...can u plz suggest how can solve the problem...
 
I think it's your security settings. You might want to change them.
 
Back
Top