Forum Moderators: open
[edited by: engine at 11:49 am (utc) on May 13, 2005]
[edit reason] See TOS [webmasterworld.com] [/edit]
I believe you can also load movie files dynamically, so you could create links in your movie that would pull the external movie from where ever it is stored.
Keep in mind that Flash will not pull data from an external domain unless that domain contains a crossdomain.xml file that lists your domain. It is part of Flash's security features.
I'm pretty sure you can use the built-in scrollpane component in more recent versions of flash (MX, MX 2004) and load html pages in it.
The scrollpane, for all intensive purposes acts like an Iframe so you can load .swf's, .html or any other type of document (I've never tried server side dynamic docs but can't see why it wouldn't work).
Let us know how you make out...
C:\Program Files\Macromedia\Flash MX 2004\Samples\TextEnhancements
however this is very restricted and does not pick up any html page, only certain tags.
I decompiled a product cd created in flash that picks up real html pages and inserts them into Flash, the code seems to be generated using software from Flashstudio and looks like this:
_global.OpenHTMLWindow = function ()
{
id = "0"
xPosition = "249"
yPosition = "126"
width = "531"
height = "371"
url = _root.executablepath + "main.htm"
getURL("FSCommand:flashstudio.browser_load","id,xPosition,yPosition,width,height, url")
AutoSizeHTMLWindow()
myListener = new Object ()
myListener.onResize = function ()
{
AutoSizeHTMLWindow ()
}
stage.addListener(myListener)
}
_global.AutoSizeHTMLWindow = function ()
{
xPosition = 249
yPosition = 126
width = 531
height = 371
xPosition = Math.ceil(xPosition + (Stage.width - 800)/2)
yPosition = Math.floor(yPosition + (Stage.height - 600)/2)
xPosition = String(xPosition)
yPosition = String(yPosition)
width = String(width)
height = String(height)
id = "0"
getURL("FSCommand:flashstudio.browser_size","id,xPosition,yPosition,width,height")
}
however so far i cannot get this to work. If anyone else has managed this please let me know.