A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: iframe in AS2

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    3

    iframe in AS2

    Hi,

    It is possible to creative i frame in AS2? or any other way to do it?
    I want to surf in a website from the iframe - for example: Google.
    It's will be great if i can have the all code.

    Thanks for the help!

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    The short answer is NO, not with AS2, unless I'm mistaken!!
    You can however put an iframe in your html code and target the iframe from flash.
    http://www.w3schools.com/tags/tag_iframe.asp

  3. #3
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    fruitbeard is right, you can't really do it, but there IS a way though. You see, you can load the HTML code for a website in Flash using something like this:

    Code:
    webSite = new LoadVars();
    webSite.onData = function(data){
    	trace(data);
    }
    webSite.load("http://www.google.com/");
    BUT, only the raw HTML code will be sent to Flash, so you will have to write large chunks of code to format HTML code in Flash, and that's pretty difficult. Look at Google's source code, it's insane, they have really complicated coding that you won't even be able to format in Flash, so Google would be impossible. But, a simple HTML website CAN be shown in Flash, even without requiring much coding, as you can use a text field and enable HTML formatting, but only simple tags will be shown and it will still look pretty messy.
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center