6 Replies Last post: Oct 12, 2006 6:42 PM by Vladimir Ikryanov  
Jesper Sahner Pedersen   102 posts since
Apr 24, 2006
Currently Being Moderated

Sep 7, 2006 1:46 PM

JExplorer and Flash

Hi!

 

I a similar way that JExplorer uses DOM to parse XML/HMTL I wonder if Flash-components can be "parsed" as well?

 

As an example say that a webpage has a Flash stock-ticker. I then want to retrieve the stock prices shown, when the ticker is updated.

 

If this is not possible I would like to know:

- are there any plans to integrate Flash into JExplorer like DOM? (is it possible??)

- are there any workarounds like replacing the Flash player with a Java emulator thereby providing a kind of "backdoor".

 

Regards,

Jesper

Vladimir Ikryanov TeamDev Ltd. 404 posts since
Apr 24, 2006
Currently Being Moderated
2. Sep 11, 2006 6:24 PM in response to: Jesper Sahner Pedersen
Re: Re: JExplorer and Flash

Hi Jesper,

 

Please find the attached examples that demonstrates how you can get Flash-variables values using JExplorer.

 

Vladimir

 

Attachments:
Vladimir Ikryanov TeamDev Ltd. 404 posts since
Apr 24, 2006
Currently Being Moderated
4. Oct 11, 2006 1:53 PM in response to: Jesper Sahner Pedersen
Re: Re: Re: Re: JExplorer and Flash

Hi Jesper,

 

You can try to get IDispatch instance of the Flash element in the HTML Document and create IShockwaveFlash object using this instance whereupon you can to use the IShockwaveFlash object as in the FlashIntegrationSample example. For example:

 


IHTMLDocument3 documentPeer = new IHTMLDocument3Impl((IHTMLDocument2) document.getDocumentPeer());
        IHTMLElementCollection elements = documentPeer.getElementsByTagName(new BStr("OBJECT"));
        for (int i = 0; i < elements.invokeGetLength().getValue(); i++)
        {
            IDispatch flash = elements.item(new Variant(i), new Variant(i));
            IShockwaveFlash shockwaveFlash = new IShockwaveFlashImpl(flash);
        }

 

Vladimir

Vladimir Ikryanov TeamDev Ltd. 404 posts since
Apr 24, 2006
Currently Being Moderated
6. Oct 12, 2006 6:42 PM in response to: Jesper Sahner Pedersen
Re: Re: Re: Re: JExplorer and Flash

Hi Jesper,

 

Thank you for your suggestion. We will create the examples combining JExplorer and ComfyJ.

 

Vladimir

More Like This

  • Retrieving data ...