Wow Carl this is fantastic, thanks so much! I've added another rectangle_mc/circle_mc which has the same function as the first one it would just play another videoclip.
Two more questions: 1. how do you either disable the ability to click on other mc if one is currently running / or simply just stop the one running and play the one clicked. The idea right now is when you click rectangle_mc it would run a short flv videoclip.
2. What is the best and easiest way to embed an flv/mp4 videoclip - it would go inside circle_mc, i guess i could do it via flvplayback, extend the timeline to a certain point and call this at the end MovieClip(this.parent).showRectangle();
Not sure this would be helpful to anyone but a rookie like me, but i added mouseover / mouseout on first button.
import com.greensock.*; import com.greensock.easing.*; import flash.events.MouseEvent; //hide circle on load TweenMax.to(circle_mc, 0, {autoAlpha:0}); TweenMax.to(circle_mc2, 0, {autoAlpha:0}); TweenMax.to(over, 0, {autoAlpha:0}); rectangle_mc.buttonMode = true; rectangle_mc.addEventListener(MouseEvent.CLICK, showCircle); rectangle_mc.addEventListener(MouseEvent.MOUSE_OVER, navOver); rectangle_mc.addEventListener(MouseEvent.MOUSE_OUT, navOut); rectangle_mc2.buttonMode = true; rectangle_mc2.addEventListener(MouseEvent.CLICK, showCircle2); function navOver(e:MouseEvent):void{ over.play(); trace("you rolled over me"); TweenMax.to(over, .5, {autoAlpha:1}); } function navOut(e:MouseEvent):void{ over.play(); trace("you rolled off me"); TweenMax.to(over, .5, {autoAlpha:0}); } function showCircle(e:MouseEvent):void{ circle_mc.gotoAndPlay(1); TweenMax.to(rectangle_mc, .5, {autoAlpha:0}); TweenMax.to(circle_mc, .5, {autoAlpha:1}); } //this function is called from the last frame of the circle_mc's timeline animation function showRectangle(){ rectangle_mc.gotoAndPlay(1); TweenMax.to(rectangle_mc, .5, {autoAlpha:1}); TweenMax.to(circle_mc, .5, {autoAlpha:0}); } function showCircle2(e:MouseEvent):void{ circle_mc2.gotoAndPlay(1); TweenMax.to(rectangle_mc2, .5, {autoAlpha:0}); TweenMax.to(circle_mc2, .5, {autoAlpha:1}); } //this function is called from the last frame of the circle_mc's timeline animation function showRectangle2(){ rectangle_mc2.gotoAndPlay(1); TweenMax.to(rectangle_mc2, .5, {autoAlpha:1}); TweenMax.to(circle_mc2, .5, {autoAlpha:0}); }