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

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!!!)

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 :slight_smile:

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

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

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

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 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).

alright thanks.

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 :slight_smile:
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.

i think you want to go the xml route

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.