Hey guys! So I’ve been working on this project for a little while now and many of you have helped me get as far in it as I am now and I am very grateful. However I need help with another thing before I can continue on with the project.
My latest problem is that I have created these tweens with these rectangles. However what I want is when the user clicks on this object that the rectangle will grow to say - frame 30 or whatever. The problem is not that it does not GO TO frame 30, its that it does not EASE its way there, it just sort of pops over there on the click. Here is my code.
house1_mc.addEventListener(MouseEvent.CLICK, test, false, 0, true);
function test(evt:MouseEvent):void
{
greenecoenergybar_mc.gotoAndStop(68)
greyecoenergybar_mc.gotoAndStop(54)
gasoilbargrey_mc.gotoAndStop(40)
gasoilbargreen_mc.gotoAndStop(50)
hydrogreybar_mc.gotoAndStop(30)
hydrogreenbar_mc.gotoAndStop(56)
}
So yea when you click on house1_mc i want those bars to change their size accordingly. Is there a way I can ease it to that point without it jumping there? I know there is an ‘ease’ function in actionscript and I tried tinckering with it but I just kept getting errors. Any suggestions?
Cheers!