Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 902501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:43:39+00:00 2026-05-15T15:43:39+00:00

So I have that panel or any other mxml component. I want somehow to

  • 0

So I have that panel or any other mxml component. I want somehow to rotate it around like a wheel of a car with which you drive it… loke a Racing wheel… sow like when mousebutton is down it captures pont of component… when you move mouse component rotates (not moves) according to new mouse position… How to rotate MXML component round its center like a wheel respectfully to mouse?

welll feel free to edit this question because I know Ive formulated it in a bad way…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:43:39+00:00Added an answer on May 15, 2026 at 3:43 pm

    Add these to a utility class if you don’t want to add a dependency to fl.motion.*

    /**
         * Rotates a matrix about a point defined inside the matrix's transformation space.
         * This can be used to rotate a movie clip around a transformation point inside itself. 
         *
         * @param m A Matrix instance.
         *
         * @param x The x coordinate of the point.
         *
         * @param y The y coordinate of the point.
         *
         * @param angleDegrees The angle of rotation in degrees.
         * @playerversion Flash 9.0.28.0
         * @langversion 3.0
         * @keyword Matrix, Copy Motion as ActionScript    
         * @see flash.geom.Matrix         
         */
        public static function rotateAroundInternalPoint(m:Matrix, x:Number, y:Number, angleDegrees:Number):void
        {
            var point:Point = new Point(x, y);
            point = m.transformPoint(point);
            m.tx -= point.x;
            m.ty -= point.y;
            m.rotate(angleDegrees*(Math.PI/180));
            m.tx += point.x;
            m.ty += point.y;
        }
    
    
    
        /**
         * Rotates a matrix about a point defined outside the matrix's transformation space.
         * This can be used to rotate a movie clip around a transformation point in its parent. 
         *
         * @param m A Matrix instance.
         *
         * @param x The x coordinate of the point.
         *
         * @param y The y coordinate of the point.
         *
         * @param angleDegrees The angle of rotation in degrees.
         * @playerversion Flash 9.0.28.0
         * @langversion 3.0
         * @keyword Matrix, Copy Motion as ActionScript    
         * @see flash.geom.Matrix       
         */
        public static function rotateAroundExternalPoint(m:Matrix, x:Number, y:Number, angleDegrees:Number):void
        {
            m.tx -= x;
            m.ty -= y;
            m.rotate(angleDegrees*(Math.PI/180));
            m.tx += x;
            m.ty += y;
        }
    

    They are MatrixTransformer’s rotateAroundInternalPoint() and rotateAroundExternalPoint()

    That would be for 2d. For 3d see transformAround.

    Don’t forget to check if layout siblings are updated properly or not.

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a panel (or any other component) inside a component that
I have panel that is using group layout to organize some label. I want
I have made a JFrame and inside that frame, there is panel on which
I have a panel that draws alot of things. To make drawing effecient I
I have update panel that content check box, textbox, 3 DropDownList with CascadingDropDown extender.
I have a panel that is docked to the right side of a windows
I have a Panel that I'm setting visible=true explicitly. The debugger passes over that
I'm using asp.net/c# and have a number of Collapsible Panel Extenders that have been
i have a flow panel that i'm adding extra items to it at runtime
I have a form that will multiple Panel controls stacked on top of each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.