PDA

View Full Version : loading HTML into Flash?



Raine
January 23rd, 2005, 04:59 AM
Hi.

I've only been experimenting with Flash for a week and the tutorials here have been quite helpful indeed. I saw some tutorials that allowed loading external SWF's into a website using loadMovie but I was wondering if there was an equivalent for loading HTML files without using getURL.
For example if I wanted to load welcome.html into my flash site (with the SWF and the HTML in the same directory on my computer) how would I go about doing that?
I tried using loadVariables but it didn't show up.

Thanks for the help!

Big_Al
January 23rd, 2005, 01:34 PM
Here, is this (http://www.kirupa.com/forum/showthread.php?t=71400&highlight=html) what you're looking for? I've never tried it out myself, but other people seem to think it works nicely.

- Al :cowboy:

Raine
February 2nd, 2005, 08:28 PM
Thanks for the link. I hope to try out the renderer and see how it goes.

But then, I realized that I can't even load external movies into my flash site properly. I think I'm having a really difficult time understanding how the mask works.

Right now I have a mask with a square drawn on it masking over a layer called content (which will eventually load my external swf's). Does that mean that the movie will only load up in the area bounded by the square that I drew in the mask?

~ЯאַR~}{('~
February 9th, 2005, 01:39 PM
it will be loaded as the actual size of you external movie, and what the mask will do is only showing a delimited area of stage, to make things easier, you have to make the size of your external movie the same size as your mask. If you don't determine the area that your loaded movie is going to use, the mask will "cut it". For example, if your mask is 550*440 and your movie is 800*600 then you will not see all of your external movie on stage. You can determine the area that your movie is going to use, but the easiest way is making the loaded movie the same size as your masked area.