# Some help...pretty please with sugar on top

**URL:** https://forum.kirupa.com/t/some-help-pretty-please-with-sugar-on-top/229020
**Category:** Uncategorized
**Created:** [June 13, 2007, 1:36pm UTC](https://forum.kirupa.com/t/some-help-pretty-please-with-sugar-on-top/229020 "2007-06-13T13:36:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dondeigo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dondeigo/32/2806_2.png) [@dondeigo](https://forum.kirupa.com/u/dondeigo)
#### Post date: [June 13, 2007, 1:36pm UTC](https://forum.kirupa.com/t/some-help-pretty-please-with-sugar-on-top/229020/1 "2007-06-13T13:36:13Z")

</div>

Hello to you all

I am making a small website whit five buttons, it is all based in the first frame of the time line,I am using fuse/zigo to make things move and it is all good.

Well i cant make my transitions to work like i would like to, [SIZE=2]or\*\* i dont know how to do it:huh:\*\*[/SIZE] The first code is what i use to move a mask and show the content/ movie .  
and it is sort of working it moves the mask and show the content, but wen i click a second button the mask moves away, and i have to click the button again, so the mask moves to the right place and show the new content.

i would like to make my code to work like the second code below, but all in one fame, still using fuse/zigo to animate. Is it possible?.  
can any on help me. it would realy make my day…week

```php

ZigoEngine.removeTween(portfolio_mc.portback_mc);
ZigoEngine.doTween(infowind_mc.masker_mc, '_width,_x,', [5,this.startx,this.starty], 1);
var open:Boolean = false;

this.portfolio_mc.onPress = function() {
if (open == false) {
infowind_mc.holder_mc.loadMovie("folio.swf");
ZigoEngine.doTween(infowind_mc.masker_mc, '_width,_x,', [815,this.startx,this.starty], 
1);
open = true;

} else if (lightOn = false) {
ZigoEngine.doTween(infowind_mc.masker_mc, '_width,_x,', [5,this.startx,this.starty], 1);
currentClip.unloadMovie();
lightOn = true;

} else {
ZigoEngine.doTween(infowind_mc.masker_mc, '_width,_x,', [5,this.startx,this.starty], 1);
currentClip.unloadMovie();
infowind_mc.holder_mc.loadMovie("folio.swf");
ZigoEngine.doTween(infowind_mc.masker_mc, '_width,_x,', [815,this.startx,this.starty],
lightOn = false;
}
};

```

```php
this.portfolio_mc.onPress = function() {
    if (_root.currMovie == undefined) {
        _root.currMovie = "section1";
        container.loadMovie("section1.swf");
    } else if (_root.currMovie != "section1") {
        if (container._currentframe >= container.midframe) {
            _root.currMovie = "section1";
            container.play();
        }
    }
}

```

thanks in advance
