I tryed to use the “loadmovie” function instead of loading it from the library and it works on the linked swf file. But as soon as I load that file under my main interface, it doesnt allow the swf to load. Almost like it wont let me have embedded swf files. I hope this make some sense. When is a good time to catch you on aim lostinbeta?
Ok guys I got a lot of help originally from L0stinbeta on the code for this particular section. He helped me create these buttons to load an exterior .swf file when clicked. All I want to do is change it to load a centered popup window instead, and be able to specify the dimensions of the window. Unfortunately I have exhausted my action script talent, and I am totally lost. Basically I am trying to combine the two codes below. Please help! thx
onClipEvent (load) {
this._alpha = 30;
// set original alpha
}
onClipEvent (enterFrame) {
function fadeOut() {
if (this._alpha>30) {
this._alpha -= 10;
} else {
null;
}
}
// this function increases the _alpha of the object calling it
// when it reaches 100, it deletes its enterFrame
function fadeIn() {
if (this._alpha<100) {
this._alpha += 10;
} else {
null;
}
}
this.onRollOver = function() {
// when you roll over the button, you define its enterFrame as the
// function you have just declared. You could hard code it, but it is
// clearer that way and more reusable
this.onEnterFrame = fadeIn;
};
this.onRollOut = function() {
this.onEnterFrame = fadeOut;
};
this.onRelease = function() {
_root.loadfrom.loadMovie(“flowertruck.swf”);
};
}
and this one
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “http://www.kirupa.com/modular/pop-up.htm”;
target_winName = “kirupa”;
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}