the goal: http://www.gmc.com/acadia/acadia/index.jsp?evar10=hp_mast_acadia
I have some movie clips that I would like to have an animated rollover. I have that, now I need to add some more. I would like to be able to click opn the button and open a new window, yet I would like the window to appear in the same spot each time a new button(mc) is clicked. Cant I just do something like:
function newPage(e:MouseEvent):void {
new Tween(e.currentTarget.buttonbg_mc, “width”, Back.easeOut,e.currentTarget.buttonbg_mc.x,300,10,true);
e.currentTarget.buttonbg_mc.alpha=1;
}
and add in the position where I need my x and y coordinates? Also I will need the new open box to stay and no longer be clickable… Can anyone give me some pointers. Trying to get this on my own yet I am at a stand still… Thanks
the code thus far:
stop();
import fl.transitions.Tween;
import fl.transitions.easing.*;
var startWidth:Number = hotSpot_mc.buttonbg_mc.width;
hotSpot_mc.buttonMode = true;
hotSpot_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
hotSpot_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
/home_mc.addEventListener(MouseEvent.CLICK, newPage);/
hotSpot2_mc.buttonMode = true;
hotSpot2_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
hotSpot2_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
/home_mc.addEventListener(MouseEvent.CLICK, newPage);/
hotSpot3_mc.buttonMode = true;
hotSpot3_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
hotSpot3_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
/home_mc.addEventListener(MouseEvent.CLICK, newPage);/
hotSpot4_mc.buttonMode = true;
hotSpot4_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
hotSpot4_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
/home_mc.addEventListener(MouseEvent.CLICK, newPage);/
hotSpot5_mc.buttonMode = true;
hotSpot5_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
hotSpot5_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
/home_mc.addEventListener(MouseEvent.CLICK, newPage);/
hotSpot6_mc.buttonMode = true;
hotSpot6_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
hotSpot6_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
/home_mc.addEventListener(MouseEvent.CLICK, newPage);/
function buttonOver(e:MouseEvent):void
{
new Tween(e.currentTarget.buttonbg_mc, “width”, Elastic.easeOut,startWidth,startWidth+180,15,false);
e.currentTarget.buttonbg_mc.alpha=1;
}
function buttonOut(e:MouseEvent):void
{
new Tween(e.currentTarget.buttonbg_mc, “width”, Strong.easeOut,e.currentTarget.buttonbg_mc.width,startWidth,15,false);
e.currentTarget.buttonbg_mc.alpha=0.5;
}