Jump to content
Search Community

x0b

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by x0b

  1. The className plugin will not overwrite any properties that have been set using the ID selector in CSS. This works: http://codepen.io/x0b/pen/iAqom This doesn't: http://codepen.io/x0b/pen/hKDie Is this the correct behaviour? Thanks
  2. Thanks for the solution, the false argument in updateSelection works a treat, I'd have probably bothered to read the docs if I wasn't so under the cosh with this project! I think I'll leave the customisation due to time constraints but thanks for the hint. I have to say my colleagues and I are truly grateful for the brilliant work you have done over the years, thanks
  3. Thanks for the quick reply. I have done as you say by doing the following: if (displayObject.scaleX > displayObject.scaleY * 1.22) { displayObject.scaleX = croppingTool.scaleY * 1.22; transformManager.updateSelection(); } This works perfectly if scaleFromCenter is set to true, unfortunately I need that setting as false. When it's false, the transform manager seems to adjust the displayObjects scale back to another smaller value and then the second time (whilst still dragging the scale control) it reaches the limit it works as expected. I have attached an FLA to demonstrate this. Thanks, Alex
  4. I would like to be able to restrict the tool so it can only be sized between two ratios: (in h:w) 1:1.22 and 1:68. If the tool is adjusted outside these values, I would like to be able to force constrainScale. What would be the best way of doing this? I have hacked the class a bit so I know when the user is dragging a corner handle and a side handle, this way I can make the corners drag in constrained scale and the side handles non-constrained, then I would need to listen to the TransformEvent.SCALE event and act accordingly when they are outside the ratio. Again, I'm not sure how to implement this. Thanks for any help!
  5. I only looked in the TransformManager API (as I assumed it would be a global thing) and not TransformItem. I guess it makes more sense to be able to set different values per item. Thanks
  6. Is there a way with Transform Manager to restrict the scaling from say 0.25 - 2 ? I can't see anything in the API but this would be a very important feature to have.
  7. I've been using Senocular's Transform Tool and have run into the same problem documented here : http://www.sephiroth.it/weblog/archives ... p_hell.php I've tried amending the class myself to incorporate the fixes as supplied in the comments on there but it's slightly over my head. The reason I'm on this forum - I'm wondering if Transform Manager takes this problem into account and overcomes it? If so, then I'm going to invest! Thanks
  8. hi, firstly i'd like to say thanks for creating a brilliant tweening library, i love it! i'm having problems tweening 3d objects using the built in fp10 3d engine. i have a timeline tween that i want to create a tweenlite tween from and then duplicate it for other objects. i am using the bezierthrough plugin as well to tween along a path. i have used the motion editor in the ide to copy all values that change along the path into a tweenlite instance as follows: TweenLite.to(item, 3, {bezierThrough:[{x: 486.6,y: -46.4,z: 408.1, rotationX: -36.6, rotationY: 2.1, rotationZ: 1.1}, {x: 488.6,y: 24.9,z: 542, rotationX: -39.9, rotationY: 1.2, rotationZ: 1.8}, {x: 492.3,y: 99.9,z: 672, rotationX: -41.9, rotationY: -0.2, rotationZ: 1.7}, {x: 524.3,y: 187.9,z: 745, rotationX: -44.9, rotationY: -0.2, rotationZ: 1.7}, {x: 567.8,y: 278.9,z: 847, rotationX: -45, rotationY: -2.3, rotationZ: 1}, {x: 744.2,y: 560.1,z: 1302.7, rotationX: -45, rotationY: -2.3, rotationZ: 1}], ease: Linear.easeNone}); the problem is this tween acts differently to how it does when playing the tween on the timeline in the ide, it seems between bezier points the object moves from side to side, whereas it doesn't in the timeline tween. you can see the two examples here: (please ignore the colour of the objects, they are irrelevant) the correct motion using timeline : http://disturbmedia.com/alex/tweens/timeline.swf the tweenlite motion which kind of wobbles between bezier point : http://disturbmedia.com/alex/tweens/tweenlite.swf i have noticed that on each keyframe the 3d center point has different values, but i don't see any way of adjusting these using code. does anyone know if this is what is making my tween appear different by using these two different methods? is there something i'm missing or not using correctly in tweenlite? thanks!
×
×
  • Create New...