Ok I can’t belive that this can’t be done, but I’ve been stuck on this for 2 days now
and the forums have nothing on this. :puzzle:
I believe a Prototype can handle this, but I know nothing about protoypes.
Here’s my problem. I have an intro to my main site that basically reveals elements through masking. So what happens is a have some movieclips that I am using for masks. On the correct interval the mask mc resizes revealing elements(i.e. content window, newsletter, etc) using actionscript.
A sample of the code is something like this
// content mask function
function contentMaskDelay(){
contentMask.onEnterFrame = function(){
contentBox._visible = true;
var heightChange = Math.round(290-this._height)
var widthChange = Math.round(340-this._width)
this._height += heightChange/3
this._width += widthChange/3
}
clearInterval(contentBoxDelay);
}
contentBoxDelay = setInterval(contentMaskDelay, 4000);
Ok so that work’s fine, no problems and it does exactly what I want. I have a number of mask effects going on just like this, but that is not important.
My problem
I need an outro script. Meaning when a user click let’s say the “about” button, I want the content mask to reduce size, thus causing the opposite effect as the intro.
So… In other words I want to change the size of the content movieclip mask as I did in the intro, only on button event.
i.e.
about.onRelease = function(){
// make mask mc smaller
}
For the life of me i can’t figure it out. it seems I can’t resize this mask movieclip on button event but I can without a button event as I have done for the intro.
Note: I am not using tweens for several reasons, tweens is not an option.
Please someone lead me in the right direction here.
Thanks,
Digital