Version: Flash MX (A.S. 2.0)
Hello.
I haven't posted since signing on a few weeks ago. I've searched your site seeking an answer or answers to the concept of creating a "close button" for my external swf's. I've also searched engines; Ask.com, Yahoo.com, Lycos.com, etc.. I've tried the following methods of code as solutions, with no success:
..or...
Here is the actual code for both the "main swf" (my homepage) and all external swf's which also contain my navigation buttons (about, contact, home = main.swf, etc).
-----------------------------------------------------------------------------------
For all external swf's the code..
First Frame A.S.: (Intro)
is whatever mid-frame number is (ex: 28)
Middle Frame A.S.: (Mid)
stop();
End Frame A.S.: (Outro)
_root.container .loadMovie(_roo t.currMovie+".s wf")
------------------------------------------------------------------------------------
My objective is to create a " close button" or "x", right upper corner of each external swf, when clicked will close that individual swf, WITHOUT CLOSING the container or access to container on "main swf', leaving me with the ability to open that same swf again, after closing it. Some code that I received allowed me to "close" an swf but when I selected a different swf on my "main" stage, none of the other buttons (swf's) would respond to button click. I hope I've explained this well enough, if not please come back with question(s).
Thanks,
mikes8arms.
Hello.
I haven't posted since signing on a few weeks ago. I've searched your site seeking an answer or answers to the concept of creating a "close button" for my external swf's. I've also searched engines; Ask.com, Yahoo.com, Lycos.com, etc.. I've tried the following methods of code as solutions, with no success:
Code:
on press{
unloadMovie (1);
}
Code:
on press{
unloadMovie (".swf");
}
Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "main";
container.loadMovie("main.swf");
} else if (_root.currMovie != "main") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "main";
container.play();
}
}
}
For all external swf's the code..
First Frame A.S.: (Intro)
is whatever mid-frame number is (ex: 28)
Middle Frame A.S.: (Mid)
stop();
End Frame A.S.: (Outro)
_root.container .loadMovie(_roo t.currMovie+".s wf")
------------------------------------------------------------------------------------
My objective is to create a " close button" or "x", right upper corner of each external swf, when clicked will close that individual swf, WITHOUT CLOSING the container or access to container on "main swf', leaving me with the ability to open that same swf again, after closing it. Some code that I received allowed me to "close" an swf but when I selected a different swf on my "main" stage, none of the other buttons (swf's) would respond to button click. I hope I've explained this well enough, if not please come back with question(s).
Thanks,
mikes8arms.
Comment