How do I get FlexContentHolder content to resize?

I'm creating a Flash SWC for use in an AIR project.
I created a component which I tweened from big to small.
I tried sampling the width/height at different keyframes (using both flash actions and the flex debugger) and the object always reports itself to be the original width/height.
The result is that any content I assign to the SWC container does not resize when the tween happens.
Is there another way to put dynamic flex content into a SWC?

I'll answer my own question in case anyone else runs into this.
You have to add something called FlexContentHolder to the inside of a Flex container to make this work.
  - If you add the container and set it's content you'll see nothing.
  - If you add a content holder without a container, you'll see your content, but it won't tween.
To do it right:
In Flash:
  1. Add a MovieClip
  2. Convert to Flex Container
  3. A symbol was added to the library called FlexContentHolder when you converted your movie clip
  4. Go into your newly added Flex Container and drag the FlexContentHolder from the library into your container
  5. Give the Container and ContentHolder instance names
In Flex:
  6. Add the SWC to your library
  7. Create your content group and give it an ID
  8. Create an instance of your SWC
  9. Assign your content group to the SWC's 'content' property.
10. <SWC container id>.<SWC content holder id>.content = <your content ID>
Good luck and please reply with any corrections or more efficient method you might have!

Similar Messages

  • How can i get the content of JTextArea with out loosing Indentation.

    I am developing one mail sending application. I am getting mailid , from address, mail body from one Swing. In one JTextArea i am typing i have typed some matter. When i call the content of JTextArea using
    jtx.getText() method, i am getting all the content as one paragraph. That means there is no indentation which was there in TextArea.
    Please provide me some solution how can i get the content of JTextArea wiht out loosing indentation.

    And it was you who asked the question!

  • My computer crashed and my itunes library only has my purchases which is 645 songs instead none of my play lists.  my 60g ipod has 1145 songs and all my playlists.  how do i get this content back to my itunes program

    my computer crashed and i had to reinstall intunes.  i have 1144 songs plus some playlists on my old 60g ipod.  my itunes library on my computer only has the songs that i purchased from itunes and none of playlists.  how do i get this content form my ipod back onto my itunes program on my computer.

    check out this post by Zevoneer.

  • My iTunes library is on an old PC that no longer works. I purchased a new iPod Touch.  How can I get the contents of my library to the new iPod?

    My iTunes library is on an old PC that no longer works. I purchased a new iPod Touch.  How can I get the contents of my library to the new iPod?

    My iTunes library is on an old PC that no longer works. I purchased a new iPod Touch.  How can I get the contents of my library to the new iPod?

  • I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  The title is there but no contents.  It won't even play the playlist.  How do I get the contents of the book?

    I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  It won't even play the book, there are no contents.  How do I get the contents of the book?

    I'm guessing this is a problem unique to me as there have been no replies at all...  Thanks a bunch folks

  • I had to upgrade from ios7 to ios8 but it needed more storage than i had so i backed up my phone to my computer then deleted the content on my phone and upgraded to ios8.  i have not connect my phone and computer since.  how do i get my content back?

    i had to upgrade from ios7 to ios8 but it needed more storage  i had so i backed up my phone to my computer then deleted the content on my phone and upgraded to ios8.  i have not connect my phone and computer since.  how do i get my content back? 

    Restore the backup from your computer

  • How do you get your content in front of the right people?

    "Outbound Content Marketer of the Year, Joe Chernov (VP of content at HubSpot) told me: Marketers always ask me how to make more or better content, and it’s almost always the wrong question. The right question is: “How do I get my content in front of the right people?” - Forrester's Ryan Skinner
    Forrester published a very interesting report in October called "Put Distribution at the Heart of Content Marketing" (here's the related Forrester blog post). My VP shared the report with me and asked me to review and research a key content distribution strategy potentially leveraging the key technologies that are listed in the report. These technologies focus on helping identify influencers, publish content on targeted media properties and publish content if it ranks highly. I have to admit, this is somewhat new territory for me - I've yet to really focus on content distribution strategies across the entire buyer/customer lifecycle and although I've used one or two of these technologies personally, others I've only heard of and some I just flat-out had to Google.
    In true intrapreneurial spirit, I starting working through the research phase - I'm actually still working through it - and as I do, I can't help but to start mentally creating a blueprint of sorts... Imagining our technology roadmap interwoven with a content distribution strategy to create and drive a valuable buyer/customer experience (to acquire, keep and grow, of course). Ideally, we'd be able to accomplish all of the above points to significantly - and intelligently - extend our reach moving forward. So, back to the the Forrester report... To help more holistically drive content distribution, Forrester recommends creating a "distribution boss" and linking that person to content creation. I like it. To even further boost success of content marketing initiatives, Forrester suggests: (and I'm paraphrasing liberally here):
    1. Your distribution boss needs to be a left-brained analyst with a right-brained way with words
    2. Borrow some $$ from your content creation budget for some content promotion
    3. Encourage a BFF relationship between your PR and media teams and your content marketing teams
    Bottom (or should I say "top") line? I'm looking forward to our organization developing a more scientific content distribution strategy in 2014. Can I get an "amen!"? So, what are you and your teams doing to take a more scientific approach to content distribution in 2014? Or what are you currently doing? I look forward to Topliners feedback!
    Cheers!
    Kristin
    P.S. Technologies currently under review:
    - Include your influencers in a distribution strategy: Little Bird, Klout, PeerIndex
    - Look to specific vendors to push content on publisher’s sites: Outbrain, Sharethrough, Taboola
    - Identify social content winners and invest to amplify reach on the networks that work: SimpleReach
    - Keep an eye on emerging technologies for content visibility and distribution: TrendSpottr
    - Others: Parse.ly
    CC: marilyncox

    Alessia,
    I agree! In our current blog consolidation project, we're implementing Google Authorship for all our bloggers and we're currently evaluating how to best leverage Deltek's Google+ channel w/in our content strategy. Our PR/Social Director is not a fan - I'm working on, I mean with, her to see the possibilities.

  • My pc crashed and erased my itunes songs purchased from the itunes store. How do i get that content back without having to purchase them again?

    my pc crashed and erased my itunes songs purchased from the itunes store. How do i get that content back without having to purchase them again?

    I have somewhat of a similar problem. After iTunes last update, I am missing some of my purchased files of music,ringtones, and TV shows. Possibly movies, but just thought of that and did not look yet. Seems everytime there is an iTunes update, something happens, but usually an easy fix by just deleting music files from CD's that I loaded onto iTunes and no longer recognized after an update and reload from the hard drive. This time I do not have a current back up of all the music, ringtones, and tv shows I have purchased.
    So I am also wondering how can I redownload purchases without being charged when there is no file left on the hard drive. It just stays listed in iTunes though.

  • How do I get the content to match when exporting pages document to word?

    How do I get the content to match when I export a pages document to word format?

    You simply cannot get an absolutely identical export, in any app to any app. Exporting from one app to another means converting/parsing code, therefore the result cannot be identical. In order to have control over your final result, use PDF export. If you need a closer compatibility with Word, use OpenOffice or LibreOffice. I would not bet that Word for Mac would presserve identical page setting if file is created in windows, or vice-versa.

  • I could not found all music and videos in my laptop in itunes? how can i get all content to my itunes?

    hi i am using iphone 3gs 32gb. i installed itunes in my laptop but i couldnot found all files like music and videos present in my laptop. can anybody tel how to get all content? thanks you

    The songs that you downloaded on the iPad can be transferred to the computer when you sync with iTunes. For the music from your cousins computer - if they were purchased with his Apple ID - you can't sync them to your iTunes account.

  • How can I get the content of a text element to insert in a different block

    I have two blocks. The first one (block_control) is a non based block with a text element (EXERCICE). When I go to the second block (block_data) and I want to insert a new record, I need in my record the value of EXERCICE who is in the first block (block_control). How can I get this balue if I want to be able to do an execute_query too on the second block ? Because if I use pre-block or post-block or when-new-record-instance trigger to make the content of EXERCICE follow from block_control to block_data in a hidden field, I can't execute_query.
    Thank's

    First , when you want to insert a record in the second block , override the default commit_form processing and create a commit-form trigger which is called by a button to commit your form. The when-button-pressed trigger of this button should be : do_key('commit_form'); . And you create the key-commit trigger on the second block. Inside the key-commit trigger write this :
    :second_block.item_name := name_in('block_control_name.exercice');
    commit_form;
    In this way you get the exercice data into your record.
    Secondly, in the post-query trigger of the second block, set the exercice column of the second block to the exercice column of the block_control.
    And that's it.

  • HT1420 old computer no longer operable, how do I get the contents of m iPod onto new compter

    I have an older iPod, and the computer I had it associated with is no longer operable at all. How do I get the music on my iPod onto my new computer?

    follow the steps given here...
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • Just got a new I-pad and changed my Apple ID and password.  Now the itunes I had on my macBook Pro are gone.  How do I get the contents back?

    How can I get my original i-tunes to show up on my macbook pro?  I changed my Apple ID and password and now it's nowhere to be found.  Can someone help me?
    Thanks

    When you say "account," do you mean your iTunes library, because your iTunes library is what is on your computer?  Your iTunes library does not have an email address.  An account that is related to iTunes is your Apple ID (which is an email address) and you use it as your user name to sign in to the iTunes Store, to make purchases.  Changing your Apple ID will not make songs disappear from your computer's iTunes library.
    If you had an Apple ID and used it to make song purchases from the iTunes Store, and then started using a different Apple ID, you should be able to re-download the songs purchased with the old Apple ID.  In iTunes, sign in to the iTunes Store using your OLD Apple ID (and password).  That may not be your current email address, but Apple uses it as your user name, so it does not matter.
    On the iTunes Store Home screen, click on Purchased under QUICK LINKS.  This takes you do the Purchased screen, where you can re-download previous song purchases (for that Apple ID) at no cost. 
    NOTE:  If those song purchases are from more than a few years ago, you may also need to authorize your computer to play (and sync) songs for your old Apple ID. 
    For songs that were not purchased from the iTunes Store, if they are also gone, you cannot get them back unless you have a backup (or they are still loaded on your old iPod).
    If that's not what you mean by "changed the email address on my account," please post back with more details.

  • How do I get new content without paying - I paid for previous version of GarageBand

    I paid for the previous versions of GarageBand and i am wondering if i have to paid for the additional content. When I try to restore purchases it states I have now and if I go to download the new drummers it wants me to pay.
    Do I get this content for free as I already paid for GarageBand in the past or do i have to pay again?
    Thanks
    Craig

    The Apple Support document is not very clear on this, see:
    Expanding GarageBand for Mac (v10.0) content with an in-app purchase http://support.apple.com/kb/HT6031
    You can find this option by choosing Download More Sounds from the GarageBand menu. If you previously purchased this content, select Restore Purchase to install the content.
    Have you tried "Software Update" after restoring the purchases? For me the new drummers were then added for free.  But I had previously MainStage 2 and Logc X 10 installed, with all Jam Packs and plenty of drummers. Maybe, "Restore Purchase" will be different, if you did not have these additional software installed.

  • Key in registry – how can I get the content?

    Hello!
    Key in registry: I need all sub-keys that exist in this key. How can I get the list?
    Thanks!

    reg is a command line tool in windows that allows you to query the registry. You can use it to query any part of the windows registry. Once you know what query string you will need to query the entry you want, you can use ProcessBuilder to build the command line command you want to run. In your Java code, you will then need to run an external application (reg) with its arguments. ProcessBuilder is a class which makes this task easier.

Maybe you are looking for