# How to load things like html/php into flash movie?

**URL:** <https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741>\
**Category:** flash\
**Created:** [May 25, 2003, 10:07pm UTC](https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741 "2003-05-25T22:07:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrmin123](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mrmin123](https://forum.kirupa.com/u/mrmin123)\
**Post date:** [May 25, 2003, 10:07pm UTC](https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741/1 "2003-05-25T22:07:43Z")

</div>

Hi.

i’ve been recently trying to create a new website made entirely of flash, but I’ve been encountering some problems.

I wanted the flash to perhaps load an external news document made via HTML or PHP for easy access/upload/updateability, but I really don’t know how to load it into a Flash file with perhaps scrollers etc.

Can anyone help me?

tia

(ps this is one of the craziest flash webpages i ahve ever seen it raises my CPU temp to 65C from 61C!!!)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 10:09pm UTC](https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741/2 "2003-05-25T22:09:33Z")

</div>

You cannot load html or php documents into Flash like that. They are two seperate entities and Flash supports no iframe-like method that will enable this to be possible. I don’t think they will in the future either (but you never know).

BTW: Welcome to the forum 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 10:12pm UTC](https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741/3 "2003-05-25T22:12:57Z")

</div>

wow thnks for a (very) quick reply.

thnks for the welcome heh

but how about something like in this site?  
[http://www.2advanced.com/flashindex.htm](http://www.2advanced.com/flashindex.htm)

there’s like an Update box which i really dbout he updates in the Flash movie itself… unless he does 😑

Im wondering how to get an effect like that or such.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 10:17pm UTC](https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741/4 "2003-05-25T22:17:45Z")

</div>

He probably loads the information from an external .txt file or something using loadVars().

Server-Side Flash isn’t really my thing (though I am learning it now) so when it comes to updating information inside flash via a PHP script or something I don’t think I will be of much help.

If you check a tutorial on [kirupa.com](http://kirupa.com) called “Scrolling Dynamically Loaded Text” (or something like that) it teaches you how to load information from an external .txt file using loadVars().

I would guess they use a method similiar to that. But it also wouldn’t surprise me if each of those 6 panels at the bottom were tiny seperate movies that they call in via loadMovie(). If it were just a small movie where they just had to update the textfield they might do that by hand (but its 2A, so doubtfully).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 10:20pm UTC](https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741/5 "2003-05-25T22:20:25Z")

</div>

alright thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 2:10pm UTC](https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741/6 "2003-05-26T14:10:41Z")

</div>

Like any file to be loaded in flash, first you must creat it.  
So if you wanna load a php (with or without database relation) first you must creat it ( in case of php+database I suggest you to connect it with mySQL) and tell php to render only the varables that you need ( no html tags) in flash type variables.  
e.g. php:–\>$myVar=“this variable”;  
echo (“var1=$myvar”);  
flash:–\>//load the php file;  
//call the php vriable;  
myFlashVar=var1;  
trace(myFlashVar);

if you try this on your machine, then you must set up a “localhost”. You know, some kind of local server 🙂  
For more variables like repeat regions from you database you must set up you php to repeate the data with the same manner.  
If any of these are Greek to you, try first to be more comftible with server side applications.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 5:19pm UTC](https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741/7 "2003-05-26T17:19:18Z")

</div>

i think you want to go the xml route

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 5:42pm UTC](https://forum.kirupa.com/t/how-to-load-things-like-html-php-into-flash-movie/21741/8 "2003-05-26T17:42:41Z")

</div>

Well that depends prstudio. XML can only be edited dynamically via PHP if you install an extra XML Class on the server itself. So if they want content that can dynamically be edited/create via PHP to load into Flash then saving to a .txt file and loading that in would be easier. And well… learning to load .txt files into Flash is easier than XML in Flash overall if you are just starting out.
