You have picked something that is not easy to do. You will have to
write some sort of HTML parser class that will look through all of the
HTML for the <a> tags and grab the href attribute as well as the id
attribute. Then you can add an eventListener for them.

One hurdle (amongst many) is going to be with links that perform
javascript functions. You will have to figure a way to grab these and
perform the javascript.

You should probably dig into the XML classes. Of course, a lot of HTML
pages are not valid XML.

Sorry I don't have any magic powder to help you. I really believe it
is going to take a LOT longer than 5 days for this to be implemented.


--- In [email protected], "shiv_indian" <shiv_ind...@...> wrote:
>
> Hi Valdhor,
> 
>   Thanks for showing interest to respond my queries. But Actually 
> whats the problem in our applicaion we are giving user to browse the 
> any url. Suppose user enters the "http://www.mail.yahoo.com"; and 
> logged in the page. There users suppose got one mail with some 
> attachment. User wants to download that attachment and wants to save 
> that on external drive like flash player or user wants to download 
> Flex Builder... 
> 
>    Using <mx:HTML> tag I am able to show the concerned page but 
> whats the problem I found is using <mx:HTML> tag , unable to 
> download attachments... 
> 
>    We can catch the html dom events if we know the the id the of 
> anchor in that html... yahoo,google etc are completely not in our 
> control .. how to capture the events on that pages...
> 
>    Really you will save me lot guide / suggest me ... For past 5 
> days I am working on this issue... still failed to find the 
> solution.... I put this query almost all forums .... nobody is 
> responding except in this forum.....
> 
> 
> Thanks & Regards,
> Siva Kumar
> 
> --- In [email protected], "valdhor" <valdhorlists@> 
> wrote:
> >
> > You would need to attach an event listener to the link tag. See the
> > section "Handling DOM events with ActionScript" in the "Handling
> > HTML-related events" help page at
> > http://livedocs.adobe.com/flex/3/html/index.html
> > 
> > 
> > --- In [email protected], "shiv_indian" <shiv_indian@> 
> wrote:
> > >
> > > Hi Valdhor,
> > > 
> > >     Actually I am unable to capture the link from the HTML 
> content. 
> > > Because whatever the content displayed in <mx:HTML> tag, we dont 
> > > have any control over that code. Is it possible to capture 
> thing..
> > > 
> > > Thanks & Regards,
> > > Siva Kumar
> > > 
> > > --- In [email protected], "valdhor" <valdhorlists@> 
> > > wrote:
> > > >
> > > > Have you looked at flash.net.filereference?
> > > > 
> > > > 
> > > 
> http://livedocs.adobe.com/flex/3/langref/flash/net/FileReference.html
> > > > 
> > > > 
> > > > --- In [email protected], "shiv_indian" 
> <shiv_indian@> 
> > > wrote:
> > > > >
> > > > > Hi Alex,
> > > > > 
> > > > >    Sorry to disturbing you again. I tried to use google flex 
> > > iframe 
> > > > > to resolve the download file/attachement issue. The google 
> flex 
> > > > > iframe working fine as web application and google iframe 
> using 
> > > > > ExternalInterface.If I use google iframe in adobe AIR its 
> giving 
> > > > > error as AIR is not supporting ExternalInterface.
> > > > >    
> > > > >    I gone through the <mx:HTML> API, failed to find the 
> > > solution :(
> > > > > 
> > > > > Thanks & Regards,
> > > > > Siva Kumar
> > > > > 
> > > > > --- In [email protected], Alex Harui <aharui@> 
> wrote:
> > > > > >
> > > > > > I still don't understand how ExternalINterface got 
> involved.  
> > > I 
> > > > > haven't used mx:HTML much, but I would expect you can view 
> most 
> > > > > sites that allow downloading and download something.
> > > > > > 
> > > > > > mx:HTML basically wraps the flash.html package.  Read the 
> doc 
> > > on 
> > > > > the those classes.
> > > > > > 
> > > > > > From: [email protected] 
> > > > > [mailto:[email protected]] On Behalf Of shiv_indian
> > > > > > Sent: Tuesday, December 23, 2008 8:04 PM
> > > > > > To: [email protected]
> > > > > > Subject: [flexcoders] Re: Embedding HTML page into Flex 
> using 
> > > > > Adobe AIR
> > > > > > 
> > > > > > 
> > > > > > Hi Alex,
> > > > > > 
> > > > > > This is one of requirement from our customer. Is there any
> > > > > > alternative for ExternalInterface or is there any feature 
> in
> > > > > > <mx:HTML> tag to download files / attachments.
> > > > > > 
> > > > > > Thanks & Regards,
> > > > > > Siva Kumar
> > > > > > 
> > > > > > --- In [email protected]<mailto:flexcoders%
> > > > > 40yahoogroups.com>, Alex Harui <aharui@> wrote:
> > > > > > >
> > > > > > > If the embedded HTML contains Javascript that is trying 
> to 
> > > use
> > > > > > ExternalInterface, that won't work, but I don't understand 
> why 
> > > you
> > > > > > would need that to download a file.
> > > > > > >
> > > > > > > From: [email protected]<mailto:flexcoders%
> > > > > 40yahoogroups.com>
> > > > > > [mailto:[email protected]<mailto:flexcoders%
> > > > > 40yahoogroups.com>] On Behalf Of shiv_indian
> > > > > > > Sent: Tuesday, December 23, 2008 2:35 AM
> > > > > > > To: [email protected]<mailto:flexcoders%
> > > > > 40yahoogroups.com>
> > > > > > > Subject: [flexcoders] Embedding HTML page into Flex 
> using 
> > > Adobe 
> > > > > AIR
> > > > > > >
> > > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > This is Siva Kumar. Need help in embedding an HTML in 
> Flex . 
> > > We
> > > > > > > are using Adobe Air using Flex. To embed an HTML in Flex 
> we 
> > > used
> > > > > > > <mx:HTML> tag. Its working fine but whts the problem is 
> its 
> > > not
> > > > > > > allowing to download files / attachements. To download 
> > > > > attachments
> > > > > > > do I need to change any files in flex. I tried to use 
> google 
> > > flex
> > > > > > > iframes to resolve this issue. I am able to download
> > > > > > > files/attachments if I open application as web / 
> standalone. 
> > > If I
> > > > > > > try to open same application using adobe air its giving 
> > > error 
> > > > > like
> > > > > > >
> > > > > > > " ExternalInterface is not available in this container. 
> > > Internet
> > > > > > > Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or 
> > > other
> > > > > > > browsers that support NPRuntime are required." .
> > > > > > >
> > > > > > > Later wht I found is at present ExternalInterface is not 
> > > > > supporting
> > > > > > > adobe air.
> > > > > > >
> > > > > > > Could anybody help me to resolve this issue. If anybody 
> has 
> > > any
> > > > > > > idea on how to overcome this issue. Please suggest me to 
> > > resolve
> > > > > > > this issue. Thanks in Advance.
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


Reply via email to