Jump to content
Search Community

adifrank

Members
  • Posts

    23
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

adifrank's Achievements

0

Reputation

  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}); }
×
×
  • Create New...