Can someone please check out this code for me
MovieClip.prototype.LoadCube = function(targ, swf, func)
{
targ.loadMovie(swf);
var trig = function()
{
if(targ.getBytesLoaded() == targ.getBytesTotal())
{
func(targ);
clearInterval(targ.inter);
}
}
targ.inter = setInterval(trig, 1);
}
var cube1func = function(targ)
{
var t = _root.cubetainer;
var trig1 = function()
{
targ.gotoAndStop("beginMovie");
t.targ = _root.cubetainer2;
clearInterval(trig2);
}
var trig2 = setInterval(trig1, 1000);
}
var cube2func = function(targ)
{
_root.smallloaded = true;
if(!_root.isplaying) _root.cubetainer.play();
}
_root.LoadCube(_root.cubetainer, "largeCube.swf", cube1func);
_root.LoadCube(_root.cubetainer2, "smallCube.swf", cube2func);
_root.cubetainer2._visible = false;
logo_mc.onRelease = function () {
if(_root.isplaying) !_root.cubetainer2.play();
};
stop()
Here is the fla’s to look at: Files
What i’m trying to do is have the “logo” and the “what we do” buttons, when clicked load only the “smallCube.swf file”. For some reason I cannot figuer it out. This project is due tomorrow morning and I’m pretty stuck. Please help.
Thank you all,
spyguy