Jump to content
Search Community

cmal

Premium
  • Posts

    31
  • Joined

  • Last visited

Everything posted by cmal

  1. I should add the reason why I, or someone else, might want to do this. I have an EnterFrame event set up to animate based on the value in an array. And to make this animation smooth it would be easier to use TweenLite.
  2. Is there a way to tween a value that is not something like x, y, width, or height? As an example: Let's say I have an array: var myArray:Array = new Array; myArray[0] = 5; I want to change the value of myArray[0] over time, let's say from 5 to 10, and I want the values to tween over time just like the Y value could tween in a typical TweenLite example. Is it possible to do this?
  3. I've been tinkering around with the Simple3D beta and I think it's really wonderful (as I expected). I am running into a small issue though which I'm having a very hard time resolving. On some of my objects that I'm using as a source for the Simple3D transform, the process of running them through Simple3D is creating a distorted version of the original once I run .hide() on the Simple3D Object. It isn't actually the .hide() that is creating the distortion, though, the clips become distorted as soon as I use them as the target of a new Simple3D. The Simple3D version of the object looks fine, but once I .hide() it to reveal the original, there is some weird distortion and artifacting visible. Can you think of any reason why this would be? Here is the code I'm using, and below it are some screenshots (the item I'm using Simple3D on is the texbox with the close button, and this forum is cropping off some of the right edge of the image): var textContent:MovieClip = MovieClip(newClip.getChildByName("textContent")); // Add dropShadow filter to textContent before moving on var my_shadow:DropShadowFilter = new DropShadowFilter(); my_shadow.color = 0x000000; my_shadow.blurY = 32; my_shadow.blurX = 32; var filtersArray:Array = new Array(my_shadow); textContent.filters = filtersArray; var vanishingPoint:Point = new Point(textContent.x, textContent.y); var my3DView = new Simple3D(textContent, {precision:2, vanishingPoint:vanishingPoint}); my3DView.rotationX = 90; my3DView.alpha = 0; // Run this when ready to flip the content in flipContentIn(); function flipContentIn ():void { TweenMax.to(my3DView, 0.5, {alpha:1, z:0, rotationX:0, rotationY:0, rotationZ:0, ease:Quad.easeOut, delay:2, onComplete:swap3D}); }; function swap3D ():void { my3DView.hide(); };
×
×
  • Create New...