# Iframe in AS 3?

**URL:** <https://forum.kirupa.com/t/iframe-in-as-3/263038>\
**Category:** Uncategorized\
**Created:** [June 12, 2008, 2:27am UTC](https://forum.kirupa.com/t/iframe-in-as-3/263038 "2008-06-12T02:27:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![peredy](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@peredy](https://forum.kirupa.com/u/peredy)\
**Post date:** [June 12, 2008, 2:27am UTC](https://forum.kirupa.com/t/iframe-in-as-3/263038/1 "2008-06-12T02:27:21Z")

</div>

Okay, I struggled to get my movie to show my php page, and could never figure out what I did wrong. I did get some help on here and I’m greatful.

So I am wondering if there is a way to just make an iframe to show the php page that I already have. The page connects to a database with mysql. I realy want to be able to make this flash my site, so any help is appreciated.

I appologize in advance, but I’m quite stupid with all of this. I was pretty good with Flash 4 and havent messed with it since, so you see now I am dumb with it.

I can make an iframe for a web page but cant seem to do it for flash.

Okay… enouph babbeling… here is the flash movie I have so far. Click on the lick for news in Navigation to see where I am at…

[www.blysterband.com/vids/trial.htm](http://www.blysterband.com/vids/trial.htm)

If there is any way I can just get a copy and paste thing, that would be grand. No, I’m not lazy, but I have tried to follow tuts and I am afraid that I think my mind might just be too small for this level of design.

I appreciate any help ALOT!!!

---

<div class="post-metadata">

**Author:** ![dthought](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dthought/32/3573_2.png) [@dthought](https://forum.kirupa.com/u/dthought)\
**Post date:** [June 12, 2008, 3:29am UTC](https://forum.kirupa.com/t/iframe-in-as-3/263038/2 "2008-06-12T03:29:35Z")

</div>

Uhm… why are you trying to create an iframe inside Flash? That’s an HTML tag that includes another HTML page as an inline frame… you can achieve a similar effect in Flash by using a masked layer. You’d then use a textField set to HTML, and set its HTML text… but remember, Flash has a limited HTML vocabulary.

---

<div class="post-metadata">

**Author:** ![peredy](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@peredy](https://forum.kirupa.com/u/peredy)\
**Post date:** [June 15, 2008, 12:49am UTC](https://forum.kirupa.com/t/iframe-in-as-3/263038/3 "2008-06-15T00:49:39Z")

</div>

The reason being is because I have my php pages already set up to display the information as I want them to from a database (MySQL)… I cant seem to get flash to do the same because I am simply not smart enouph to understand it all. I’ve tried for quite some time now. So… I thought if I could make an iframe in the flash movie, then I can just bring up the page that is already working, within the movie… and I will have all I need to show the information.

There has to be some way of doing this. Best way I can explain it… if you go to [www.blysterband.com](http://www.blysterband.com) you will see the link for news, click on that and the iframe will show the news.php page that displays the information.

If you go to [www.blysterband.com/vids/trial.htm](http://www.blysterband.com/vids/trial.htm) and you click on news, from the navigation drop down, you will see a window animate accross, but has nothing. I want the same php info that I have for the page that is there to work within that window.

There is a text box and code, but it doesnt work.

---

<div class="post-metadata">

**Author:** ![dthought](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dthought/32/3573_2.png) [@dthought](https://forum.kirupa.com/u/dthought)\
**Post date:** [June 15, 2008, 4:41am UTC](https://forum.kirupa.com/t/iframe-in-as-3/263038/4 "2008-06-15T04:41:02Z")

</div>

If all you’re wanting to use Flash for is a few fancy animated bits with your HTML, then you may be better off just using JavaScript with something like the [del.icio.us](http://del.icio.us) library as opposed to doing in Flash 🙂

I will say that you’re approaching Flash from the wrong direction - it is not an analogue or replacement for HTML. If you want to put HTML in it, you can only use a subset of tags and CSS. If you want to do HTML and CSS, better to do HTML and CSS and leave Flash out of the equation 🙂

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [June 15, 2008, 9:39am UTC](https://forum.kirupa.com/t/iframe-in-as-3/263038/5 "2008-06-15T09:39:50Z")

</div>

Yeah, as others have said it’s impossible for now to display a bunch of HTML inside Flash. You can display some text formatting tags, and some css… but that’s all. Nothing fancy.

Instead you can make the whole website in HTML/CSS, and put some flash in the html. Like having the menu in flash, the video player, etc.

You can also use a JS solution like [http://mootools.net/](http://mootools.net/) to add some movement to the poor static html without using flash.

---

<div class="post-metadata">

**Author:** ![peredy](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@peredy](https://forum.kirupa.com/u/peredy)\
**Post date:** [June 17, 2008, 11:20am UTC](https://forum.kirupa.com/t/iframe-in-as-3/263038/6 "2008-06-17T11:20:15Z")

</div>

Oh okay. Well that isnt what I was hoping for. Oh well. I guess I’ll just create each box by itself and add the content manually. The biggest reason for the php pages is because I can edit most of the pages on my site with forms I created, the the pages display them. The pages are in iframes and there are flash buttons, but I was hoping to have the rest of it flash too.

I appreciate the help everyone. Now that I see it’s impossible, I can quite spending so many hours trying haha.

Thanks a ton again.

---

<div class="post-metadata">

**Author:** ![Iamthejuggler](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@Iamthejuggler](https://forum.kirupa.com/u/Iamthejuggler)\
**Post date:** [June 17, 2008, 11:31am UTC](https://forum.kirupa.com/t/iframe-in-as-3/263038/7 "2008-06-17T11:31:35Z")

</div>

If you use the Flex SDK you can fairly easily add an iframe into your flex app.

[http://www.deitte.com/IFrameDemo3/srcview/index.html](http://www.deitte.com/IFrameDemo3/srcview/index.html)
