Re: [flexcoders] Calling JS from ActionScript and vice versa

2006-03-01 Thread Manish Jethani
On 3/1/06, Mike Potter [EMAIL PROTECTED] wrote: I'm going through the example here, http://labs.macromedia.com/wiki/index.php/ActionScript_3:resources:FAQ#How_can_I_call_a_JavaScript_function_from_ActionScript.3F on how to call a JS function from ActionScript. I have the following MXML: ?xml

RE: [flexcoders] Calling JS from ActionScript and vice versa

2006-03-01 Thread Matt Horn
Not sure why a new class is being declared inside a script block... You can try the examples in this section of the Developing Flex Applications book: Accessing JavaScript functions from Flex http://livedocs.macromedia.com/flex/20beta1/docs/1303.html Hth, Matt Horn Flex docs

RE: [flexcoders] Calling JS from ActionScript and vice versa

2006-03-01 Thread Jonathan Miranda
-copy version. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Horn Sent: Wednesday, March 01, 2006 8:50 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Calling JS from ActionScript and vice versa Not sure why a new class is being

Re: [flexcoders] Calling JS from ActionScript and vice versa

2006-03-01 Thread Manish Jethani
On 3/1/06, Jonathan Miranda [EMAIL PROTECTED] wrote: Just a random question to extend this, is there functionality for javascript to call Flex functions? Yes: ExternalInterface.addCallback(fooFunc); // from JS document.getElementById(myFlexApp).fooFunc(); You can also pass parameters,

RE: [flexcoders] Calling JS from ActionScript and vice versa

2006-03-01 Thread Matt Horn
, March 01, 2006 11:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Calling JS from ActionScript and vice versa On 3/1/06, Jonathan Miranda [EMAIL PROTECTED] wrote: Just a random question to extend this, is there functionality for javascript to call Flex functions? Yes

RE: [flexcoders] Calling JS from ActionScript and vice versa

2006-03-01 Thread Jonathan Miranda
: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Horn Sent: Wednesday, March 01, 2006 9:23 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Calling JS from ActionScript and vice versa Also documented in that same chapter: Accessing Flex from