Flex 4.1 - creationComplete event is not dispatched in nested Containers

Hi all,
We are migrating our application to use Flex 4.1 from Flex 3.5.
Our application is pretty complicated with tons of custom components. I noticed that when we use nested containers the creationComplete event is not dispatched. I narrowed it down to the following: We have application that has a child component which is an extension of an extension of Panel, that child component has one VBox child. The creationComplete event is not dispatched for that VBox even after I set the creationPolicy to "all" on all Containers.
Any thoughts?
Thanks,
  Lilit

The actual issue ended up being the width of the VBox - it was set to this.width (I did not write the code ) and it got into an infinite loop where the child component (VBox) was trying to set the width to the parent's width and the parent tried adjust its width to the children so it kept growing and growing. Not sure why this works in Flex 3.5 but not in 4.1. Looks like an issue with the Panel.

Similar Messages

  • Some events are not dispatched when app runs in background

    My Android app has a TIMER event which fires once every second to connect a TCP socket (class flash.net.Socket) and send a request.
    A packet sniffer confirms that a socket is in fact connecting, request is sent, reply comes back and connection is closed, all happening once per second.
    Clearly, even with the app in the background, the TIMER event is occurring every second, because the timer handler is initating every socket.
    But not every closing connection causes a CLOSE event to dispatch, because my close handler is called less frequently.  Sometimes once in 3 seconds, 8 seconds or even longer.
    The CLOSE dispatches correctly once per second when the app is in the foreground.
    Why are CLOSE events being missed when the app is in the background?  What is the difference between a TIMER event and a CLOSE event, causing one to dispatch correctly but not the other?
    Thanks.

    I've narrowed my problem down by chopping pieces of code until it works, and I think I have it narrowed down to the code that uses FlexGraphing but need to check a bit more...
    It's odd that it works in Flex3 builder though, and there are no errors when I run in as AIR. In fact, the app RUNS, since it is in the task manager, but it won't appear.

  • Flex 4 does not dispatch keyboard events for ENTER key.

    Hello everyone. I think I have a strange problem with Flex 4 Beta (4.0.0.8909). My application has had event listener for keyUp event for a month now and suddenly (two days ago) I've noticed that keyUp event is not dispatched for ENTER (ALT also) key. Anyone know why? By the way, I've tried this with keyDown event, also 4.0.0.8847 version of SDK - still the same: no keyboard events for ENTER (and ALT) key.
    Here is the sample application that has got this issue:
    <s:Application
       xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/halo"
       minWidth="640" minHeight="480"
       keyUp="application1_keyUpHandler (event)">
       <fx:Script>
          <![CDATA[
             import mx.controls.Alert;
             protected function application1_keyUpHandler (event: KeyboardEvent):void
                Alert.show ("Key up: " + event.keyCode);
          ]]>
       </fx:Script>
       <s:layout>
          <s:BasicLayout/>
       </s:layout>
       <s:TextArea verticalCenter="0" horizontalCenter="0" width="200"/>
    </s:Application>
    If you run this application and try typing anything in a TextArea you will get alerts with key codes. However, if you press ENTER (or ALT), you will get no alert.
    I'm pretty sure the code above is right so that means there is a bug in latest nightly builds of SDK (i would swhitch to an older build if i knew which one does not have this bug).
    Any ideas?

    Flex harUI wrote:
    That's true, but in this case, I think the text editing code is eating ENTER key in order to prevent parents from seeing it and acting on it (like a submit button).  We'll see if we can find a way around that.
    You can get the ENTER key now by listening in capture phase.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui
    The enter key isn't being disposed of by textedit, the attached example code works without error if you a- remove the alert box and b-set the focus to your text area on initialisation. I agree that pressing the enter key then calling a dialog box will result in the enter key being "gobbled up" as  the enter key is overridden by the dialog box code.
    I think the first suggestion should be to anyone don't use dialogboxes for testing code. If for some reason debugging isn't desirable instead of a trace statement a simple label  can be used as a 'fake' trace.
    David
    Message was edited by: David_F57: I worded this wrong, imho there is no need for a work around, the textarea component works as it should. When intercepting 'system' keycodes there is a need to consider the effect of the intercept and code appropriately to that end.

  • FileRefrence.browse does not dispatch select event in some cases

    In my flex web application, filereference.browse  sometimes does not dispatch any select event. I am using flex sdk 4.6.

    What happens if you put table Table_1 into the Analytic View?
    Also go ahead and and update HANA, Rev.60 is very old by now.

  • Flex 4.5 "hero" - stage event is not dispached in a view

    Hello,
    stage event is not dispached in a view (flex 4.5 hero)
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark" title="Test" initialize="comp(event)">
            <fx:Script>
            <![CDATA[
            public function comp(e:Event):void {
                    this.stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChangeHandler);
            public function orientationChangeHandler(event:StageOrientationEvent):void {
                    are.text="aa";
            ]]>
            </fx:Script>
            <s:TextArea width="400" id="are"/>
    </s:View>
    thanks

    instead this.stage or stage -> systemManager.stage

  • Actionscript 3: soundComplete event not dispatched by SoundChannel

    When i play a sound it stops some miliseconds before the end,
    so the soundComplete event does not get dispatched.
    Is this a known issue? How can i get ride of this?

    pajaroplus,
    > When i play a sound it stops some miliseconds before the
    > end, so the soundComplete event does not get dispatched.
    >
    > Is this a known issue? How can i get ride of this?
    Would you show the code you're using?
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • If OSMFSettings.enableStageVideo true, then click event from the MediaContainer is not dispatch.

    Hi!
    I use org.osmf.vast.mediaVAST2TrackingProxyElement from the VASTLibrary for display advertising and use click to handle advertisement redirection.
    It's works for flash.media.Video.
    But after setting OSMFSettings.enableStageVideo = true, the click event from the MediaContainer is not dispatch.
    Can you please help?

    Actually, I looked briefly at the dev guide this week end, and Stage Video actually renders from the GPU under the Actionscript App.
    It could be something like this:
    Stage video is behind the Actionscript objects and one of them is as big or bigger than the video rendering rectangle and it is grabbing mouse interaction.
    Just speculating.
    Also, I'm not certain StageVideo can recieve mouse events...
    Hope this helps.

  • If the flash object is placed in 0px div, the creationComplete event is fired after a long wait time

    <Problem>
    My requirement is to hide flash object on browser. However, If the flash object is placed in 0px div, the creationComplete event is fired after a long wait time. Is this a bug of Flex? (or Flash Player?)
    <Sample Code>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
              initialize="app_initialize(event);" creationComplete="app_creationComplete(event);" >
    <mx:Script>
            <![CDATA[
            import mx.events.FlexEvent;
        private function app_initialize(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "application initialize.");
        private function app_creationComplete(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "application creation complete.");
        private function button_creationComplete(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "button creation complete.");
            ]]>
        </mx:Script>
        <mx:Button id="testButton"  label="button"  creationComplete="button_creationComplete(event);"/>
    </mx:Application>
    <Steps to reproduce>
    1) Dowload the following samples
    MySwf-src.zip
    https://files.acrobat.com/a/preview/c6b7a191-c6c4-486f-9345-e2b5c21a4c0b
    TestSwf.zip
    https://files.acrobat.com/a/preview/98e613e1-63b1-4b2f-93f3-f6e4f4a27f24
    2) Unzip TestSwf.zip.
    3) Copy MySwf.swf, TestInvisible.html, and TestVisible.html to "c:\inetpub\wwwroot\". (Need to install the IIS.)
    4) Visit "http://localhost/TestVisible.html" via IE. notice the creationComplete event fired after initialize event immediately.  -- Correct
    5) Visit "http://localhost/TestInvisible.html" via IE. notice the creationComplete event fired a long time after initialize event.  -- Incorrect
    <Environment>
    Win8.1x64+IIS8.5+IE11+Flash player(13.0.0.182)
    <Note>
    If the flash object is placed in 1px or larger div, the creationComplete event is fired immediately.
    The problem occurs with other browsers(IE9,IE10,FF,Chrome) too.

    Thank you for your response. The computers are indeed running Flash Pro CC 13.1.0.226. I tried to generate a minidump file on four different computers where Flash Pro hung, but was not able to do so on any of them as Flash Pro makes the entire system unresponsive. I get the spinning circle cursor and then the GUI of all apps greys out and fails to update. I don't actually get any sort of error message; everything simply stops responding.
    I was probably unclear above; even if I can alt-tab I can't really interact with any other programs once Flash Pro hangs beyond one or two mouse clicks. So on some computers I could right-click on the process in Process Explorer and choose to create a minidump, which then froze, or I might right-click on the process and have it immediatly freeze. I've experienced about two dozen crashes and I've never been able to really use another program or even kill the Flash process in task manager. I also have to power off the computer by holding down the power button, since while I might be able to open the Start menu I can't reach the point of being able to shut it down without it freezing.
    From what I was able to see in Process Explorer, Flash Pro was using <1% CPU and 120M private / 170M working memory.

  • [svn:osmf:] 14474: Adding a 'dispatchInitialChangeEvent' parameter to the ' watch' method in order to allow the initial change event from being dispatched, continued.

    Revision: 14474
    Revision: 14474
    Author:   [email protected]
    Date:     2010-02-28 23:53:31 -0800 (Sun, 28 Feb 2010)
    Log Message:
    Adding a 'dispatchInitialChangeEvent' parameter to the 'watch' method in order to allow the initial change event from being dispatched, continued.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataWatcher.as

    *Feedback*
    "Use the form below to send us your comments. We read all feedback carefully, but please note that we cannot respond to the comments you submit."
    http://www.apple.com/feedback/ipad.html
    We can complain about Apple's business decisions, but these discussions are user to user talk about possible solutions.
    Here are the places to report bugs:
    Get an account at
    http://developer.apple.com/  then submit a bug report to http://bugreporter.apple.com/
    Once on the bugreporter page,
       -- click on New icon
       -- See if you need to attach a log file or log files, clicking on Show instructions for gathering logs.  Scroll down to find the area or application that matches the problem.
       -- etc.

  • [svn:osmf:] 14473: Adding a 'dispatchInitialChangeEvent' parameter to the ' watch' method in order to allow the initial change event from being dispatched.

    Revision: 14473
    Revision: 14473
    Author:   [email protected]
    Date:     2010-02-28 23:45:28 -0800 (Sun, 28 Feb 2010)
    Log Message:
    Adding a 'dispatchInitialChangeEvent' parameter to the 'watch' method in order to allow the initial change event from being dispatched.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataWatcher.as

    Perhaps you're not handling the "EndOfStreamEvent" correctly/at all, and thus not freeing up the socket to listen for the "NewReceiveStreamEvent " after the initial stream has ended...
    ?

  • I am using strobe player in flex builder 4.6 but its not loading.

    I am using strobe player in flex builder 4.6 but its not loading,
    I have made required change in compiler option as below: 
    -locale en_US -swf-version=11 -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true -define CONFIG::MOCK false -define CONFIG::PLATFORM true
    There is no any error but player does not load, here is my code I am using;
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          applicationComplete="init(event)" backgroundAlpha="0">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
       import mx.core.UIComponent;
       private const HTTP:String = "http://ec2-54-84-194-229.compute-1.amazonaws.com:1935/live/legacyLive/manifest.f4m?DVR";
       protected function init(event:Event):void
        var playerInstance:StrobeMediaPlayback = new StrobeMediaPlayback();
         var ui:UIComponent = new UIComponent();
        var parameters:Object = {
         src:HTTP,
         controlBarMode:"floating",
         controlBarAutoHide:"true"
        playerInstance.initialize(parameters, systemManager.stage, systemManager.loaderInfo, null);
        ui.addChild(playerInstance as DisplayObject);
        addChild(ui);
      ]]>
    </fx:Script>
    </s:Application>

    I am using strobe player in flex builder 4.6 but its not loading,
    I have made required change in compiler option as below: 
    -locale en_US -swf-version=11 -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true -define CONFIG::MOCK false -define CONFIG::PLATFORM true
    There is no any error but player does not load, here is my code I am using;
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          applicationComplete="init(event)" backgroundAlpha="0">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
       import mx.core.UIComponent;
       private const HTTP:String = "http://ec2-54-84-194-229.compute-1.amazonaws.com:1935/live/legacyLive/manifest.f4m?DVR";
       protected function init(event:Event):void
        var playerInstance:StrobeMediaPlayback = new StrobeMediaPlayback();
         var ui:UIComponent = new UIComponent();
        var parameters:Object = {
         src:HTTP,
         controlBarMode:"floating",
         controlBarAutoHide:"true"
        playerInstance.initialize(parameters, systemManager.stage, systemManager.loaderInfo, null);
        ui.addChild(playerInstance as DisplayObject);
        addChild(ui);
      ]]>
    </fx:Script>
    </s:Application>

  • TemporalProxyElement does not dispatch new Duration

    Hi
    Following my last discussion, where I asked help to add a temporal trait to a ImageElement, and get it by wrapping it to a TemporalProxyElement I discovered that although it works great , but, does not dispatch a change Duration event. I made a custom playlist (not osmf sequence) and have certain issues with it. There is any workaround for this? How can I get that when loading the TemporalProxyElement as MediaPlayer Element it dispatches this event?
    Thanks..
    Chaim

    This is a known issue, related to two separate bugs.  The first is that we'd like MediaPlayer to dispatch certain events (such as durationChange) even when the underlying MediaElement simply picks up the trait which holds the event, but currently it only dispatches the MediaPlayerCapabilityChangeEvent.  If you were to register for this event (the temporalChange event), then upon receiving this event you could query the duration property and have the right value. But right now you don't get that event either, because TemporalProxyElement doesn't dispatch events at the right time.  This is filed as bug FM-126.

  • [svn:osmf:] 14758: Fix FM-556: When MediaPlayer enters error state, capabilities should be set to false, and capability change events should be dispatched.

    Revision: 14758
    Revision: 14758
    Author:   [email protected]
    Date:     2010-03-15 12:27:47 -0700 (Mon, 15 Mar 2010)
    Log Message:
    Fix FM-556: When MediaPlayer enters error state, capabilities should be set to false, and capability change events should be dispatched.  Also fixed typo in one of the capability change event names.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-556
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/events/MediaPlayerCapabilityChangeEvent.as
        osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamLoadTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/media/TestMediaPlayer.as

    Well, I can tell you that this kind of error is not OS related, but rather a HW thing.  It happens where there is a general detection of something going wrong.  Sometimes it can happen randomly and might not be an indication of a problem.  But sometimes it can be caused by things that are improperly functioning within the system like bad capacitors. 
    Unfortunately I don't really know what to do about such things except give you machine a proper inspection.  But if things are working fine, and continue to do so, I wouldn't worry about it.  If it becomes a regular occurance, then I'd worry.

  • CreationComplete event question?

    Hi,
    I develop a application that have many screen and I develop
    each
    screen with a flex component (*.mxml page).
    I use creationComplete event in one screen but the function
    only
    execute when I first access the screen. But I need execute
    the
    function when I access the screen.
    For instance.the following Alert screen only work when I
    first access the screen,But it doesn't call when I access the
    screen second time.
    Please give me a idea which event I can use to call the
    function so
    the function can execute when I access the screen.
    Thanks
    Mark
    ps:code for the screen
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="getnameList()">
    <mx:Script>
    <![CDATA[
    import com.sb.CEC_Admin.events.GetStafflistEven;
    private function getnameList():void{
    Alert.show("test");
    ]]>
    </mx:Script>
    </mx:Canvas>

    Yeah, creationComplete ensures it executes when the component
    or app first launches, then show event ensure it executes each
    subsequent time it is displayed.

  • Flash builder Event metadata not recognized

    Hello,
    Can someone explain me why my event isn't recognized in the code below (it is not proposed as a property for my TestButton and if I try to force it I get an error)
    Test application :
    <?xml version="1.0" encoding="utf-8"?><s:Application 
    xmlns:fx=http://ns.adobe.com/mxml/2009
    xmlns:s="
    library://ns.adobe.com/flex/spark"
    xmlns:mx="
    library://ns.adobe.com/flex/halo"
    xmlns:local="
    minWidth="
    1024" minHeight="768"> 
        <local:TestButton/>
    </s:Application>
    TestButton.mxml :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Button  
    xmlns:fx=
    http://ns.adobe.com/mxml/2009 xmlns:s="
    library://ns.adobe.com/flex/spark"xmlns:mx="
    library://ns.adobe.com/flex/halo">
         <fx:Metadata>  
    Event("testEvent", type="flash.events.Event")]
         </fx:Metadata> </s:Button> 
    There is no more or less code than that. I'm using the beta of Flash Builder 4.
    Thanks. </s:Button> 
    There is no more or less code than that. I'm using the beta of Flash Builder 4.
    Thanks.
    </s:Button>
    There is no more or less code than that. I'm using the beta of Flash Builder 4.
    Thanks.   

    My apologize for my post layout but I definitly can't get my post to look like what I write in the text field. I don't know why it has repeated the last line (maybe because it's some Adobe stuff). It's difficult to be confident in the reliability of Adobe developping tools when a simple web page doesn't work correctly.
    Sorry for being nasty but I'm starting to get rid of spending hours on ununderstandable problems.
    (To be more nasty, the best this morning : I start a new Flex project in Flash Builder, make a few things, and when I tried to launch it, surprise : "This file cannot be launched" and that's all, no more explanation, imposible to find answer on the web. I finally had to restart the project.)

Maybe you are looking for

  • Logitech Z506 5.1 Speakers and Apple TV - how to set up?

    Hi, As of now, to watch movies I've got an old Mac Mini conntected via VGA to an HP screen and a 2.1 Logitech speaker system plugged into the Mini. For listening to music, I simply plug the speakers into my iPhone or Mac. Now that my 2.1 speakers are

  • Messed up Formating in output of SAPScript

    Hi, I have made some modifications in the report associated with a SAPscript. I have not touched the form layout. Now everything is being printed 1 line below the designated space. So all text is flowing out of the boxes that should enclose their res

  • Convert XML string into an abap format date and time

    Hi, Does anyone know of a method or a function module in ABAP which converts XML string into an abap format date and time. Here is a part of the xml that I want to convert. <ns2:EventDateTime>2009-07-02T10:13:45+10:00</ns2:EventDateTime> <ns2:EventMe

  • Control Stacking Order with Actionscript?

    How can you control the stacking order of objects using acitionscript? That is, objects already added to the stage. I know how to add something at a certain level with addChildAt, but I'm wondering if someone adds an item to the stage in the wrong or

  • Time diffence calculation

    hi im Reading time in 2 edit box i want calculate time difference based on 2 edit box