Download and Display HTML

I'm new to flash, but am a long time Java developer.
I want to download some HTML from a URL and display it in a
flash object.
Can someone give me a step by step walk-thru on how to do
this using Adobe's Flash IDE? I have CS3.
Here is some pseudo code:
String html = getContents("
http://google.com");
someFlashObject.setContents(html);
If you want to IM me, I would really appreciate it.
Thanks!

Paul,
You can either
1. create a virtual directory in the web server and edit your html file accordingly so the files will be accessed correctly
OR
2. just upload the excel file into the database and let people download it into excel themselves(see the file upload How-To) -- IMHO the much better and more efficient option.
Greg

Similar Messages

  • Firefox Hangs Downloading and Displaying PDF Files

    I've had a problem with Firefox for several years where it hangs in the middle of the file when downloading and displaying a PDF file.  Typically it downloads a few hundred kilobytes and then stalls.
    Recently I upgraded from Acrobat 8.1 to Acrobat 9.1.  The problem remains.  The problem may not occur on all PDF files.
    I suspect the problem is related to the Plug-in, as I just installed the Foxit PDF Reader and Firefox now handles the PDF file without problem.
    Any thoughts on how to solve this problem?
    Thanks,  Kent

    Thanks for the replies. I don't think I was clear enough with my question.
    What I want to be able to do is to click on a PDF file in my Firefox browser and be able to save it as an Adobe PDF file, not a Preview PDF file, in any folder on my computer, rather than just the specified default location for downloads. This way I can save, for example, phone bills in the phone bills folder and bank statements in the bank statements folder without having to save them to the desktop, "Get Info" on each, and change the "Open with:" box from Preview to Adobe Reader.
    Fortunately, thanks to Michael's post, I found an add-on from Firefox that allows me to do just that: https://addons.mozilla.org/en-US/firefox/addon/636
    Thanks for your help. Now, within my Firefox browser, I can choose whether to view or download PDF files, always in Adobe rather than Preview, and when I save them I get the option to choose the location each and every time.
    MacBook Mac OS X (10.4.9)
    MacBook Mac OS X (10.4.9)

  • How do I download and saves html files off my website to store and save using Dreamweaver CS3?

    How do I download and saves html files off my website to store and save using Dreamweaver CS3?
    I need to save all files from web and store onto a drive to reupload to a new domain name.  I use Dreamweaver CS3.

    First define your Local Site folder in Dreamweaver.  DW will use this folder to store your site files.
    Go to Manage Sites > New or Edit site.  See screenshots.
    Servers:  Enter your remote server's log-in details.  When complete, hit TEST to see if the connection is working.  If all is well, hit SAVE.
    From the Files Panel (F8), click on Remote Server to show the files that are currently there.  Click the green Down Arrow to GET files from remote server to your local site folder.
    Nancy O.

  • I am using IFrame and displayed Html page

    Hi Friends
                        I am using IFrame and displayed Html page in flex4
                        In this page open to Firefox But not IE please help me.
                          Thanks
                           V.ChandraSekhar

    You have deleted your page, but you have not deleted your page?
    Which is it?
    If you never saved it it is gone. If you saved it in Lion (OSX 10.7) with Pages 09 v4.1, there should be versions available when you mouse overv the document name at the top of the window.
    Peter

  • Downloading and displaying xml file

    Hai,
    Can anybody help me??
    My problem is :
    I want to create and display an XML file once i run my program in background.My display would be in internet explorer.
    Note that i could not use GUI_DOWNLOAD, because my execution is in background.I am looking for the one to replace GUI_DOWNLOAD.
    I used OPEN DATASET statement, but the file, which is opening is not in XML format. it is displaying only in SAP. I want the display in explorer.
    My requirement is urgent...
    Hope u will respond.
    Regs
    Gransen

    Hi Buddy...try with class <b>CL_GUI_FRONTEND_SERVICES</b>. Goto SE24 and type the class mentioned above. In this class you can find a method called <b>GUI_DOWNLOAD</b>.
    If it is not working try
    <b>CALL TRANSFORMATION</b>
    call transformation (`ID`) source (your internal table) result XML xml_string.
    Kindly reward points if you find it useful.
    Regards,
    Satyesh T

  • Why can't adobe reader download and display my files?

    i downloaded adobe reader and when I try to display something I get an error message:
    "Adobe reader is unable to show documents in this browser configuration."
    I was able to display these documents with preview..
    and I am able to display them with adobe when using my safari browser.
    Help!

    (for the record)
    This is a known issue with the Adobe Reader plugin on Mac OS:
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=811085 Bug 811085] - Can't use Adobe Reader for PDF files
    Read the above bug for details (please don't comment in the bug report).
    To work around this,
    #disable the Adobe Reader plugin in the Firefox Tools -> Add-ons -> Plugins list
    #choose another action for '''Portable Document Format (PDF)''' content types in the Firefox Preferences -> Applications list, such as "Preview in Firefox" to use the built-in PDF viewer, "Preview" application or the Adobe Reader application itself
    Related articles:
    *[[PDF files are blank and can't be downloaded on Mac]]
    *[[How to disable the built-in PDF viewer and use another viewer]]
    *[[View PDF files in Firefox without downloading them]]

  • When saving an image, why does Firefox download it again, although it is already downloaded and displayed?

    If you right click an image on a website and choose "save image", it will be downloaded again. It is already in the browser cache though. There are addons which let you pick it from the cache.
    Why doesn't Firefox just save the cached image and instead downloads it again? There seems to be no obvious rationale to do it like that (and lots to use the cached version).

    Thanks you, but that's not an answer to my question.
    I'm not looking for workarounds. I would like to know (preferably from someone at Mozilla) why the browser works this way and if they are going to change it.

  • How to download and display an image.

    Hi,
        I am using BSP application  to upload an image to table. It is successfully uploaded.
        It is stored as string format.
        Now,   How can I retrieve and view it in the browser ?
        Please answer for my question ..
    Regards,
    Rajesh
    Moderator Message: You will get replies if you ask the question in the right forum
    Edited by: kishan P on Sep 16, 2010 10:39 AM

    hello,
    check out this link:
    http://www.corej2me.com/DeveloperResources/sourcecode/networking/downloadPng/index.shtml
    hope it helps you out :)
    cheers :)
    cleoppatra

  • HT1926 when i try to download itunes 11 my computer stops the download and displays the message could not access network location #user profile%\start menu\programs\startup\

    when i try to download itunes 11.1 or any updates i get the message could not access network location #user profile%\start menu\programs\startup\. any help

    Let's try the fixit from the following Microsoft document with that one:
    Fix problems with programs that can't be installed or uninstalled

  • Path and file name problem when I want to download files from html

    Hi all,
    I want to write a small program to allow users download files from jsp file
    but the following files don't work .
    <%@ page language="java" import="java.net.*,java.io.*"%>
    <%@ page import ="java.util.*"%>
    <%
    try
    String SContent = request.getParameter("click");
    String SDocName = "temp.doc"; //  out put file File Name
    ServletOutputStream stream= response.getOutputStream(); // Getting ServletOutputStream
    response.setContentType("application/msword"); // Setting content type
    response.setHeader("Content-disposition","attachment;filename=\"" +SDocName+"\""); // To pop dialog box
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(SContent));
    int c;
    while ((c = in.read()) != -1){
               stream.write(c);
    in.close();
    stream.flush();
    catch(final IOException e)
    System.out.println ( "IOException." );
    catch(Exception e1)
    System.out.println ( "Exception." );
    %>I am so confuse, what is the path and file name I sould give ? for example my click should equal to http://******/Test/display.jsp?click=00-1

    Hi all,
    I got error at
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
         org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
    if I want ot download file from html file.
    String SContent = request.getParameter("click");
    if I hard code like follow it work fine.
    String SContent ="C:/Project Coding.doc";
    what mistake I make.
    Thank you!

  • Fetch XML from Content server to Portlet and display as HTML

    Hi,
    I want to fetch the XML from the content server and display that XML in the Weblogic Portlet as HTML.
    The main reason is that data will be contributed by the users in UCM and then I had to get that data from content server and display in portlet
    Please Help........
    Thanks,
    Vinod

    Vinod:
    Probably what you're looking for is to bring the content over using the UCM SPI adapter for WLP's VCR:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/intro.html]
    And then to display the content using a custom template using Content Presenter:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/cm/displaytemplatesCM.html]
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/development.html]
    When you say you want to fetch xml, is that because it's a contributor data file? You can either read the property values directly from the VCR, or use the info you get from the node (such as dDocName) to then use a UCM/WCM web service to retrieve formatted content and put it in an iframe. There are a lot of ways to go in formatting the data.
    You can even add edit capabilities to your Presenter template by calling the 'edit data file' web service of WCM.

  • Window 8.1 Chinese character cannot display properly in a game even though I have downloaded and install all chinese language packs

    Hi,
    The operation system for my computer is Window 8.1. I am currently trying to install a chinese game. Even though I have downloaded and install all the chinese language pack, I have even set the regional language locale to chinese (similified / traditional),
    the chinese characters will not display properly in the game. Some people told me i need to set the locale to Chinese PRC, but I am not sure where to download this PRC language pack for window 8.1 (as I only have chinese simplified and chinese traditional).
    I would greatly appreciate if someone can give me a hand in solving this problem. Thank you for your help in advance. 

    Hi,
    The operation system for my computer is Window 8.1. I am currently trying to install a chinese game. Even though I have downloaded and install all the chinese language pack, I have even set the regional language locale to chinese (similified / traditional),
    the chinese characters will not display properly in the game. Some people told me i need to set the locale to Chinese PRC, but I am not sure where to download this PRC language pack for window 8.1 (as I only have chinese simplified and chinese traditional).
    I would greatly appreciate if someone can give me a hand in solving this problem. Thank you for your help in advance. 
    Hi,
    Please open Region, under administrative -> Language for non-Unicode programs: choose Chinese.
    Kate Li
    TechNet Community Support

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • I am trying to delete duplicate content in my iTunes library. I have stopped the download and I can see them on VIEW Displaying Duplicates, but cannot delete them with the Delete button. Can anyone assist?

    I am trying to delete duplicate content in my iTunes library. I have stopped the download and I can see them on VIEW>Displaying Duplicates, but cannot delete them with the Delete button. Can anyone assist?

    If you've paused the download (they are partially greyed out on the duplicates screen ?) then you will need to delete them from download window, you can't (as far as I know) delete partially downloaded items from that screen. When you have items downloading, or downloads that are paused, you should have a downward pointing arrow at the top right of the iTunes screen
    If you click that arrow you should get a popup window with the items that are downloading/paused - and you should be able to select and delete them (or resume their download) from there.

Maybe you are looking for