Skip navigation
Currently Being Moderated

Registration Point of Uiloader!

Feb 3, 2010 3:49 PM

How can i change registration point of uiloader?

because that loader loads images which needs to be zoomed for productional purposes, but it does not zoom the center, it zooms through to reg point..

pls help

ty

 
Replies
  • Currently Being Moderated
    Feb 3, 2010 3:52 PM   in reply to Ziedrich

    The loader zooms the reg points of the objects, reset the objects reg point to the center.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 3, 2010 4:13 PM   in reply to Ziedrich

    Try:

     

    myLoader.addEventListener(Event.COMPLETE, center);

     

    function center(event:Event)

    {

         e.target.x = (stage.stageWidth/2) - e.target.width/2;

         e.target.y = (stage.stageHeight/2) - e.target.height/2;

    {

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 3, 2010 5:05 PM   in reply to Ziedrich

    Ziedrich wrote:

     

    Try:

     

    myLoader.addEventListener(Event.COMPLETE, center);

     

    function center(e:Event)

    {

        " e".target.x = (stage.stageWidth/2) - e.target.width/2;

        " e".target.y = (stage.stageHeight/2) - e.target.height/2;

    }

    What is "e" in your code. Ty again.

    Sorry.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 31, 2013 8:09 AM   in reply to waterdad568

    You see when you made the function you say e:Event, e holds many properties.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points