Hi  

 

I think the problem was with the flash version.   (even the get url was not 
working).

 

I was using flash 8 to develop the flash control and the javascript call did 
work from flash.

 

All that I did was, save the flash document as "Flash 20004 MX" and everything 
started working.

 

Thanks

Prasanna

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, September 19, 2007 7:56 PM
To: Open Source Flash Mailing List
Subject: Re: [osflash] From Flash to Javascript...

 


Hi again, 

Perhaps you're compiling the sample for  fp8, and the javascript call it's 
being made with getURL, that *maybe* 
it's not working due to local security reasons. It works ok when it's being 
compiled for fp7. 


Hope this can really help you. 


África Belén Romero Fernández
Fynet Solutions
981 634  067
[EMAIL PROTECTED]
http://www.fynet.net 



 

"Nagasamudram, Prasanna Kumar" <[EMAIL PROTECTED]> 
Enviado por: [EMAIL PROTECTED] 

19/09/2007 14:14 
Por favor, responda a Open Source Flash Mailing List 

        
        Para:        "Open Source Flash Mailing List" <[email protected]> 
        cc:         
        Asunto:        Re: [osflash] From Flash to Javascript...




Hi Nyls

Yes the trace says [object Object]

ib1.onRelease=function()
{
                                 trace(jsProxy);
                                 jsProxy.call ("updateStatus","From flash");
}



Thanks
Prasanna

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niels
Sent: Wednesday, September 19, 2007 5:33 PM
To: 'Open Source Flash Mailing List'
Subject: Re: [osflash] From Flash to Javascript...


When you tracé(jsProxy) in de onRelease does it say object or ?? 

ib1.onRelease=function()
{
                                 trace(jsProxy);
                                 jsProxy.call ("updateStatus","From flash");
}

It could be a scope thing because you call jsProxy from the scope of ib1 .. 

So if that is the case use a delegate.

Hope that helps ,

Nyls





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Nagasamudram, Prasanna Kumar
Sent: woensdag 19 september 2007 13:28
To: Open Source Flash Mailing List
Subject: Re: [osflash] From Flash to Javascript...

The following is the sample code

HTML
====
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>

<title>FlashSar</title>

<script type="text/javascript" src="JavaScriptFlashGateway.js"></script>

<script>

function updateStatus(message) {
                window.status = message;

}

</script>


</head>
<body bgcolor="#ffffff">
<div id="flash">
<script type="text/javascript">

   var uid = new Date().getTime();
   flashProxy = new FlashProxy(uid, 'JavaScriptFlashGateway.swf');
   var tag = new FlashTag('t2.swf', '600', '300'); 
   tag.setFlashvars('lcId='+uid);
   tag.write(document);
</script>
</div>

</body>
</html>


Action script
=============

// Set up Flash Integration
import com.macromedia.javascript.JavaScriptProxy;
var jsProxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);

ib1.onRelease=function()
{
                                 trace("Hello");
                                 jsProxy.call ("updateStatus","From flash");
}




Im trying to call a javascript function on the click on a flash button.

But I don't see the javascript function to be called.

Thanks
Prasanna


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Nagasamudram, Prasanna Kumar
Sent: Wednesday, September 19, 2007 4:27 PM
To: Open Source Flash Mailing List
Subject: [osflash] From Flash to Javascript...
Hi All

I'm using Java script/Flash integration kit to communicate b/w
Javascript and flash using the
flashProxy.call("someflashmethod","params");

But 

If I do the same thing from flash to javascript I see that the
javascript function is not being called.

proxy.call("somejavascriptmethod","params");

Can you please give me some pointers ?

Thanks
Prasanna

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to