I use this regularly. Try dropping the second parameter in the getURL(), the ",void(0)"
Also test a simpler function, one that takes no args. Are there any script errors shown in the lower left corner of the browser? Create an error to make sure you are actually calling the wrapper you think you are. Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Stephane De Jonckheere Sent: Monday, October 10, 2005 3:03 AM To: '[email protected]' Subject: RE: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex I'm using IE 6.0SP1 and FireFox 1.06. I don't understand why it's not working, all the samples I see on the Internet are like my program. -----Original Message----- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: vendredi, 7. octobre 2005 20:39 To: [email protected] Subject: Re: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex On 10/7/05, djok_fb <[EMAIL PROTECTED]> wrote: > 1-Embed the mxml file in a HTML page: > <html> > <head> > <script type="javascript"> > function launchSpellChecker(someText) { > alert(someText); > } > </script> > </head> > <body> [snip] > 2- Write a AS function using getURL: > function doSpellCheck( textToCheck ) { > getURL("javascript:launchSpellChecker('" + textToCheck + > "');void(0);"); > } > 3- Link the function to a button > > The AS function is called but IE tells me "Object not found". > I tried with Firefox (w/ JavaScript debugger) and it tells me: > "launchSpellChecker function not found". I don't see anything obviously wrong. What version of IE are you using? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ************************************************************************ *********** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] ************************************************************************ *********** -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

