Hi,
Create a movieclip on a seperate layer and load your external content into that movieclip. You can size and load external content at runtime. Here is a custom function for loading and sizing content to a movieclip...it loads to a movieclip named "picHolder".
Code:
function sizeLoad() {
this.onEnterFrame = function() {
//boolean variable to establish if the movieclip is loaded
if (_root.loaded) {
return;
}
//size image
if (_root.picHolder._width>0) {
with (_root.picHolder) {
_x = 50;
_y = 80;
_width = 450;
_height = 280;
}
}
}
}
//custom load function
imagePath = "http://yourSite.com/folderName/";
function loadBackGround(imgTarg:String) {
_root.loaded = false;
_root.picHolder.loadMovie(imagePath+imgTarg);
sizeLoad();
}
Now, all you need to load exteral sized content is...
Code:
myButton.onRelease = function() {
loadBackGround("someFile.swf");
}
myButton1.onRelease = function() {
loadBackGround("someOtherFile.swf");
}
Hope it helps
NTD
Bookmarks