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

  • SEARCH
  • Home
  • 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 603551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:56:36+00:00 2026-05-13T16:56:36+00:00

I have some code generated by Flash Catalyst, and I need it to be

  • 0

I have some code generated by Flash Catalyst, and I need it to be resizable & rotatable.

At the moment, I have no idea how to get this to happen.

The basic idea is:

  • I have a windmill.
  • windmill contains windmillBlades.
  • windmillBlades rotate.
  • windmill resizes.
  • When the windmill resizes, the windmillBlades should scale dynamically with the windmill.

The code below is a simplified outline of the structure of a demo app I prepared, ready to paste into your ide:

http://gist.github.com/300207

Please check out
the source and see if you can help
because this is mission critical
for me. :/

<s:Group id="windmill" width="50" height="200">
    <s:Group id="windmillBlades" resizeMode="scale" verticalCenter="0" horizontalCenter="0">
         <s:Line xFrom="0" xTo="140" yFrom="0" yTo="140">
            <s:stroke>
                <s:SolidColorStroke color="0xBC311E" weight="16" />
            </s:stroke>
        </s:Line>        
    </s:Group>
</s:Group>

Thanks!

edit: Note this is an abstraction of my real app, I’m not building a windmill simulator.

  • 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-13T16:56:36+00:00Added an answer on May 13, 2026 at 4:56 pm

    This works:

    <s:Group id="windmill" width="50" height="200" x="400" y="400">
        <s:Group id="windmillBlades" resizeMode="scale" width="100%" height="100%">
             <s:Line xFrom="0" xTo="140" yFrom="0" yTo="140">
                <s:stroke>
                    <s:SolidColorStroke color="0xBC311E" weight="16" />
                </s:stroke>
            </s:Line>        
        </s:Group>
    </s:Group>
    
    <s:VGroup>
        <s:HSlider id="scaler"
            minimum=".1" maximum="2" snapInterval=".01"
            valueCommit="{windmill.scaleX = windmill.scaleY = scaler.value}"/>
        <s:HSlider id="rotator"
            minimum="0" maximum="360" snapInterval="1"
            valueCommit="{windmill.rotation = rotator.value}"/>
    </s:VGroup>
    

    I’m not to sure the best way to make a full windmill (with s:Line and all, probably just a repeater?), but this is a good way for rotating the windmill. Instead of rotating every line (lots of calculations), just rotate the whole group. And if the windmillBladles width and height are 100%, they will automatically scale with the Group.

    If you want to make the blades each individually rotate around their center, that’s a lot harder. Luckily there’s the ILayoutElement#transformAround method (which UIComponent has), which allows you to rotate/scale/transform around an arbitrary center. Try using that if that sounds better.

    Good luck,
    Lance

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

Sidebar

Ask A Question

Stats

  • Questions 377k
  • Answers 377k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Thought I should answer for posterity - I solved the… May 14, 2026 at 8:47 pm
  • Editorial Team
    Editorial Team added an answer First of all thanks to user332768 and bert. I tried… May 14, 2026 at 8:47 pm
  • Editorial Team
    Editorial Team added an answer The Patterns and Practices Sharepoint Guidance release on CodePlex has… May 14, 2026 at 8:47 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.