Adobe Solution Partner

January 24, 2008

Shan’s Simple Examples: Scale all children in Flex

Filed under: Flex & Flash, Shan's Simple Examples — Tags: , — Shannon Hicks @ 7:23 am

I’ve decided since I attempt to help people in #flex (on EFNet) and #coldfusion / #cfflex (on DALNet) on a daily basis, that I’ll pick one simple question and try to whip up an example for everyone to see.

Today, someone asked how to scale all children of a container. The basic answer is to just loop over all the children, and set their scaleX and scaleY properties.

Click through for the example and source code.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • StumbleUpon
  • Technorati
  • TwitThis

2 Comments »

  1. hi, i’ve been wondering about this so thankyou.

    is there no equivalent in Flex to in Flash where you would scale a movieclip it’s children would then scale? (same with alpha, point, rotate etc)

    if this isn’t possible could you explain why, is a canvas not translated to a movie clip? or is it translated to just x,y reference for the objects inside it?

    regards, Rich

    Comment by Rich — January 12, 2009 @ 12:00 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

 

Server Down?

Maximize Web application uptime by drawing upon Webapper's years of experience tuning and stabilizing many of the world's largest ColdFusion Web applications. Contact us today!