Jump to content
Search Community

Mazoonist

Members
  • Posts

    8
  • Joined

  • Last visited

Contact Methods

Recent Profile Visitors

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

Mazoonist's Achievements

0

Reputation

  1. Wow! Thanks for that. I was unaware of the onInit function as well. How nice! Anyway, the more I think about it, the more clear it becomes that in order to scrub this animation, the entire course of the sweeper around the pool (and all of its positions, turns, etc) is going to have to be calculated ahead of time. Hmm... maybe I could have it make a dynamic "dry run" (no pun intended) first really fast, record all the positions into an array, and then proceed with the "real thing," which could then be scrubbed with no problem. What fun!
  2. Actually, I could do an onComplete function after each TweenMax command that updates the new position of the sweeper. Maybe that's the answer! (I'm not sure if that kind of dynamic updating will "scrub," though). Anyway, if you have any hints, I appreciate it. I certainly don't expect any more than that, though, as I'll work it out, I'm sure.
  3. Wow! Thanks for the speedy, concise answers. Actually, I am working on a project that's a pool cleaner. Check out this web page: http://dhngrafik.se/tittbild/flash.asp? ... version=10. They made that animation on flash's timeline. I am trying to do it all with code instead, but I am still going to try to provide the scrubber bar so the animation can be scrubbed. That's why I'm trying to do it all in the context of a timeline. So now you can see that I will need to continually rotate the cleaner on a point that is within its own coordinate space, not just once, and based on wherever it is at (it may be unpredictable, I'm not sure). Can you give me any ideas on how to do this? Hints? Is there perhaps a way to dynamically change the registration point, or is that even necessary? Right now I have a couple of tiny nested "pivot_point" movie clips nested inside the sweeper clip, and some methods defined for getting their global x and y values. Hey, I appreciate your time, so don't think my barrage of questions is taken for granted or anything. I really and truly appreciate it. If you remember me, I'm the guy who's going to interview you someday.
  4. Okay, I don't feel so bad now, because I do believe I have an intelligent question this time. Suppose I have an mc I want to write a timeline for. I want it to tween 400 pixels to the right, then rotate clockwise 30 degrees on its own registration point, then proceed to tween 200 pixels down. Here's what I've got: import com.greensock.*; import com.greensock.easing.*; import flash.geom.Point; import com.greensock.plugins.*; import fl.transitions.easing.*; TweenPlugin.activate([TransformAroundCenterPlugin, ShortRotationPlugin, TransformAroundPointPlugin]); var timeline:TimelineMax = new TimelineMax(); timeline.append(new TweenMax(mc, 1, {x:"400"})); timeline.append(new TweenMax(mc, 1, {transformAroundPoint:{point:new Point(mc.x, mc.y), rotation:"30"}, ease:None.easeNone})); timeline.append(new TweenMax(mc, 1, {y:"200"})); Only now, the trouble is that the point I supplied in the second command there is being read from the starting point of the mc. How can I make that point a relative value (to where the mc has moved after the first command), similar to the trick of using quotes? On another note, notice that above I am using the fl.transitions.easing package to get an easing of "none." I kind of wondered what i really should do if I don't want easing, though, as I understand your tweens have a default easing of Quad.easeOut, and I wondered why you didn't also include some kind of None.easeNone in your classes? Or even why there is a default easing instead of no easing at all being the default?
  5. Jack, thanks for the help! I totally forgot about the significance of the quotes! Awesome, now I can make it do whatever I want! I feel so empowered!
  6. sheesh! Nevermind, I figured it out. I forgot that the whole timeline is read in all at once and is then pre-ordained. So my rotation:mc.rotation + 180 is getting evaluated in every line right up front. If I make the second one say rotation:mc.rotation + 360, it works as expected.
  7. Forgive my ignorance. I'm sure it's because I am following up with another tween on the same object. Because when I try it with two different objects, it works great. So what am I missing in order to get two consecutive tweens on the same object working on a timeline?
  8. I have the "shockingly green" classes (many, many thanks, Jack!), and I'm trying to do the following using the "transform around point" plugin. It's not working-- only one of the tweens is playing. Am I barking up the wrong tree, or can transformations like this be included in timelines too? import com.greensock.*; import com.greensock.easing.*; import flash.geom.Point; import com.greensock.plugins.*; TweenPlugin.activate([TransformAroundCenterPlugin, ShortRotationPlugin, TransformAroundPointPlugin]); var timeline:TimelineMax = new TimelineMax(); timeline.append(new TweenMax(mc, 1, {transformAroundPoint:{point:new Point(mc.x, mc.y), rotation:mc.rotation + 180}, ease:Elastic.easeOut})); timeline.append(new TweenMax(mc, 1, {transformAroundPoint:{point:new Point(mc.x, mc.y), rotation:mc.rotation + 180}, ease:Elastic.easeOut}));
×
×
  • Create New...