Jump to content
Search Community

hexobolic

Members
  • Posts

    5
  • Joined

  • Last visited

hexobolic's Achievements

1

Reputation

  1. I have a container that loads in an image that im trying to call each time the tween is completed, but seems to be hanging up if I add a yoyo and repeat values into the parameters. Is there something Im missing or doing wrong? It works fine with out the repeat. Would there be another way to do this? Thanks import com.greensock.TweenMax; var imgNum:Number = 0; var imgLimit:Number = 1; var imgPath:String = "img"; var imgArray:Array = new Array("/card11.png","/card14.png"); container.loadMovie(imgPath+imgArray[0]); TweenMax.to(container,1,{_x:container._width*-1,delay:5,yoyo:true,repeat:-1,repeatDelay:1,onComplete:loadAsset}); function loadAsset(num:Number):Void{ imgNum++ trace(imgNum); if(imgNum>imgLimit){ imgNum=0; } switch (num){ case 0: container.loadMovie(imgPath+imgArray[1]); break; case 1: container.loadMovie(imgPath+imgArray[2]); break; } }
  2. Hi guys, apologize about the simple question, but I am having an issue with my buttons, everytime I roll over the buttons quickly they keep getting smaller and smaller, almost as if the tween isnt able to complete all that way, here is my code for the buttons. case "mouseOver": TweenMax.to(e.currentTarget,.3,{height:e.currentTarget.height +10 ,width:e.currentTarget.width +10}); break; case "mouseOut": TweenMax.to(e.currentTarget,.3,{height:e.currentTarget.height - 10 ,width:e.currentTarget.width - 10}); break; now I tried just to go with a scale, however I already have the buttons scaled down via xml and when I revert back to a value of 1 it gets the original size of the graphic. If there is another way to do this, any help would be greatly appreciated.
  3. I seemed to have solved the problem by typing it out here. after deleting my .fla file and creating a new one it seems to be working for some reason. Have no idea why, but now it works...
  4. Hi guys, I got caught up in an error that I have never seen up to this point: C:\Users\aa48685\Desktop\TicTacToe\com\greensock\TweenLite.as, Line 448 1136: Incorrect number of arguments. Expected 0. this is happening to a .fla file I have that was connected to a class, however upon trouble shooting I removed the linkage from the class but still seem to be encountering this error. If I create another .fla and make a movie clip in the same folder, the tween happens with no issue at all and rules out any issue with greensock, it does not seem to like something in this document. Has anyone else encountered a problem such as this? If so, what steps did you take to resolve this problem. Thanks for the help!
×
×
  • Create New...