yup just like that

On Mon, Sep 28, 2009 at 2:17 PM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

> Ok, thanks, so it should work this way right?
>
> Gustavi
>
> On Sep 28, 2009, at 12:53 PM, Gregory Boland wrote:
>
>  thats essentially it.
>>
>> Syntax is slightly different....
>>
>> if (ExternalInterface.available){
>> ExternalInterface.call("openMyWindow");}
>> }
>>
>> make sure to import flash.external.ExternalInterface;
>>
>> and when u tell it what the name of the method in the javascript is leave
>> off the ()
>>
>>
>>
>> On Mon, Sep 28, 2009 at 12:18 PM, Gustavo Duenas <
>> gdue...@leftandrightsolutions.com> wrote:
>>
>>  Hi I have a function in javascript on the html
>>>
>>> like:
>>>
>>> <script type="javascript">
>>>
>>> function openMyWindow(){
>>> document.getElementByID(myWindow).setStyle(etc)
>>> }
>>>
>>> and I would like to use it from falsh something like this:
>>>
>>> mybutton.addEventlistener(MouseEvent.CLICK, contactJavascript);
>>>
>>> function contactJavascript(e:MouseEvent):void{
>>>
>>> if (externalInterface.available){
>>> externalInterface.call("openMyWindow()");
>>> }
>>>
>>> let me know if this could work at all.
>>> I'm trying to find a google about it, but all seems so obscure
>>> any help appreciated
>>>
>>> _______________________________________________
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>>  _______________________________________________
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to