Jump to content
Search Community

adifrank

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by adifrank

  1. I tested this out - made a simple bone structure made from two long rectangles connected by a joint at one end and then at the opposite end of each of these long rectangles I created a small rectangle. Here's what that looks like: Each of these rectangles is a MovieClip and they are all connected in the bone structure in an armature layer. I gave the top purple small rectangle an instance name of: topStem Then I wrote the following code: TweenLite.to(topStem, 2, {y:"-30"}); What I expected to happen is that the topStem would move upwards pulling with it the long rectangle it is connected to and thus creating a wider angle between the two long rectangles. But in reality, the topStem MovieClip just animated upwards by itself, not affecting or moving the other MovieClips in the bone structure at all. What am I doing wrong? By the way.... I set the armature layer type in Properties to: Runtime (yet results are exactly the same regardless if it is set to Runtime or Authortime.
  2. Is there a way to work with bone structures and armatures in Flash using GreenSock classes?
  3. Thanks. Concerning issue #3... it's not regarding a specific ease. I was working on something today and trying out the CustomEase plugin for the first time. While creating a somewhat complex tween, it occurred to me that I must leave the browser with the Custom Ease Builder open just in case I want to modify it a bit. This got me thinking that maybe there's a way to somehow reproduce the ease in the builder at a later time, but couldn't find a way to do it.
  4. I just started using the CustomEase plugin. In order to create my custom easing I use the very useful Custom Ease Builder on the GreenSock website. A few issues I've run into which ultimately led to me having to reset the builder and start over building my ease: 1. From what I gather, it's only possible to add bezier points. In other words, it isn't possible to, for example, remove a bezier point. True? 2. I figure that the option of either ticking "draw curve through bezier points" or leaving it unticked is a substitution for playing around with anchor point handles. Yet the option, as I understand, affects all points. I have not found a way to set certain points as "unticked" while others as "ticked" for this option. 3. Say I created a custom ease yesterday and today I opened up my project and I want to modify that custom ease a bit. Is there a way to copy/paste the code for that custom ease and then get the interactive graph simulating the custom ease - so that I can make some small changes to it? Or optionally, could I save a CustomeEase Builder session?
  5. I have some text that I broke up into into individual letters - each in a MovieClip. I placed these MovieClips (containing the letters) in an Array. Now I want to do some tweening with TweenMax and TimelineMax. I've tried some code... but it isn't working. Getting error 1067: Implicit coercion of a value type Array to an unrelated type com.greensock.core:TweenCore Here's my code. What is wrong? import com.greensock.*; import com.greensock.easing.*; var myTimeline:TimelineMax = new TimelineMax(); var letters:Array = new Arraytxt01, txt02,txt03, txt04, txt05, txt06, txt07, txt08); myTimeline.append(TweenMax.allTo(letters, .5, {y:"400", delay:1.6}, .1));
  6. But what I can't figure out is why the exact same file with the exact same code - works! - when I open it in Flash CS5.5. I haven't tried to trace the Array on CS5.5 to see what the results there are. But the tweening and all works perfectly and without errors. Yet, as I mentioned in my first post of this thread - it could be a Flash issue and unrelated to GreenSock stuff.... If you have any ideas, I'd be happy to hear them. Thanks!
  7. Hi Carl, thanks for your reply. I checked. All instance names of objects in being tweened are intact. Didn't get any errors. the mc from the test traced out: object MovieClip the other objects I'm trying to tween are actually MovieClips that I placed in an Array and I'm applying TweenMax on the Array, using the allTo method. Why don't I just give you the code I'm using. It's very short: import com.greensock.*; import com.greensock.easing.*; var lhopitalTimeline:TimelineMax = new TimelineMax(); // each object in the Array below is a letter of an 8-letter word var lhopitalArray:Array = new Array(lhopital_txt01, lhopital_txt02, lhopital_txt03, lhopital_txt04, lhopital_txt05, lhopital_txt06, lhopital_txt07, lhopital_txt08); trace (lhopitalArray); // output is just a bunch of commas with nothing between them lhopitalTimeline.appendMultiple(TweenMax.allTo(lhopitalArray, .5, {y:37}, .2), 2);
  8. Not sure if this is a GreenSock issue or a Flash issue... I'm currently working on a Flash project on two different computers. So I just carry the project with me on a flash drive. One computer runs Flash CS4, while the other has CS5.5 installed. So When on CS5.5, at the end of a work session, I just save the FLA to my flash drive as CS4 which normally opens up fine on the CS4 computer. Here's where the GreenSock part comes in... I was working today on the CS5.5 computer and made use of some GreenSock classes - TweenMax and TimelineMax. At the end of the day all was running fine, no errors. As usual, I saved the FLA as type CS4 and copied that onto my flash drive. Later, at the location of the CS4 computer I opened up the project - everything seemed to be in tact. But when I previewed the movie I got errors involving the GreenSock stuff. Just to make sure, I went back to the CS5.5 computer and hit ctrl+enter - the movie played perfectly, no errors. Can someone please help me out? The errors I'm getting are basically one error repeatedly. This is the error: I'd appreciate help with this. Thanks!
  9. I'm a bit confused about which greensock classes need to be imported when using TweenMax, or TimeLineMax, etc. My confusion could be due to my limited knowledge of AS3, but here's what's stumping me... The first import line is usually: import com.greensock.*; From my understanding the asterisk means that all classes of greensock are imported. So I figure I'm covered for all classes in the com.greensock folder. But then I often see examples where people are adding additional import lines in addition to com.greensock.*; For example: import com.greensock.easing.*; So, I'd appreciate it if someone could please explain why the classes in com.greensock.easing aren't imported with the previous greensock.* Thanks
  10. Hi. I'm new to GreenSock and Flash and ActionScript in general. I'm trying to do a scale tween of a MovieClip instance using TweenLite. The tween works, but it's scaling the MovieClip symmetrically around the center point of the MovieClip and I want it to scale only from the left side. I've selected my MovieClip, clicked the Free Transform Tool and moved the little circle that signifies the zero point for scaling to the MovieClip's right edge - but that doesn't seem to have any affect on the scaling when using TweenLite. Any ideas? Thanks.
  11. Thanks Carl, I think I see what you're getting at. The only thing though - I'm not sure using the reverse tween solution will be good in my case. The reason is that the MovieClip I'm tweening left and right has particular minimum and maximum x values that I don't want it to pass. When the MovieClip is farthest to the right x should equal 0, and when it is farthest to the left is should equal -5200 (which is basically the width of the MovieClip minus the width of the stage. I'm figuring that if I start out with the MovieClip exactly at x= -2600 that maybe it will work (am I right?). But I would prefer not to limit myself to this. Of course, I could be completely wrong here... as I've mentioned, I'm a newbie at AS3 and haven't really used GreenSock extensively before
  12. Hey Carl, thanks for sticking with me on this.... I'm afraid it's still not working though... I DID move the tween definitions outside the ROLL_OVER event listeners. The only thing I have setup differently is that I have two different tweens - left and right. Otherwise I can't figure out what could be making my code different from your example. It's kind of hard to describe what is going on now. The left button seems to work perfectly. The right button only works if it is rolled-over first, after that it becomes does nothing on ROLL_OVER or ROLL_OUT. Here's how the relevant part of my code looks currently: public function PanningEarth() { earthPanLeftTween = TweenMax.to(panningEarth, 20, {x:0, paused:true}); earthPanRightTween = TweenMax.to(panningEarth, 20, {x:-5200, paused:true}); } public function deerControllerOnStage(e:Event):void { panLeftBtn.addEventListener(MouseEvent.ROLL_OVER, earthPanLeft); panRightBtn.addEventListener(MouseEvent.ROLL_OVER, earthPanRight); panLeftBtn.addEventListener(MouseEvent.ROLL_OUT, pauseEarthPanLeft); panRightBtn.addEventListener(MouseEvent.ROLL_OUT, pauseEarthPanRight); } public function earthPanLeft(e:MouseEvent):void { earthPanLeftTween.timeScale = 1; earthPanLeftTween.play(); } public function earthPanRight(e:MouseEvent):void { earthPanRightTween.timeScale = 1; earthPanRightTween.play(); } public function pauseEarthPanLeft(e:MouseEvent):void { TweenMax.to(earthPanLeftTween, .5, {timeScale:0}); } public function pauseEarthPanRight(e:MouseEvent):void { TweenMax.to(earthPanRightTween, .5, {timeScale:0}); }
  13. Thanks. We're getting there.... I erased the lines: earthPanLeftTween.pause(); and earthPanRightTween.pause(); The ease out on ROLL_OUT works!! So that's cool. But after that, when I ROLL_OVER again on either of the buttons, the MovieClip doesn't continue the tween. In your example which I downloaded (thanks for that!) it works, but for some reason when implementing the same idea in my code - it doesn't work. Looking at my code, do you see what might be causing the problem? I can't figure it out Thanks...
  14. Hi Carl. I tried using the timeScale as you suggested. I'm afraid it doesn't help. Now, upon ROLL_OUT the tween just stops immediately, without easing out. Here's what my code looks like currently... (maybe I'm missing something?): panLeftBtn.addEventListener(MouseEvent.ROLL_OVER, earthPanLeft); panRightBtn.addEventListener(MouseEvent.ROLL_OVER, earthPanRight); panLeftBtn.addEventListener(MouseEvent.ROLL_OUT, pauseEarthPanLeft); panRightBtn.addEventListener(MouseEvent.ROLL_OUT, pauseEarthPanRight); public function earthPanLeft(e:MouseEvent):void { var panLeftDuration:Number = Math.abs(panningEarth.width - panningEarth.x) / stage.width; earthPanLeftTween = TweenMax.to(panningEarth, 20, {x:0, paused:true}); earthPanLeftTween.timeScale = 1; earthPanLeftTween.play(); } public function earthPanRight(e:MouseEvent):void { earthPanRightTween = TweenMax.to(panningEarth, 20, {x:5200, paused:true}); earthPanRightTween.timeScale = 1; earthPanRightTween.play(); } public function pauseEarthPanLeft(e:MouseEvent):void { earthPanLeftTween.pause(); TweenMax.to(earthPanLeftTween, .5, {timeScale:0}); } public function pauseEarthPanRight(e:MouseEvent):void { earthPanRightTween.pause(); TweenMax.to(earthPanRightTween, .5, {timeScale:0}); }
  15. Hey Carl, thanks for replying. You're suggestion is pretty much what I already had. I used the pause() on ROLL_OUT, but just didn't know how to make the pause() ease out and stop rather than come to an abrupt halt. You're addition: TweenMax.to(slideTween, .5, {currentProgress:".2"}); Seems to be getting close to what I need, but not quite there yet. On one hand, it doesn't stop the tween dead in it's tracks, yet on the other hand it hasn't exactly succeeded in smoothly continuing the motion of the tween before slowing down and stopping. Instead, upon ROLL_OUT the tween actually accelerates sharply at first and then slows down and eases out to a stop.
  16. Hi. I'm a newbie, pretty much starting out with AC3 and with barely any experience using GreenSock. I've done some searching to try and figure out my question, but haven't been successful. If someone can help me out here, that would be great! So here's the thing... I have a masked MovieClip in the center of my stage and two buttons on each side. one button moves the masked movie clip slowly left when ROLL_OVER and the other moves it slowly to the right when ROLL_OVER. Currently the ROLL_OVER triggers the MovieClip to tween to it's maximum left position or maximum right position, and there's the nice smooth ease out when it arrives at the end of the tween. So far so good. Now I want to add the ROLL_OUT functionality to the buttons. In other words, I want the MovieClip to stop tweening on ROLL_OUT rather than continue to it's farthest left or right point. But I also don't want the MovieClip to stop it's motion abruptly, but rather ease out and eventually come to a smooth stop. Can someone please help me understand how to do this with GreenSock? Thank you.
  17. Hi Carl, thanks for your reply. I think it might have answered my question... but I'm not absolutely sure. According to the video in the link you sent me I can take a motion tween that I built in the Flash timeline and control it using the TweenMax Frame Plug-in and entering the appropriate code in an actions layer in that same timeline. From this video I understand I can then use the plug-in to very easily change the speed of the tween and even make it play backwards. Going back to my original question - I have understood that motion tweening with GreenSock has not only functional advantages, as opposed to the standard motion tween offered in Adobe Flash, but also is superior quality-wise. For example here: http://www.greensock.com/tweening-speed-test/ So regarding your reply and reference to the TweenMax plug-in for controlling timeline based motion tweens - does this mean that the quality of the tween is improved as well? Will this make the tween a "GreenSock Tween" as far as the quality? or is it still an inferior quality standard motion tween, but with the added functionality provided by the plug-in? If my question is still unclear, please let me know. THX!
  18. Hi. I'm kind of new to all this. I've been using GreenSock for tweening in ActionScript. From what I've understood, the tweening done by GreenSock is superior in quality to the standard tween offered within Adobe Flash. Can someone please explain to me how to use the GreenSock tween also for timeline based animations done within Flash (as opposed to using GreenSock within in an AS3 based Flash project)? Thanks
  19. Hi. I'm using the onComplete() method to run a function when the tween of an object has finished and the object is no longer in motion. The code looks something like: TweenLite.to(this, 3, {y:(newY), onComplete:tweenEnded()}); private function tweenEnded() { trace("TWEEN HAS ENDED - HALLELUJAH!"); } The tween is hooked up to a listener and set to run when I hit one of the arrow keys on my keyboard. The strange thing is that I'm seeing the HALLELUJAH! message appear in the Output window as soon as the arrow key is hit and the tween starts, much before the tween is complete. Have I misunderstood the meaning of onComplete? Or what am I doing wrong? If there is a better way or more correct way to call a function when the tween has ended please let me know. I'm just starting out with AS3 as well as Greensock products. So... it could very well be that I'm making some really foolish mistake. Thanks!
×
×
  • Create New...