Jump to content
Search Community

attentions

Members
  • Posts

    5
  • Joined

  • Last visited

attentions's Achievements

0

Reputation

  1. Thanks Carl, you are very helpful! I tried combining your latest code with the first one above, but i'm having issues since i sort of have two buttons in the first one. So i tried making "circle_mc" as a button. But when another button is clicked "rectangle_mc2" the "circle_mc" just stops. How do you make "circle_mc" switch to "rectangle_mc" ?
  2. Thanks for replying, but still how do you solve the issue with the file being too big i tried making 5 buttons with tweenmax and it works. But the file i end up is quite large 3mb. I do use a preloader but it takes quite a while to load, is there a way to split these files up and somehow load them, would it be a good idea to split the buttons in 5 swf's and use loadermax? If so any guidance on how?
  3. This is a pretty cool example of how to combine AE to make buttons in flash http://www.gotoandlearn.com/play.php?id=67# They used some other tweener then greensock, but the transition would be pretty easy to do in tweenlite/max. The guy embeds the button into flash which is easy. But what if you had 5 buttons and suddenly your size is up to 3-5mb or so of the fla file. What is the best way to call these flv's without embeding them into the timeline ? Via videoloader? I've seen the tutorial on nettuts but seems pretty complicated. Any examples on how do to this as simple as possible and keep the loading as fast as possible.
  4. 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}); }
  5. Hi guys, This is probably pretty simple to do, but im struggling big time. I have this movieclip that loops on stage, when the movieclip is clicked a new one loads on top of it and the other one fades. When the second movieclip is finished playing it fades and the first one loads back up again looping. Any help is very much appriciated, also i attached a ss possibly explaining it better.
×
×
  • Create New...