Load External HTML/Website in Flash (urgent)

Hi all,
I've found the codes to load the external html and text in
flash at run time, but I when I tested most of the html sites
cannot show very well at all such as videos and swf advanced tag in
html.So is there any way to load external website into flash at
runtime?
Thanks

you can display it in a popup window or in the same window or in an iframe in the same html page that displays your swf.
When you say this, do you mean I can create an iFrame on the same html page that displays my swf, and have it be dynamically populated by what the user clicks on the swf?
yes, exactly.
use getULR() (as2) or navigateToURL() (as3) with the 1st parameter being the html page you want to display and the 2nd parameter being the iframe "name" property.

Similar Messages

  • External html page into flash

    how to load external html page into flash? (AS3)

    You cannot load an html page into Flash, though you can try to load the html code that it contains into a textfield.  Flash supports only a very limited number of html tags, so it is highly likely you won't get what you are after if you are reading an html file that hasn't been edited for Flash specifically.  Just look up the TextField.htmlText property in the AS3 help documents and it lists the html tags that are supported. 
    For AS3 you need to look into the URLLoader class as far as loadng an extrernal text file goes.

  • How we can load external html or php file in flash?

    Hi there,
    I want to show my php's file desing in flash..
    i m getting data through database in php file and it has
    table... so I want to show that data in my flash movie...
    Please help me ..
    How can I load external html or php file in flash?
    If any other way is there then plz tell me.....
    thanx

    No.  Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields).  So to display an html/php file is not possible.

  • Embed external HTML page in Flash

    Does anybody know how to embed an external HTML page into Flash? I am envisioning something like an iFrame, but can't really figure how this would work. I've attempted using a scrollpane, but it didn't work at all.
    Any suggestions?

    you can display it in a popup window or in the same window or in an iframe in the same html page that displays your swf.
    When you say this, do you mean I can create an iFrame on the same html page that displays my swf, and have it be dynamically populated by what the user clicks on the swf?
    yes, exactly.
    use getULR() (as2) or navigateToURL() (as3) with the 1st parameter being the html page you want to display and the 2nd parameter being the iframe "name" property.

  • Load external html into a Layer?

    I've created a framework of a kids' site using CSS layers to
    overlap a Skyline image overtop of another 2 layers, one showing a
    BG image of the sky, the other showing the scrolling content.
    For another section of the site, I would like to load an
    external HTML into the layer behind the skyline. Specifically, I
    would like a Blog to load and scroll behind the skyline. Anyone
    know if it is possible to load an external html page into a layer,
    and if so, how does one go about it?
    The (unfinished) page in question can be seen here:
    http://www.marcsobservatory.com/mo_mainpage6.html
    The stylesheet can be found here:
    http://www.marcsobservatory.com/mo_styles2.css
    Thanks!

    is the first frame of your loaded swf's empty?  if yes, then no problem using _levels.
    if not, do you mind a momentary flash when your next swf loads and before its _alpha is assigned 0 and then faded-in?  if you don't mind, then no problem using _levels.
    if you do mind that momentary flash, then using _levels will be more complex than using empty target movieclips.  is there some good reason to use _levels instead of target movieclips?

  • Problem in loading external HTML content using SpryHTMLDataSet in Firefox

    I have a very simple placement of the contents of an HTML DIV within a subsidiary HTML file (statespecificassets.html) into a main HTML document, using SpryHTMLDataSet in Dreamweaver CS4.
    The relevant bits of code in the main HTML doc:
    In the header:
    <script src="../../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="../../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.HTMLDataSet("../../statespecificassets.html", "NN_Data_s3a");
    ds1.setColumnType("column0", "html");
    //-->
    </script>
    And at the point of inclusion of the external DIV:
    <div spry:region="ds1" class="StackedContainers">
             <div spry:repeat="ds1" class="RowContainer">
                <div class="RowColumn" style="background-color: #D7DF21;">{column0}</div>
             </div>
          </div>
    The problem: This works fine in Safari 4.0 on a Mac, and IE7 on a PC. It doesn't work in Firefox 3.0.11 (latest version) on Mac or PC: In firefox the reference content simply doesn't load. The only way I can get it to work in Firefox is if I place the main HTML doc and its subsidiary reference HTML file in exactly the same directory/ on the same level, and adjust the script reference accordingly ( var ds1 = new Spry.Data.HTMLDataSet("statespecificassets.html", "NN_Data_s3a"); ) ...But I can't/ don't want to alter my directory structure, because multiple files in other directories will need to use the reference file.
    Is there some other way of making it all-browser compatible -- possibly by adjusting a relevant bit of code in SpryHTMLDataSet.js in the Spry Assets? .. I've attached the SpryHTMLDataSet.js file for reference.
    Thank you to any kind soul who might have the nous to solve this.

    This is the latest version of SpryHTMLDataSet: http://labs.adobe.com/technologies/spry/preview/SpryHTMLDataSet.js
    Check out if works for, if not, please provide us with a online url.

  • Loading external HTML with global context attributes

    I am trying to use Google Finance to load a stock quote in an HTML tile.
    In the Mosaic 9.5 samples the tile uri is http://www.google.com/finance?client=ob&q=${application.symbol}. This does not  load the iframe in my CAF project.
    In fact, I tried configuring my .cxml as
    http://www.google.com/finance?client=ob&q=ADBE
    http://www.google.com/finance?q=ADBE
    http://www.google.com/finance
    but none of these uri’s loads the iframe. The only uri that does load successfully is
    http://www.google.com
    What am I missing?
    Steve

    The Brokerage example in the Concepts sample package for ES3 now
    uses a different finance website due to a change made to the Google finance site.

  • Load html document inside flash

    I have been informed that it is possible to load an html
    document inside flash, that you use an HTML tag, but I cannot find
    it in the scripts, can anyone show an example and explain how to
    make it work or if there is a tutorial for creating this inside of
    flash.
    Thanks

    Dear All
    I do not know why they call themselves professionals in flash and html, while they can not help us with a simple webpage inside a flash movie.
    No offense
    I was trying the whole week to do that by checking if any body post any tip over the internet, but as usual the profs said that you can only make it in test and only text and bla bla bla.....
    Let me tell you that I have managed to open a whole webpage in my flash website.
    I have this page that is html and have so many codes and things that I do not know, and in my flash website I have a menu which one of its buttons must open that html file, and as every body knows that you will loose the whole work if you poped up another window from your flash website.
    So Cheer up I have managed to open my html page in my flash movie website.
    You can check it up following this link www.compuhometech.com/html_inside_flash/index.html
    If you like to have it please mail me : [email protected]
    Thank you

  • Implementing osmf HTMLMediaContainer into HTML page from Flash Proffessional

    Integrating communication between osmf and javascript via HTMLMediaContainer using Flash Proffessional
    Quite new to this
    Hello may someone please explain how this is done exactly, Not quite understanting the samples and examples, I get the  onHTMLMediaContainerConstructed function but after that, Im quite lost on the javascript inside the HTML body tags!! is this body tag javascript needed if im using flash professional...please help
    Thanks evryone

    Hi GeekTumiso,
    i'm searching for documentation too ... i want to understand if i can load external html element to make an html player skin, but there is not documentation or good example :-(
    any suggestions?

  • Converting HTML form to Flash for Paypal!

    Hello! Im currently in the process of converting my HTML website to Flash. On my website, i am using Paypal buttons (add to cart) so now i need to convert my 3 buttons/form to Flash. Here is my website: http://www.tubesjujubes.com/En/buyonline.html
    I found this tutorial to help me: http://www.actionscript.org/resource...ash/Page1.html
    but something is still wrong! Everytime i click on the button, it brings me to the log in page of Paypal instead of 'your cart' page. See HTML site for what i mean.
    Ive only tried the tutorial on one button so far since i wanted it to work before i applied it to the others. This is the HTML code on my website for my first button:
    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick" />
    <input type="hidden" name="hosted_button_id" value="1699962" />
    <input type="hidden" name="on0" value="Choose your membership" />Choose your membership:
    <select name="os0">
    <option value="1 kid + 1 parent">1 kid + 1 parent $99.00
    </option><option value="2 kids + 2 parents">2 kids + 2 parents $178.00
    </option></select>
    <br /><br />
    <input type="hidden" name="currency_code" value="CAD" />
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="" />
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
    </form>
    Now this is how i created my form/button in flash:
    Every component and input box are on the same layer.
    The actions are on a separate action layer.
    I create a ComboBox for my choices with an instance name of 'os0'. I imported the button img, converted it to a button and called it 'submit'. For the action of the button, i used: on (release) {
    getURL ("https://www.paypal.com/cgi-bin/webscr", "POST");
    Then i created 4 hidden input box, that i placed outside of the scene. I gave them a var title, using the 'name' from the HTML code and then added the values for each input box on the action layer like this:
    cmd = "_s-xclick";
    hosted_button_id = "1700073";
    on0 = "Choose your membership";
    currency_code = "CAD";
    And its still wont work! And i have no clue what im doing wrong! PLEASE HELP!

    I was able to figure out how to get my btn to redirect to my shopping cart. Basically, you just need to make sure everything is on the btn action layer. At first i have my hidden values on a action layer in the main page and the getURL my btn layer. Now my btn layer looks like this:
    on (release) {
    // Hidden Input fields for Form
    cmd = "_s-xclick";
    hosted_button_id = "1699962";
    on0 = "Choose your membership";
    currency_code = "CAD";
    getURL ("https://www.paypal.com/cgi-bin/webscr", target="paypal", "POST");
    Now my problem is that the values of my combo box arent read and i have no idea how to code it. Can anyone help me with this? Should i code it in actionscript or can i just do it in property inspector box? I know what the problem is but i dont know how to fix it! My button is missing some coding since its not picking up the values of the combo box.
    Anything could help! Thanks!

  • Flash cs4 mac - Error opening URL '/:Users:someting.swf' - Not a "loading external content" problem

    Hello.
    I am having a weird problem when trying to test a movie or publish preview -> flash on mac with Leopard os.
    The result is a blank movie with the usuall "movie not loaded" if u right click on it and the output returns the "Error opening URL 'the path of the swf here'.
    This has nothing to do with loading external files or something like that. It happens even in blank movies and it gives the same error if I try to open a swf from flash ide.
    I can publish the project or export the movie with no problem at all.
    I can preview the movie in html. I can run all the swf files in my hard disk, network, usb stick, dvd etc., but when I try to open any of these files from flash ide I got that stupid error.
    Its not something that stops me from working in flash ide but its slow to export movie any time I want to test it.
    Things that I've tried so far but nothing worked:
    Update the flash cs4 to the latest version
    Update the flash players
    Restored the release flash player as default player (I am using as default the debug player)
    Cleared the preferences
    Move the flash cs4 folder to another location in hd
    Saved the fla document first before testing the movie (in different places with or without spaces in document name or folder)
    Give read & write permissions for everyone for flash.app, players and for fla files when saved first before test movie
    Unistall and install the application 3-4 times.
    Test every as version just in case.
    Also I've checked the folders when testing movie and I can see that it creates an swf file, which I can run it outside flash ide (the one that the flash ide player cannot load) with no problem.
    The mac os has the default set up as it came. Nothing chnaged in permissions or security settings.
    Thanx in advance.

    In this particular example I am using this code to start the
    xml file load:
    // now load the XML file that contains the content strings
    var sXMLFile:String = "xml/home.xml";
    var xmlContent:XML = new XML();
    xmlContent.ignoreWhite = true;
    xmlContent.onLoad = onXMLLoadComplete;
    xmlContent.load( sXMLFile );
    But I don’t think the code is the problem here . This
    happens on every file I load when I am using a relative path to the
    content, regardless of how I load the content (XML object,
    loadMovie, MovieClipLoader, etc…) and the same code executes
    perfectly on every other machine in the office(Mac and PC).
    I’m more concerned with the semi-colons and .swf filename
    that Flash is putting into my relative path on the error message.
    Is that normal?

  • FAQ: SWF's and loading external files in Flash Catalyst

    How do I make the images in my Flash Catalyst project external to the published SWF?
    You can choose whether images are embedded in your Flash Catalyst SWF, or loaded dynamically; this can help to keep your SWF's small. Simply right-click an image and chose "Externalize Image".
    Answered by: Adam Cath.
    See entire discussion.
    How do I make the SWF I imported to Flash Catalyst load external files?
    When importing a SWF, Flash Catalyst only pulls the SWF asset into your project. Many SWF's, such as slideshows and media players, rely on external data files, such as configuration files or media assets. If you would like to use such a SWF in Catalyst, then you will have to place these external resources into your Catalyst project as well as importing the SWF.
    Let's assume you have a SWF source folder that contains your SWF file and all of the external files it needs. You can open the SWF file from this folder and it works fine. But, if you import the SWF into Catalyst, the Catalyst project doesn't display it correctly because it can't load the external files. Here's what you do:
    1. Open your swf source folder, and copy all of the files/folders there except the SWF you imported.
    2. In Catalyst, Run/Preview your project (Ctl/Cmd-Enter)
    2. Note the file path to Main.html in your browser
    3. In your OS, open the folder that contains /bin-debug/Main.html from above
    4. Open the "src" folder
    5. Paste all of the files from step 1 into the src folder.
    6. Catalyst won't pick up that your project changed, so tweak it a bit (add a Rectangle), and save it.
    7. Run your project. If it doesn't work, try closing and reopening your project and running again.
    For an example, check out: Using an XML-driven SWF in Catalyst to create a slideshow.
    See entire discussion.
    Answered by: Bear Travis

    You can make you swf a custom component with 2 states.
    The first state will be empty and rename it "OFF" the second state will have your swf file and name it ON.
    Then go back to your artboard/project, add your 2 buttons ON & OFF.
    For the ON button add interaction "play transition to custom component ON"
    For the OFF button add interaction "play transition to custom component OFF"
    Here is an example swf_control

  • HTML website, SWF do a load animation only once. Same file used on all pages?

    Hey all,
    Just going through some thinking here. My HTML website is
    going to using a flash header and navigation. Now I will be using
    the same swf's on all of the pages across the site. I would like to
    play a loading animation only on the first time the swfs are
    loaded. Is there a way to do this? Or because I am using the same
    swf's will it be okay to just tell my mc to go sit on a specific
    frame and because it is in the cache each page will be using the
    same file so the mc will still be at that frame or???
    And help would be nice...

    While Breqent is right that server side includes are the best way of doing this if you aren't up on
    server side coding then you can use Dreamweaver to manage you menu.
    You do this by simply ensuring you never edit the menu area on any individual page.
    It should therefore be identical on all page and as such you can just use find and replace across the entire site or folder to edit all occurances of your menu.
    I hope this helps.
    Andy
    Best Reception

  • How may load an external (html) file in swf? Anyone!!!!!

    hi all,
        How may load an external html file in swf? such as google.com in a movieclip.
    anyone may help me.........????????

    With Flash, you can't do this.
    Just with FlashBuilder and Air (something like HTMLLoader  , not sure now)
    I mean loading in a movieclip..
    Of course you can open a page to display in a browser.

  • Loading external swf movie to website - AS3

    Hi, once again I am stuck because of AS3, it was sooo easy to load external swf in as2.
    I have a very simple website where HOME does not want the external swf to show but all other pages should have the swf running as a main banner on left hand side.
    My site is built with labels - if you click on any other page except "HOME" the swf should load and stay loaded while navigating on the "following pages",  and when you navigate back to "HOME"the banner should unload.
    Should be easy right? I browse the Internet for 2 days and find millions of code, but nothing that works.
    Do I need a Loader placed on the following pages or an empty movie clip (with an instance name?)
    I tried the below, but it only loads if you click on button "l'ambition" first, since this is the frame where the code is placed, and it is of course not unloading on "HOME. I have a keyframe on label "ambition" where I have a Loader box and the code (both running all over the following pages.
    var request:URLRequest = new URLRequest("main_movie_241x700.swf");
    var loader:Loader = new Loader()
    loader.load(request);
    addChild(loader);
    Do I need an EventListener?
    Anyone...? Please hand me complete code since that will help me a lot. You can see the test site here: http://www.gattadesign.fr/CSD/index.html
    Thanks in avance!
    Anna Gatta

    Thanks for taking your time! Much appreciated.
    I like not complicated :-)  So it is now loading from the start - stretching over the whole timeline. How do I controll the visibility during the "HOME" = that is invisible?
    This is the code I use to load the external swf:
    var Xpos:Number=0;
    var Ypos:Number=0;
    var swf:MovieClip;
    var loader:Loader=new Loader();
    var defaultSWF:URLRequest=new URLRequest("main_movie_241x700.swf");
    loader.load(defaultSWF);
    loader.x=Xpos;
    loader.x=Ypos;
    addChild(loader);

Maybe you are looking for