2 Replies Latest reply on Jul 15, 2011 9:54 AM by saisri2k2

    Resize Flash Player Based on Flex Content

    JayStang Level 1
      Is there an easy way to resize the flash player based on the content of the flex app?

      For example i have a flex app that starts off being 200px tall. I then add 5 new children to the app when i click a button. This of course causes the flex to scroll because it is now 320px worth of content in a 200px tall flash player. I would like the flash player to open up to be the correct size so the flex never scrolls. I know i can talk to javascript and resize the embeded object but in my specific situation children are being added and removed from the canvas quite often and i would like a simple way that i don't have to manually calculate the height every time something happens.