Jump to content


  • Posts

  • Joined

  • Last visited

Username's Achievements


Newbie (1/14)



  1. I set a normal PinPoint: ls.RIGHT_CENTER_MINUS_15PIX = new PinPoint(ls.CENTER, (RIGHT_CENTER-15)); And I add a EventListener for the stage, so that a new function will set the point new if the stage is resized?
  2. Okay, it was my fault at other place in the code. Flash called the quoted code before the MovieClip was added to stage. With the event added_to_stage it works. Sorry for causing confusion.
  3. I tried to fix PinPoints in another project. var area:LiquidArea = new LiquidArea(this, 0, 0, 100, 100, 0x313f19); scheinecke1 = new PinPoint(1,1,this); scheinecke2 = new PinPoint(100,100,this); scheinecke2.addEventListener(Event.CHANGE, onPointupdate); I want to create the points as you see here, ohne at 1,1 and one at 100,100. But by debugging I found out: function update in LiquidStage.as change the coordinates of the second point. Why? How could I avoid this?
  4. I see. If I want just 40% height, I create a new pin, right? Where you got the coordinates 34, -55 from? These have to been x, y from preArea.aTextArea? In my .fla these are -50,-22, or I am wrong?
  5. Thank you, this works, but I become irritated when I try the next step: This area should just fill in the half height (because another on should be under the first). So I change the height-parameter from 500 to 250: var area:LiquidArea = new LiquidArea(this.preArea, 34, -55, 250, 250, 0x313f19); But then the are is smaller than 50% if the stage is smaller than on start. But it should always have the half height and a fix width of 250 pixel. Or should I change the pin Corners? I don't get it, I spent two hours of trying methods in the docs, changing parameters and so on. This plugin doesn't seem to be intuitive (but the tween classes do).
  6. Thanks. Your code works, but if I put this component into a movieclip, it fails. And this is my problem. Check this small fla which has only this code and on the stage a movieclip with this component. liquidExample.zip
  7. Hello, I got LiquidStage via my club purchase. I'm tired of trying resize a textarea. In my swf (750x500) the textarea should have always width of 250, the height should be dynamicly. But if the window is smaller than 500 pixels height, the textarea doesn't fit the height. Is my code correct? TweenPlugin.activate([LiquidPositionPlugin]); var ls:LiquidStage = new LiquidStage(this.stage, 750, 500, 400, 80); var area:LiquidArea = new LiquidArea(this, 500, 0, 250, 500, 0x313f19); area.pinCorners(ls.TOP_RIGHT, ls.BOTTOM_RIGHT, true, 1, {ease:Elastic.easeOut}); area.preview = true; area.attach(aTextArea, ScaleMode.STRETCH, AlignMode.CENTER, AlignMode.CENTER);
  8. Hi is there a way to gotoAndStop in a timeline and call the onUpdate-Method? Check this runable example, problem in the last lines: import com.greensock.*; import com.greensock.easing.*; import flash.geom.Matrix; import flash.display.*; var myTimeline:TimelineMax = new TimelineMax({paused:true}); var colors:Object = {left:0xB8E46F, right:0x0066CC}; myTimeline.append(new TweenMax(colors, 3, {hexColors:{left:0xff9900, right:0x663399}, onUpdate:drawGradient})); var mySprite:Sprite = new Sprite(); addChild(mySprite); function drawGradient():void { var m:Matrix = new Matrix(); m.createGradientBox(220, 220, 0, 0, 0); mySprite.graphics.beginGradientFill(GradientType.LINEAR, [colors.left, colors.right], [1, 1], [0x00, 0xFF], m, SpreadMethod.PAD); mySprite.graphics.drawRect(0,0,220,220); } // this doesn't work, because drawGradient is not been calling myTimeline.gotoAndStop(2); // my dirty workaround myTimeline.timeScale=0.001; myTimeline.gotoAndPlay(2); // and then stops via event e.g. Of course, you can call after gotoAndStop the method drawGradient manually. But I call the event in the timeline with parametres which are addicted to the timeline. Thanks for every help.
  9. Is there a way to transform the volume globally? I just explored examples with transforming the SoundChannel of single Sounds, but not a solution to tween the volume of the Stage. var newTransform:SoundTransform; newTransform = new SoundTransform(0,0); SoundMixer.soundTransform = newTransform;
  10. Hello, I am trying to build a small application with the Free AS2 TransformManager. I can't buy the current version, because I am a student and have to earn that money next months. Is there a way to kick Items out of the free Manager, like ignoredObjects? I have some Items which should be after transforming stay, but it shouldn't be possible to transform these anymore. I haven't found a method for this. I appreciate every help.