Jump to content
Search Community

ariekstins

Members
  • Posts

    7
  • Joined

  • Last visited

ariekstins's Achievements

0

Reputation

  1. I`m not even able to say how pleased and happy I`m now! I really appreciate what you have done! It works, I adjusted it without any problems. All thanks to you!
  2. Yes, the link might not work. Here I have attached zip file. Still I haven`t made any progress.. I think you are my only hope.
  3. Thank you very much again, indeed! It cleared my mind a bit and I`ll try to fix it by my own. But just in case here I have attached link to my navigation fla file. Hopefully you will be able to look at it. Of course, happy new year! Enjoy this celebration. I wish all the best to this community and people who are around us! Cheers! http://uploading.com/files/89ca6c4c/navigation.fla/
  4. Ran thru the tutorial for a couple of times. I think I understand the structure (and why you did so), but still I can`t get this thing to work. Really, driving me nuts. No matter what I do, I`m getting - "TypeError: Error #1009: Cannot access a property or method of a null object reference. at navigation_fla::MainTimeline/navOver()" Kind a stuck right now.. Any clues, guys? code.. import com.greensock.*; import com.greensock.easing.*; portfolio_btn.addEventListener(MouseEvent.MOUSE_OVER, navOver); portfolio_btn.addEventListener(MouseEvent.MOUSE_OUT, navOut); portfolio_btn.addEventListener(MouseEvent.CLICK, navClick); var currentNav:MovieClip; function navOver(e:MouseEvent):void { var navItem:MovieClip=e.target as MovieClip; trace(navItem.name); if (navItem!=currentNav) { TweenLite.to(navItem.portfolio_mc, 0.5, {scaleY:10, ease:Bounce.easeOut, tint:0x0099CC}); } } function navOut(e:MouseEvent):void { var navItem:MovieClip=e.target as MovieClip; if (navItem!=currentNav) { TweenLite.to(navItem.portfolio_mc, 0.5, {scaleY:0,ease:Bounce.easeOut, removeTint:true}); } } function navClick(e:MouseEvent):void { var navItem:MovieClip=e.target as MovieClip; if (currentNav!=null) { TweenLite.to(currentNav.portfolio_mc, 0, {tint:null}); } TweenLite.to(navItem.dot_mc, .2, {scaleY:10, tint:0x0099CC}); currentNav=navItem; }
  5. sadly, but I can`t get it to work. All the time I`m getting error "TypeError: Error #1009: Cannot access a property or method of a null object reference. at navigation_fla::MainTimeline/portOver()" I think your given example is not 100% the same as mine, cause in my case, I have 3 different movieclips (due to colors). and i`m using button over each movieclip (its because the animation is expanding, transforming - at the beginning we can`t see it). In fact, my movieclips are not inside another movieclip. That`s why I don`t know how to correctly adjust the code.. Oh, it`s not that easy as I thought.. Any suggestions, please? code portfolio_btn.addEventListener(MouseEvent.MOUSE_OVER, portOver); portfolio_btn.addEventListener(MouseEvent.MOUSE_OUT, portOut); portfolio_btn.addEventListener(MouseEvent.CLICK, portClick); var currentNav:MovieClip; function portOver(e:MouseEvent):void { var navItem:MovieClip=e.target as MovieClip; trace(navItem.name); if (navItem!=currentNav) { TweenMax.to(navItem.portfolio_mc, 0.5, {scaleY:10, ease:Bounce.easeOut, tint:0x0099CC}); } } function portOut(e:MouseEvent):void { var navItem:MovieClip=e.target as MovieClip; if (navItem!=currentNav) { TweenMax.to(navItem.portfolio_mc, 0.5, {scaleY:10, ease:Bounce.easeOut, removeTint: true}); } } function portClick(e:MouseEvent):void { var navItem:MovieClip=e.target as MovieClip; if (currentNav!=null) { TweenMax.to(currentNav.portfolio_mc, 0.5, {scaleY:10, ease:Bounce.easeOut, tint:0x0099CC}); } TweenMax.to(navItem.portfolio_mc, 0.2, {scaleY:10, ease:Bounce.easeOut, tint:0x0099CC}); currentNav=navItem; } At least now i`m on the right track, I`ll continue testing to adjust it correctly..
  6. thank you so much for fast reply. It really seems to solve my problem. let me try to "swallow" all this now.. thanks again!
  7. Hello there! First of all, I`d like to say thanks to those who made this therific as3 library, which makes things so easy. Because of the wide opportunities the basic tweeining can give (i`m beginner with AS3), I started to make web navigation, but, unfortunately, I faced one problem, where I need your help.. I can`t figure out how to make that after mouse click, the animation "freezes", so it would be easier for users to indicate in which section they are. Here you can look at my work so far - http://megaswf.com/serve/92607/ I tried to apply MouseEvent.CLICK to portfolio button, but it doesn`t freeze. I assume it`s because ROLL_OUT event, but I need it anyway. Any suggestions? Code so far.. portfolio_btn.addEventListener(MouseEvent.CLICK, pClick); function pClick(event:MouseEvent):void{ var homeLink:URLRequest = new URLRequest("#jquery"); navigateToURL(homeLink, "_self"); TweenMax.to(portfolio_mc, 0, {scaleY:10, ease:Bounce.easeOut, tint:0x0099CC}); } portfolio_btn.addEventListener(MouseEvent.ROLL_OVER, manageMouseOver, false, 0, true); function manageMouseOver(event:MouseEvent):void{ TweenMax.to(portfolio_mc, 0.5, {scaleY:10, ease:Bounce.easeOut, tint:0x0099CC}); TweenMax.to(seperator_mc, 0.5, {tint:0x0099CC}); TweenMax.to(dot_mc, 0.5, {tint:0x0099CC}); } portfolio_btn.addEventListener(MouseEvent.ROLL_OUT, manageMouseOut, false, 0, true); function manageMouseOut(event:MouseEvent):void{ TweenLite.to(portfolio_mc, 0.5, {scaleY:0,ease:Bounce.easeOut, removeTint:true}); TweenLite.to(seperator_mc, 0.5, {removeTint:true}); TweenMax.to(dot_mc, 0.5, {removeTint:true}); }
×
×
  • Create New...