UpdateAllContainers() not working after i insert inlinegraphicelement

Hi
Please find the attached flex project. Its a basic editor. After i insert image to my editor it does not show this but a space is covered by image. after i edit by delete or update my text image shows up. Please help what is missing
Thanks & Regards,
Imran

Perhaps you are missing the event that updates when the graphic has been loaded?
Here is some example code that works:
package
    import flash.display.Sprite;
    import flash.events.Event;
    import flashx.textLayout.container.*;
    import flashx.textLayout.elements.*;
    import flashx.textLayout.events.StatusChangeEvent;
    /** Hell world text example with an inline graphic */
    public class InlineGraphic extends Sprite
        private var _textFlow:TextFlow;
        public function InlineGraphic()
            _textFlow = new TextFlow();
            _textFlow.fontSize = 48;
            var p:ParagraphElement = new ParagraphElement();
            _textFlow.addChild(p);
            var span:SpanElement = new SpanElement();
            span.text = "Hello ";
            p.addChild(span);
            // InlineGraphicElement has "auto" width/height so the size can't be calculated till the graphic is loaded
            var inlineGraphic:InlineGraphicElement = new InlineGraphicElement();
            inlineGraphic.source = "http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg";
            p.addChild(inlineGraphic);
            var span2:SpanElement = new SpanElement();
            span2.text = " World";
            p.addChild(span2);
            // event sent when graphic is done loading
            _textFlow.addEventListener(StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE,graphicStatusCh angeEvent);
            _textFlow.flowComposer.addController(new ContainerController(this,400,200));
            // this call compose but the graphic hasn't been loaded from the source URL yet.
            // The actualWidth and actualHeight are zero. 
            _textFlow.flowComposer.updateAllControllers();
        private function graphicStatusChangeEvent(e:StatusChangeEvent):void
            // if the graphic has loaded update the display
            // actualWidth and actualHeight are computed from the graphic's height
            if (e.status == InlineGraphicElementStatus.READY || e.status == InlineGraphicElementStatus.SIZE_PENDING)
                _textFlow.flowComposer.updateAllControllers();

