Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible or not? To load an html page within a Flash Movie. 4

Status
Not open for further replies.

garymgordon

Programmer
Apr 5, 2000
307
US
Let me explain.

I want to open a flash movie. Let's say the movie window is 800 by 600 px.

Then maybe in an area that would be either something like 600 by 400 px or maybe even the size of the whole flash movie, ... I want to DROP IN an html page. This should dynamically pull in an html page from a URL.

So, let's say, I had the Flash movie and wanted to load into it . I would want it to dynamically pull in the current url to msn.com and place it within the flash page.

I don't want to create a link within the flash movie that would open up another window with the page. I want the html page to open WITHIN the current flash movie. (As if .. the flash movie was a frameset ... and one of the frames - was an html page.

Can this be done?

How?

I would greatly appreciate some help by a FLASH guru. :)

Thanks,
Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
 
You can get some of the way there but no all of the way there :) !

If you place a dynamic text box (a big multi-line one) on your stage you can load it with HTML text - just check the box for this in the "Text Options" panel. There are certain things that you won't be able to load in (graphics for one) but things like text formatting etc. are available.
 
hhmmmm, thats a good question. i was thinking maby a dhtml layer on top of the swf, but i think i read somware that swf files always go ontop, but you should be able to tell it not to. try this:

put both the flash file and the html part in div tags like so:

<div style=&quot;top:***;left:***;x-index:1;position:absolute&quot;>
flash file here
</div>
<div style=&quot;top:***;left:***;x-index:2;position:absolute&quot;>
<iframe src=&quot;&quot; width=&quot;***&quot; height=&quot;***&quot;></iframe>
</div>

oviously you'll need to defign the top and left properties to whatever they need to be to have the html file perfectly over the flash file, also you'll need to defign the size of the iframe to fit too. oh, and i just resently found out that iframe only works for IE, but its the only way i can think to get msn.com there
not knowing is an excuse for those umwilling to lern -- John Rueben
 
So ... there's really no way to kind of embed an html page (by linking a URL) to position the page within the flash movie??

:(

Please think. Think!! Is there any way??

By the way, ... thanks!

Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
 
Ok a SLIGHT workaround for this, but I'm almost positive you could set the background to transparent, then load an Iframe with dynamic positionining underneith...that way it would show through, and you could put any type of HTML you wanted, also if need be, you could do document.write's to the Iframe and do some of the sweet dynamic HTML stuff or something...any comments/suggestions on my idea?

Then you'd have to do something like
document.all(&quot;iframename&quot;).src = &quot;whatever&quot;

it's javascript, so it'll work with flash... Regards,
Anth:cool:ny
----------------------------------------
&quot;You say [red]insanity[/red] like it's a BAD THING!&quot;
 
I guess I was hoping there was a way ... from within flash .. to load a URL into a window (of flash) .. kind of like a frame.

No other thoughts or ideas on how to do this?

Gary Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top