Changing scaleX/scaleY on parent scales the children but doesn't update  height/width property ?

have created a custom component - MyImage - that has two children including a Bitmap as well as a Sprite.
My display object hierarchy is as follows -
mx:Canvas
  view:MyImage
     mx:Bitmap
     my:Sprite
If I change the MyImage.scaleX, scaleY property, the children scale as I would expect them to.
However when I try to place the children in the center using placeAgain() on getting a resize event:
    public function placeAgain():void
        if (image==null) return;
        var pCanvas:Canvas = this.parent as Canvas;
        if (image.width <= pCanvas.width)
            pCanvas.horizontalScrollPolicy="off";
            image.x = (pCanvas.width -image.width)/2;
        else
            pCanvas.horizontalScrollPolicy="on";
            image.x=0;
        if (image.height <= pCanvas.height)
            pCanvas.verticalScrollPolicy="off";
            image.y = (pCanvas.height -image.height)/2;
        else
            pCanvas.verticalScrollPolicy="on";
            image.y=0;
        alignKids();
I find the image.height & width have not changed despite the image getting scaled!
Isn't the child supposed to have its bounds changed after scaling its
parent ? Especially after the child has actually been scaled correctly ?
Why are bounds of the child stuck at the same value as before scaling? I
am not caching the Bitmap, have not turned on caching of bitmaps.

If I'm not mistaken, the bounds are updated with the scale. You rare not referencing the bounds, your referencing the width and height properties, which is a bit different. What happens if you use the getBounds function to get your dimensions?