Similar Messages

  • My 3G connection is not working after updating to iOS 6.1. I have tried all possible solutions like resetting the network, restarting the iPad

    My 3G connection is not working after updating to iOS 6.1. I have tried all possible solutions like resetting the network , restarting iPad , ...

    The same story. No 3G after updating to 6.1.  Told my daughter temporarily not to do an update on her iPad with 6.01. We've exchanged SIMs. I inserted her SIM in my iPad - 3G appeared immediately. And my SIM in her iPad with ios 6.01 also WORKS FINE. We use the same provider - Megafon Moscow. After attempting to revert SIMs to original configuration, 3G disappeared on my iPad again. Don't know what's going on with SIM during the update to 6.1

  • Internal speakers not working after upgrading to Maverics

    internal speakers not working after upgrading to Maverics

    There are many possible causes for this issue. Take each of the following steps that you haven't already tried.
    1. Start with the steps recommended in this support article. Don't skip any of the steps. It's the starting point for further efforts to solve the problem.
    2. Run Software Update and make sure you have a fully up-to-date installation of OS X.
    3. If you've installed an application called "Memory Clean" or any other third-party software that is supposed to "clean" or "purge" memory automatically, remove it according to the developer's instructions and restart. You should do that even if the software is not causing the problem, because it's useless.
    4. If you've installed a software equalizer called "Boom" or anything similar, update or delete it and restart.
    5. If an AirPlay device is selected for sound output from iTunes (or from other applications via third-party software such as "Airfoil"), deselect it.
    6. Launch the application "Audio MIDI Setup" by entering the first few letters of its name in a Spotlight search and selecting it in the results (it should be at the top.) Select the Output tab. If the Mute boxes are checked, uncheck them. Move the Volume sliders all the way to the right.
    7. If a red light is coming from the audio-out port, the internal switch is stuck in the position for digital output. You may be able to free it by inserting and removing a mini-stereo jack of the proper size. Inserting any kind of tool in the port may cause damage that won't be covered by your warranty.
    If there's no red light, the switch may still be stuck in the headphone position. Try to free it the same way.
    8. Disconnect all wired peripherals except keyboard and mouse, if applicable. If more than one display is connected, disconnect all extra ones. Restart and test.
    9. If you have a MacBook Air, turn off Bluetooth and restart.
    10. Start up in safe mode. Don't log in; just restart as usual when the login screen appears. When you do, make sure the words "Safe Boot" do not appear in the login screen. If they do, the system is still in safe mode and sound won't work.
    11. Reset the NVRAM.
    12. Reset the SMC.
    13. Reinstall OS X after backing up all data.
    14. Make a "Genius" appointment at an Apple Store.

  • Internet not working after installing "StarTech Thunderbolt Docking Station" driver

    My Internet is not working after installing "StarTech Thunderbolt Docking Station" driver although "Ethernet" and "wireless" say they're connected, still there is no internet.
    I have bought a "StarTech Thunderbolt Docking Station" as I need to use 2 thunderbolt based pieces of equipment on my "MacBook Pro"; which are a 2nd monitor as well as a Thunderbolt driven Audio Interface.
    When I first plugged all my equipment to the "StarTech Thunderbolt Docking Station" everything was working fine, all pieces of equipment worked as well as Ethernet from both the computer and the docking station were working perfectly.
    However, when I inserted the "StarTech Thunderbolt Docking Station driver CD" and installed the drivers, the internet on my computer has stopped working. Although the Ethernet says it is "connected" (same goes for "Thunderbolt Ethernet" when cable is connected to it) still the internet does not work. Even my wireless internet is not working anymore. Furthermore, also after installing the Docking Station drivers, my iTunes is crashing whenever started.
    Please help, this is really urgent.
    I've been looking for answers all around but can't seem to find any.
    I'm using OSX Mavericks 10.9.2
    I've tried fixing stuff with Network preferences, like changing IP address, renewing DHCP leace.
    I also tried typing IP address, Subnet Mask, Router and DNS Sever manually... Nothing seems to be working.
    Note: I know someone could suggest to "uninstall" the Thunderbolt Station driver, however, I can't find an "uninstallation file", even the CD that came with the docking station does not have it.

    I had exactly the same problem today, and I was lucky enough to solve it.
    Here's what helped me:
    First, I found a hint to Suspicious Package in this thread.
    With Suspicious Package installed, I was able to identify the script in StarTech's installer pkg. It' called "postflight".
    Amongst other things, postflight runs this command:
    sudo mv usr/share/sandbox/mDNSResponder.sb usr/share/sandbox/_mDNSResponder.sb
    A quick check in Apple's knowledge base revealed, that the mDNSResponder is essential to use DNS (i.e. to resolve server names like www.apple.com) and bonjour.
    I moved th mDNSResponder back to where it belongs:
    sudo mv usr/share/sandbox/_mDNSResponder.sb usr/share/sandbox/mDNSResponder.sb
    After a reboot, everything worked fine again.
    I have no idea, why StarTeck disables an essential tool. Let's assume it's an error ...
    But after this experience, I didn't want the StarTech ethernet driver on my machine (I had installed it just for curiosity, anyway - yes, I know, I shouldn't have ...), so I removed the kext the installer had copied to my system:
    sudo mv /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleIntel8 2580.kext /Users/myusername
    (You see I didn't delete the kext directly, I just moved it away and tried another reboot. Now everything works fine, so I'm going to delete the kext entirely and paint a big red cross on StarTech's installer disk.
    Hope this helps.

  • Tecra M7: Tablet does not work after lid closing

    Has anyone had problems with the tablet not working after closing the lid on a Tecra M7? Bios is 3.20
    Doesn't seem to happen on hibernate or sleep.
    I have the lid set to do nothing on close.

    Hi
    What do you mean with tablet not working after closing the lid?
    Does the notebook freezes or what?? What happens exactly???
    The close the lid settings can be set to hibernation mode or standby mode or no action.
    These settings can be set in the power saver setup actions.
    If you have some problems with some installed Toshiba applications I would recommend reinstalling the TOSHIBA Common Modules and the program which doesnt run correctly!
    Best regards

  • My new iPad sound is not working after updating to ios 6.1

    My new iPad sound not working after updating to ios 6.1. Headphones are working fine. I tried all the troubleshoot. can anyone know the answer, plz share with me

    Hi,
    I have exactly the same issue as everyone above. I only get sound through the slider on the ringtone in settings and through my headphones. I do not get any sound anywhere else at all.
    I Have tried:
    - Updating to iOS 6.1.3
    -re starting the device
    -checking that the device is not muted. My slider switch is set to mute rather than lock and is unmuted.
    -going into general settings and reset all settings
    -the device reset several times (waiting until I saw the all important apple logo)
    -removing the last few apps I installed.
    Nothing at all has worked, please help!
    New iPadiPad

  • IPhone 5s not working after voice over turned on

    iPhone 5s not working after voice over turned on

    Hello ss1997,
    Thanks for using Apple Support Communities.
    To troubleshoot this issue where your iPhone will not boot past the Apple logo please follow the steps in the article below.
    iOS: Not responding or does not turn on
    Take care,
    Alex H.

  • Iphone 4 personal Hotspot not working after update to IOS 7.1 India BSNL cellular

    Iphone 4 personal Hotspot not working after update to IOS 7.1 India BSNL cellular

    BSNL is not a supported carrier. Personal Hotspot requires carrier support and provisioning of the account to enable it. iOS 7.1 disabled the ability to manually configure Personal Hotspot on unsupported carriers.

  • Iphone 4 Home button not working after upgrade to OS 4.3.5

    Iphone 4 Home button not working after upgrade to OS 4.3.5.Please help!!!!!!!!

    It seems that settings of mail accounts have something to do with it. I've delete my gmail account and am now using Microsoft Exchange. It seems better, yet not perfect. The issue is definitely due to OS 4.3.1
    Apple answer is - no answer. It is a shame that the quality of their products, in terms of design and concept, is not match by a care for customers. It is not normal that I, as a customer, have to spend hours reading Apple Discussions forum to try to understand what the problem is. A little more respect for a customer that spend big $$$ buying their products wouldn't hurt.

  • IPhone 4s Voice mail notification not working after switching from Verizon to PagePlus.

    iPhone 4s Voice mail notification not working after switching from Verizon to PagePlus.  How can I get the notifications working?

    Contact your carrier - voicemail, and visual voicemail, is a carrier feature.

  • Iphone 5 back camara not working after ios update

    My Iphone 5 back camara is not working after ios 8.1 update this morning
    Only getting some fuzzy image.
    Camara was working before the update.
    Resting the phone to factory setting restoring phone nothing seems to work
    I think this will be my last Iphone as apple never respondse in any case

    If you're expecting Apple to respond on this forum, you will have a long wait. This is a user-to-user technical support forum that is only hosted by Apple. This was made clear when you signed up. In any case, try the steps in this article to troubleshoot hardware issues (there is a camera section):
    iPhone: Hardware troubleshooting

  • Iphone 6 plus facetime camera not working after 8.1 upgrade

    iphone 6 plus facetime camera not working after ios 8.1 upgrade, also while making calls the voice on the other side sounds distant. Any pointers.

    It seems the facetime camera does not work for whatsapp only it works normally.

  • Caller Id not working after update

    My caller id pictures are not working after the update.

    Still having the same problem.  It appears to be a problem with City ID.  Local Verizon office told me it could be uninstalled.  I can't seem to find out how to uninstall an application that has the uninstall button "greyed out".  After forcing stop the application, it turns itself back on after every call.  When that happens I lose the city the call is coming from, but I still get the number showing.  Other times I don't receive anything.  I NEVER know who's calling me and it's getting annoying. Hell, with AT&T, I knew who was calling me....just couldn't stay connected.  Now if I miss a call..I don't have any clue as to  who to call back.
    Get this City ID crap app off my phone....that's all I want...it's not too much to ask....please...!

  • Caller id not working after syncing my iphone to my pc?

    caller id not working after syncing my iphone to my pc?

    Syncing with iTunes has nothing to do with this, especially when not syncing contacts with a supported address book app on your computer which very few Windows users seem to be inclined to do.
    Caller ID is not working in which way?

  • ODI Procedures not working after upgrading from 10G to 11G

    Hello Gurus,
    We have run into a scenario where the procedures in ODI are not working after we upgraded it from 10G to 11G (11.1.1.6). However we can make it to run if we create the procedure from scratch.
    Also we are having issues related to packages where in the packages were running before we applied the patch 11.1.1.6.3. And after applying the patches they are not running.
    Any help will be appreciated.
    Thanks

    If you want someone to help you, please be elaborate in the exact errors you are getting.
    A general statement would do nothing but guess work.
    What is the error that you get while executing the procedure.
    What are the exact issues that you get while executing packages ?

Maybe you are looking for