Abdul,
Your component works fine (as expected) in Safari and FireFox for
MacOSX.
In my component, I use ExternalInterface.call( "eval", jscode ) to
inject the javascript code into the wrapper and it has problems when
in the jsocde variable there are \n, \r and so on (i have had to
replace them)
However, your component does not have these problems and I have found
that navigateToURL( "javascript:eval('var a;\n\rvar b;')" ) behave
different than ExernalInterface.call( "eval", "'var a;\n\rvar b;" );
Weird, isn't. Should the behave identically?
--- In [email protected], "Abdul Qabiz" <[EMAIL PROTECTED]>
wrote:
>
>
http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_compone
n.php
>
> You can use this component to write JavaScript code within MXML
document,
> when application is initialized all JavaScript code would be
exported to
> container HTML document's context.
>
> I just wanted to do, infact had filed an ECR so that compiler team
can do
> it. But it was easy to do with ActionScript. I have only tested on
> Firefox-windows and it works.
>
> Let me know, if you like it :)
>
> -abdul
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Something is new at Yahoo! Groups. Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/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/