Hey guys.
I want to have a button scripted to load a small swf file over the current swf file. For example a button is clicked and a small promo pic comes up. Where can I find the script for this?
Hi Ducati1,
U didnot mention clearly that u want to override ur current swf with new swf
or u want to load new swf on some part of ur current swf.
if u want to totally over ride ur current with new swf, then
first u give instance name to ur button that u want to click , say "my_Bt"
and then u can write the code in main timeline frame
my_Bt.onRelease = function()
{
_level0.loadMovie("swf2.swf");
}
but in this case u ll not able to click ur button again coz it will
override totally.
and if u want to load the movie on current swf , then u have to create
emptyMovieClip and then load ur new swf on it..
Like this
_root.createEmptyMovieClip("loader",100);
my_Bt.onRelease = function()
{
loader.loadMovie("swf2.swf");
}
I hope it will help U..
Gaurav S.
ducati1 - 31 Aug 2008 23:28 GMT
Hi and thanks for your reply.
Yes I want to load a new swf over the top of the main swf, it is to load a
little "about us" video when a button is clicked.
I tried putting in the script you said but have error messages.