http://www.google.it/search?rlz=1C1GGLS_itIT301IT303&sourceid=chrome&ie=UTF-8&q=display+object+registration+point+flash


On 9 February 2010 12:55, beno - <[email protected]> wrote:

> Hi;
> I have this code:
>
> package
> {
>   import flash.events.Event;
>   import flash.events.ProgressEvent;
>   import flash.events.Event;
>   import flash.events.MouseEvent;
>   import flash.display.MovieClip;
> import flash.display.Loader;
> import flash.display.LoaderInfo;
> import flash.display.DisplayObject;
> import flash.net.URLRequest;
> import flash.display.Shape;
> import flash.geom.*;
> import flash.display.Bitmap;
> import flash.display.BitmapData;
> import flash.filters.GlowFilter;
> import flash.filters.BitmapFilterQuality;
> import flash.geom.Rectangle;
> import com.greensock.*;
>   import com.greensock.easing.*;
> import SpinningWorld;
>  public class GlobalSolutions extends MovieClip
>   {
>      //Import Library Assests
> public var mySpinningWorld:SpinningWorld;
> public var radius:int = 500;
> public var textureMap:BitmapData;
> public var myLogo:Bitmap;
>      public function GlobalSolutions()
>      {
>         init();
>      }
>
>      public function init():void
>      {
> mySpinningWorld = new SpinningWorld();
> mySpinningWorld.x = -500;
> mySpinningWorld.y = -500;
> mySpinningWorld.alpha = 0;
> addChild(mySpinningWorld);
> TweenLite.to(mySpinningWorld, 1, {x:-100, y:0, scaleX:0.4, scaleY:0.4,
> alpha:1});
> loadImage();
> }
>
> private function loadImage():void
> {
> var path:String = "images/logo.png";
> var req:URLRequest = new URLRequest(path);
> var loader:Loader = new Loader();
> loader.load(req);
> loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
> }
>
> function loaded(evt:Event):void
> {
> var loaderInfo:LoaderInfo = evt.target as LoaderInfo;
> var displayObject:DisplayObject = loaderInfo.content;
> displayObject.width = 150;
> displayObject.height = 150;
> displayObject.x = 1000;
> displayObject.y = 208;
> addChild(displayObject);
> displayObject.alpha = 0;
> TweenLite.to(displayObject, 1, {x:65, y:117, scaleX:0.5, scaleY:0.5,
> rotation:520, alpha:1});
> }
>   }
> }
>
> For some reason, "logo.png" describes an arc as it spins on its axis,
> similar to, say, the Earth spinning on its axis while simultaneously
> rotating around the Sun. The gent from greensock tells me this is because
> I've misplaced my registration point, but this graphic doesn't have a
> registration point as far as I can see. So what gives? How do I get rid of
> the arcing?
> TIA,
> beno
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to