Similar Messages

  • Clicking on update of an app opens the app it doesn't update why?

    why when clicking on update in App Store that it opens the app but doesn't update it? Please help

    What device are you referring to and what iOS version is it running?
    GB

  • HT5621 I changed my ID Apple with another email, i received the confirmation, i changed my password and also received the confirmation but when i try to download something on my iPhone it still shows me my okd email and nothing works ! ahhhhh what and how

    I changed my ID Apple with another email, i received the confirmation, i changed my password and also received the confirmation but when i try to download something on my iPhone it still shows me my old email and nothing works ! ahhhhh what and how do i solve this ?

    On your iPhone go to Settings > Store.
    Select the Apple ID at the bottom.
    Select Sign Out at the menu selection provided.
    Follow this by signing in with your new Apple ID/iTunes store account.
    All apps - all paid and free apps include DRM protection which is tied to the iTunes account that was used to download the apps. In order to install an app update for the apps downloaded with your previous Apple ID/iTunes account, you will need to use that account and password.

  • I need to change a new Apple id on the iPad but  I can not sign out the old Apple id on my iPad because I forgot the password and sec

    I Need to change a new Apple id on the iPad but I can't sign out the old one because I forgot the password and the security question.

    Yes, you can just log out of iCloud on the mini (Settings>iCloud> Sign out) and nothing will be affected as long as the iPad is not restored from any backup after that. Though if you're giving her the iPad I would highly recommend moving the pictures to your iPad (via this page) so that the mini can be reset and set up under your daughters ID to avoid Activation Lock in the future.
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    -Ethan

  • Iphoto icon bounces in the dock but doesn't open

    iphoto icon bounces in the dock but doesn't open

    Hi Terence, I hope you can help me too. I have a problem with opening iPhoto. It has always worked fine but now as soon as I click on the icon in the Dock or connect my camera I get the enclosed screen (see below). I have tried to re-install from iLife 11 Install Disk with no joy. I have moved my plist file to Trash. Any further suggestions please will be greatly appreciated.
    Many thanks,
    Brian
    Process:         iPhoto [240]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         ??? (???)
    Build Info:      iPhotoProject-5270000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [90]
    Date/Time:       2012-03-27 13:00:05.482 +0100
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          155049 sec
    Crashes Since Last Report:           6
    Per-App Crashes Since Last Report:   6
    Anonymous UUID:                      413183FB-E0A0-4D96-A97D-68916344CB13
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /Library/Frameworks/iLifePageLayout.framework/Versions/A/iLifePageLayout
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: image not found
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <39AC3185-E633-68AA-7CD6-1230E7F1CEF4> /usr/lib/dyld
    Model: MacBook2,1, BootROM MB21.00A5.B07, 2 processors, Intel Core 2 Duo, 2 GHz, 2 GB, SMC 1.13f3
    Graphics: Intel GMA 950, GMA 950, Built-In, spdisplays_integrated_vram
    Memory Module: global_name
    AirPort: AirPort Extreme, Atheros 5416: 2.1.14.6
    Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Built-in Ethernet, Ethernet, en0
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: WDC WD3200BEVT-11ZCT0, 298.09 GB
    Parallel ATA Device: HL-DT-ST DVDRW GWA4080MA
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8501, 0xfd400000 / 3
    USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0608, 0xfd100000 / 2
    USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0608, 0xfd140000 / 5
    USB Device: USB Audio CODEC, 0x08bb  (Texas Instruments Japan), 0x2900, 0xfd142000 / 7
    USB Device: Hub, 0x05ac  (Apple Inc.), 0x9102, 0xfd141000 / 6
    USB Device: Hub, 0x05ac  (Apple Inc.), 0x9118, 0xfd141100 / 8
    USB Device: Studio Display, 0x05ac  (Apple Inc.), 0x9218, 0xfd141130 / 9
    USB Device: Desktop, 0x0bc2  (Seagate LLC), 0x3300, 0xfd110000 / 4
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x021a, 0x1d200000 / 2
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8240, 0x5d200000 / 2
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8205, 0x7d100000 / 2

  • Music is on the shuffle but doesn't show in iTunes

    Okay. I've never had this problem before; I've got a 160GB iPod video and an old pink mini, both of which work fine with my computer(s) and iTunes.
    My problem is the shuffle. I got the 2GB one brand new, straight from Apple. I keep all of my music on an external drive. When I first hooked up the shuffle along with the external drive it had a major freak out and one would disconnect the other one every time I tried to use both at once. So I googled, read that sometimes you can't have other things plugged in at the same time as the shuffle. Ended up hooking both to a USB hub and they worked perfectly together.
    Plugged the shuffle back in today and there was no music listed on the shuffle in iTunes, however, it said that I had used up however many megabytes, with 71 songs on the shuffle. (You know the little bar down at the bottom?) Ejected it, hit play, and the music is all there. Reconnected, added one song, and it wiped out everything on the shuffle. So I readded everything I had on there, ejected, made sure I didn't have any playback problems, reconnected, and now the same thing is happening again. The bar shows that I've used the space but doesn't list any of my music. I haven't tried to add any more songs because I don't want to go through readding all of that stuff again right now.
    So, any thoughts? I disabled automatic syncing for all of my iPods, and I don't use the autofill option. I've only used one of my computers to add music so far, and haven't had any problems adding purchased content.
    Any help would be greeeatly appreciated. And if anyone is in need of a visual for what I'm talking about, screen caps are here:
    http://img.photobucket.com/albums/v376/littlestarsfan/itunes1.jpg
    http://img.photobucket.com/albums/v376/littlestarsfan/itunes2.jpg

    but the iPod shuffle doesn't show up in the drives section so I can't change it to begin with.
    Per the article above, you don't start with changing the drive letter of your iPod. You start by changing the drive letter of your networked volume (usually, an external drive).
    "Resolution
    Solution
    This issue is documented in Microsoft Knowledge Base document 297694, "New Drive or Mapped Network Drive Not Available in Windows Explorer".
    Changing the drive letter of your network volume should resolve the issue. If you are unable to change the drive letter of the network volume because your programs depend on a specific drive letter, then you can use the following steps to change the drive letter of your iPod instead.
    Important: Changing the iPod drive letter may not affect what letter the iPod uses on subsequent connections, so it is not the best long-term solution. If you are unable to change the drive letter of your mapped network drives, contact your system administrator."

  • I have a VGA adapter and an iPad2.  Tried projecting my iPad2 to projector using the VGA but doesn't work.  Tried it with friend's iPad1 and it works.  Why??

    I have a VGA adapter and an iPad2.  Tried projecting my iPad2 to projector using the VGA but doesn't work.  Tried it with friend's iPad1 and it works.  Why??  Pls help.

    Yup - nothing happens.  I then took the same VGA cable and plugged it into my friend's iPad1 and it worked perfectly when she opened Keynote.  My understanding is that the iPad2 mirrors the entire screen, so no need to go into any specific application in order to project to the screen, right?  Do I need to download any specific app or change any settings in order to be able to project the screen using VGA?
    Sorry - novice at this.  Not very tech minded either...

  • I just purchased an iPad 3 and it works great with most of my email accounts, but with an imap account from school it will download the content of the folders in the account, but doesn't download the messages in the inbox.

    Hi,
    I just purchased an iPad 3 and it works great with most of my email accounts, but with an imap account from school it will download the content of the folders in the account, but doesn't download the messages in the inbox. I have deleted and created the account several times. I have checked the status of the account and it's active and works either from safari or from my Mac or iPhone. I have turned off both my Mac and my iPhone as not to have competing devices, I can even send emails from the account successfully. It simply won't download the content of the inbox. Help!

    Hi Csound1, thanks. The email host is 1and1.co.uk, however, i am going to fess up and make myself look like a plonker now -
    the email account in question was set up in Outlook as POP - stupid, stupid, stupid me, wasted an afternoon on this!  I have now changed the Outlook account to IMAP and Mail.app works perfectly - and looks much nicer than Outlook did.  Im in the middle of converting from Windows to a Mac, and still finding my way around the Mac
    The lesson learned, never assume - always double  check!  All my other email addresses with 1and1 are all imap, except this one, and it happened to be the first one I set up in the Mail.app. (bows head in disgrace!)
    Thank you anyway for attempting to help me!
    Cheers

  • Double clicking on a file launches the app but doesn't open the file anymore. Why?

    Double clicking on a file launches the app but doesn't open the file anymore. Why?

    I would post in the Illustrator forum here http://forums.adobe.com/community/illustrator or the Dreamweaver forum here http://forums.adobe.com/community/dreamweaver. One of these product forums will be able to help.

  • TS1538 I can't connect my ipod4 to itunes 9 on windows vista but it appears in the pc but doesn't appear in itunes  can somebody help

    I can't connect my ipod4 to itunes 9 on windows vista but it appears in the pc but doesn't appear in itunes  can somebody help

    Yes
    http://www.apple.com/itunes/download/

  • Facetime says connecting after you answer the call but doesn't actually connect and both iphone 5s were quick reset-ted and facetime was turnt on and off, any reasons like why or how and how to fix this concerning issue

    facetime says connecting after you answer the call but doesn't actually connect and both iphone 5s were quick reset-ted and facetime was turnt on and off, any reasons like why or how and how to fix this concerning issue

    Apple has released a document which is reported to address the recent FaceTime issue.
    http://support.apple.com/kb/TS5419

  • Artwork doesn't print when printing cd insert, it shows on the preview but doesn't print?

    Hi, after downloading the latest version of Itunes, the artwork no longer prints on the cd insert? It shows on the preview, but doesn't print on the insert? It worked fine before and the printer is working fine, it prints color photos and artwork, no problem?

    Since you can see it in your device list it must have Find My Mac activated, but you're going to have to wait for them to take it online in order to either locate, lock or wipe it. Until it goes online you can't do anything. http://www.apple.com/support/icloud/find-my-device/
    iCloud: Locate your device

  • Macbook pro late 2011. Have power on the battery but doesn't turn on at all.

    Macbook pro late 2011. Have power on the battery but doesn't turn on at all. Not even a sound, my mac has stayed turned off in nearly a month and now its not working???
    Any ideas to what the problem could be?
    Regards// Michael

    If a SMC reset does not bring life to your MBP, make an appointment at an Apple store genus bar for a free diagnosis.
    http://support.apple.com/kb/ht3964
    Ciao.

  • After i update the 10.10.2 OS X Yosemite my iPhoto stops working. In the warning that appears when I try to open the app says that happened a mistake because of this update. I reinstalled the app but doesn't work anyway. Please, HELP!

    after i update the 10.10.2 OS X Yosemite my iPhoto stops working. In the warning that appears when I try to open the app says that happened a mistake because of this update. I reinstalled the app but doesn't work anyway. Please, HELP!

    I already tried that but it doesn't work. Appears a warning saying: "See the developer to make sure that iPhoto works with this version of OS X. You may need to reinstall the application. Be sure to install all available updates in the application and OS X."

  • I dropped my phone last night on the floor and now it doesn't seem to be charging.  it comes up the battery on the screen but doesn't actually seem to charge.  i kept it on charge over night but that didn't work either.

    i dropped my phone last night on the floor and now it doesn't seem to be charging.
    it comes up the battery on the screen but doesn't actually seem to charge.
    i kept it on charge over night but that didn't work either.
    can anyone help?

    You need to get your phone repaired.   It's obviously damaged, and nothing we can suggest to you will fix that.

Maybe you are looking for

  • Adobe Creative Cloud won't install

    Hey guys, I recently tried to install Adobe Creative Cloud but during the installation process it will suddenly quit on me. I tried it again, downloaded the installer again, rebooted my computer, but still can't get it to work. I do have other Adobe

  • Is there a way to have the same music and playlists on 2 separate iPhones

    Is there a way to have the same music and playlists on 2 separate iPhones

  • How do  I make a ring tone for iphone 4

    How how do  I make a ring tone from my original music , all I read is old  , surely I can convert something to a ringtone  for my iphone 4. Just seems like I cant do anything without buying something from Apple ... need some help , iM geetting tired

  • OBIEE: incorrect selection of fact table when generating SQL

    I have 2 dimension tables ("DimA" and "DimB") connected with one fact table ("Fact1"). Also (only) "DimB" is connected with another fact table "Fact2". When I want to make a report with one attribute ("Attribute_A") from "DimA" and another one ("Attr

  • Error - Connecting SharePoint 2013 with OWA

    We are configuring OWA on SharePoint 2013. Installation and configuration of OWA is done are when the "https://<InternalName>/hosting/discovery" is typed in browser, XML is being displayed on the Web Front end server.  There is an error on running th