Jump to content
Search Community

algro

Members
  • Posts

    9
  • Joined

  • Last visited

algro's Achievements

0

Reputation

  1. I'm using LiquidArea to center the content of my site. I implemented it like the following: … this._liquidStage = new LiquidStage(this.stage,550,400); this._area = new LiquidArea(this, 0, 0, 550, 1000, 0xFF0000); this._area.pinCorners(this._liquidStage.TOP_LEFT, this._liquidStage.BOTTOM_RIGHT,false,0.5, {ease:Cubic.easeIn}); this._area.preview = false; this._area.attach(this._viewContainer, ScaleMode.NONE,AlignMode.CENTER,AlignMode.TOP,{strict:true,roundPosition:true}); Now I try to get some assets in the viewContainer displayed pixel-perfectly. Even if I use cacheAsBitmap for those assets, sometimes they appear sharp but sometimes not. When the stage.stageWidth has an even seize, the assets keep being sharp all the time(also after resizing the browser-window) When the stage.stageWidth is odd, the appear blurry (also when resizing the browser window) How could I solve that? Thanks for any hints.
  2. When I use the example before I get the error #1069: Property score not found for "ClassX" What am I doing wrong ? Here my Code: package { import com.greensock.TweenLite; import flash.display.Sprite; public class TweenTest extends Sprite { private var _test:Number = 10; public function TweenTest() { TweenLite.to(this,1,{_test:200}); } } }
  3. I've got a container(sprite) with children(sprites) added to it. When I scale the container, I would like to get the new width of a child, but get always the original dimensions. How do I overwrite the children-width ? Thanks
  4. I also tried the native-Dropshadowfilter on the image which caused the same problem. I will try your solution, thanks
  5. I'm using additionally the DropShadowFilterPlugin on the same image. Apparently the combination of those leads to the conflict. Is there a way to solve that?
  6. I'm using the transformAroundCenter-Plugin for scaling and rotating an image, as soon as I ROLL_OVER/ROLL_OUT. Unfortunately the image bounces back and forth even when the mouse-pointer does not leave the visible image. I removed all EventListener from the image and I'm adding them, as soon the tween has finished. Even then it does not work. When I disable the transformAroundCenter-Plugin, everything works fine. Any suggestion ? Thanks in advance
  7. I would like to draw a border around an loaded image which has been scaled with scalemode:"proportionalOutside" … private function onImageLoaded(e:LoaderEvent):void { var imgLoader:ImageLoader = e.target as ImageLoader; var img:Sprite = imgLoader.content; addChild(img); img.graphics.lineStyle(5,0x000000); img.graphics.drawRect(0,0,???,???); } I tried imgLoader.content.width and imgLoader.rawContent.width and img.width the border never fits to the actual visible imageSize. Thanks for help
  8. I did successfully load a image-queue. After that, when finished loading, I would like to add another image to the same queue. How can I archive that without having to reload the whole queue but only the additional image? At the moment it looks like this: this._queue = new LoaderMax({name:"queuename",onComplete:allComplete}); for(var i:int = 0; i{ this._queue.append(new ImageLoader("image.jpg",{name:i,onComplete:itemComplete})); } this._queue.load(); private function itemComplete(e:LoaderEvent):void { var imgLoader:ImageLoader = e.target as ImageLoader; var img:Sprite = imgLoader.content; addChild(img); } //now I would like to add another image to the same stack...
×
×
  • Create New...