# 'HELP" with this code please! Project due tomorrow

**URL:** <https://forum.kirupa.com/t/help-with-this-code-please-project-due-tomorrow/204187>\
**Category:** flash\
**Created:** [October 17, 2006, 8:01pm UTC](https://forum.kirupa.com/t/help-with-this-code-please-project-due-tomorrow/204187 "2006-10-17T20:01:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpyGuy](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@SpyGuy](https://forum.kirupa.com/u/SpyGuy)\
**Post date:** [October 17, 2006, 8:01pm UTC](https://forum.kirupa.com/t/help-with-this-code-please-project-due-tomorrow/204187/1 "2006-10-17T20:01:43Z")

</div>

Can someone please check out this code for me

```auto

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](http://www.mindset-media.com/files.zip)

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
