Jump to content
Search Community

grollaz

Members
  • Posts

    7
  • Joined

  • Last visited

grollaz's Achievements

0

Reputation

  1. Thanks for all, now all works perfectly!!! Have a nice day!!!
  2. hello, I have now changed the code and everything is on a main timeline: import gs.*; import gs.easing.*; var loghi1:TweenMax; var loghi2:TweenMax; function startmarchi() { loghi1=new TweenMax(marchi01,30,{x:-1090,ease:Linear.easeNone,onComplete:riavvolgi1}); loghi2=new TweenMax(marchi02,60,{x:-1090,ease:Linear.easeNone,onComplete:riavvolgi2}); //TweenMax.to(marchi01, 30, {x:-1090, ease:Linear.easeNone, onComplete:riavvolgi1}); //TweenMax.to(marchi02, 60, {x:-1090, ease:Linear.easeNone, onComplete:riavvolgi2}); } function riavvolgi1() { marchi01.x=3286; TweenMax.to(marchi01, 60, {x:-1090, ease:Linear.easeNone, loop:100}); } function riavvolgi2() { marchi02.x=3286; TweenMax.to(marchi02, 60, {x:-1090, ease:Linear.easeNone, loop:100}); } startmarchi(); // marchi01.annarachele.buttonMode=true; // marchi01.annarachele.addEventListener(MouseEvent.MOUSE_OVER, pausa); function pausa(event:MouseEvent):void { loghi1.pause(); loghi2.pause(); } marchi01.annarachele.addEventListener(MouseEvent.MOUSE_OVER, riprendi); function riprendi(event:MouseEvent):void { loghi1.resume(); loghi2.resume(); } marchi01.annarachele.addEventListener(MouseEvent.CLICK, apri_annarachele); function apri_annarachele(event:MouseEvent):void { var url:URLRequest=new URLRequest("http://www.annarachele.it"); navigateToURL(url, "_blank"); } I used this code but does not work, nothing happens, why? Thanks.
  3. i have try, but same problem... what i can do?
  4. Hi, i have 1 tween (loghi1) for 1 mc on the root (marchi01) and 10 buttons on root of marchi01, for to start the tween i use this code in the root of the movie: ON THE ROOT OF MOVIE: function startmarchi() { var loghi1:TweenMax = new TweenMax(marchi01, 30, {x:-1090, ease:Linear.easeNone, onComplete:riavvolgi1}); } function riavvolgi1() { marchi01.x=3286; TweenMax.to(marchi01, 60, {x:-1090, ease:Linear.easeNone, loop:100}); } startmarchi(); BUTTON ON THE ROOT OF "marchi01": annarachele.addEventListener(MouseEvent.MOUSE_OVER, pausa); function pausa(event:MouseEvent):void { loghi1.pause(); } annarachele.addEventListener(MouseEvent.MOUSE_OVER, riprendi); function riprendi(event:MouseEvent):void { loghi1.resume(); } } ..but it not work, give to me an error, what i can do? Tahnks.
×
×
  • Create New...