Flex 3/4 Initialization Timing Changes?

Hi there.  This isn't end-of-the-world critical, but I'm trying to better understand what's going on here.
We have a relatively large and complex business app (several hundred classes split into a core application framework plus multiple dynamically-loaded product modules), originally written in Flex 3.2.  As part of our new release, we are taking the chance to port it over to Flex 4.5; I've spent the past week doing so.  We're continuing to use the Halo theme for the time being, to minimize the initial disruption.
I've pretty much gotten it working, but I'm still trying to understand the key behaviour change that I've observed.  A lot of our code is failing at initialization time.  I'm still nailing down exactly what's different, but the most obvious bit is that it seems like, in commitProperties(), properties that refer to other objects in the same parent don't exist yet, where they previously did.  So I'm getting null pointer exceptions where I wasn't previously.
Similarly, I have a few objects where the property refers to the object itself.  They're graphing objects, which have a property that describes how to set up the dataFunction.  This property is typically set to one of several functions available on the object.  So graph "foo" would set this function to "foo.useDateForY" or some such, using one of these utility functions on the class that says how to set up the graph.  This previously worked, but now the property is failing because "foo" is null when it is trying to resolve the property value.  This seems likely to be related to the above.
Finally, I've also observed what appear to be differences in the resolution of the lifecycle for non-visible objects.  Again, I haven't had time to nail this down precisely, but it feels like I used to get CREATION_COMPLETE in a bunch of cases that aren't getting it any more -- specifically, this seems to be happening for objects that I'm building up before adding them to the visible graph.  I build lots of screens upfront when a product is loaded, but don't actually add them into the tab structure until they are invoked.  Similarly, we have popups that we want to be populating as we go, long before they are displayed, but I don't seem to be getting CREATION_COMPLETE for them when I used to.
So it seems like something has changed subtly in the UIComponent lifecycle, having to do with the timing of resolving IDs, setting properties to them, and calling commitProperties(); maybe also something having to do with how parenting relates to finishing the lifecycle.  Does anybody have a clue what I'm talking about here?  And is there a document somewhere that describes the timing changes more clearly?  I've seen several documents talking about 3 -> 4 changes, but haven't noticed anything on this particular topic...

Yes, the timing of when child objects are created has changed relative to
when the constructor runs, but the lifecycle methods and events have not
changed.  If you rely on commitProperties to resolve things, it should be
ok.
The only cases I've seen where creationComplete doesn't fire is if there is
an invalidation loop going on which is slightly more possible if using
multiline text controls whose height depends on width or vice-versa.

Similar Messages

  • Slideshow timing changes after sending to iDVD--why?

    After much work, I finally got my slide show perfectly synchronized to the lyrics of the song being used, then exported to iDVD. I made no adjustment or changes in iDVD other than choosing & customizing the opening menu theme (which is separate from & has no bearing on show). I was horrified to discover that the timing changed, throwing off the image/lyric sync, which is crucial to the "story" of the show.
    If all the iLife apps are supposed to be so tightly integrated, why does this happen???

    I wonder if you can have iPhoto make the QuickTime movie of your slideshow, and if it would preserve your timings, and would that stick when sending to iDVD.
    This sounds like a job for QuickTime Kirk....

  • [svn] 3966: Fix incremental compile which broke at some point since Flex 3 due to compiler changes .

    Revision: 3966
    Author: [email protected]
    Date: 2008-10-30 06:40:39 -0700 (Thu, 30 Oct 2008)
    Log Message:
    Fix incremental compile which broke at some point since Flex 3 due to compiler changes.
    ResourceManager.fetch() assumes a local file and uses java.io.File to check if the file exists. Files within swcs such as framework.swc$Assets.swf and framework.swc$default.css will never exist so they triggered a recompile. For now, put the dependency on the swcArchive file itself since that does exist in the file system.
    The dependency checking is still weak and could use some more work but at least now it doesn't recompile every time when there are no changes.
    QE Notes: None
    Doc Notes: None
    Bugs: - SDK-17715
    Reviewer: Paul
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17715
    Modified Paths:
    flex/sdk/trunk/modules/webtier/j2ee/servlet/src/java/flex/webtier/server/j2ee/BaseCompile Filter.java

    I enabled the settings in the labview.ini
    I found some text files that looked like logs "LabVIEW_8.5_Matt_cur.txt" "LabVIEW_8.5_Matt_log.txt". Which contained some error logs and call after I tried to compile. I attached some logs from my attempts to compile. For the errors that referenced a vi and a statechart guard, I remade the vi and the referenced guard. The others all have
    ..... /drawmgr.cpp(3570) : DAbort: Couldn't create 24 pen Error ==0
    in common and some had a
    ....../image.cpp(13927) : DWarn:  could not get hdc error = 0
    warning. I'm guesing these are related to the graphical problem I'm getting with explorer. But since I can't decode the call stack I'm not sure what the source is (assuming the cause is within the call stack).
    It looks like LV 8.6 Beta is going to open soon. Does anyone know if Vision will work with it? And Is there any kind of obligation to use the beta regularly? Since if it doesn't help much, I'd probably just end up removing it.
    Matt W
    Attachments:
    errors.zip ‏7 KB

  • [svn] 3544: Adjust Flex to a Player 10 change.

    Revision: 3544
    Author: [email protected]
    Date: 2008-10-09 12:29:31 -0700 (Thu, 09 Oct 2008)
    Log Message:
    Adjust Flex to a Player 10 change. Allow focus to change after the mouse is clicked on an object in a different sandbox.
    To take advantage of the fix an application needs to be compiled for Player 10 (-target-player=10).
    QE: YES
    Doc:
    Checkintests: YES. Marshall Plan mustella tests.
    Reviewer: pfarland
    Bugs: SDK-17123
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17123
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/FocusManager.as

    There seems to have an interesting difference between FP9 and FP11, and this can cause some problem. The difference is in xml.appendChild("<child>test</child>"). It works well in FP9 but not in FP11, it seems. Here is what I get when publishing in both players:
    Code:
    var xml:XML = <content>
                   <item>
                        <name>test</name>
                   </item>
              </content>;
    xml.appendChild("<child>test</child>");
    trace(xml);
    FP9 output:
              <content>
                   <item>
                        <name>test</name>
                   </item>
                   <child>test</child>          
              <content>
    FP11 output:
    <content>
      <item>
        <name>test</name>
      </item>
      <item>&lt;child&gt;test&lt;/child&gt;</item>
    </content>
    What's wrong with this? How to fix the problem so that it runs in FP11 like it runs in FP9? I know that using xml.appendChild(<child>test</child>), without double quotes, should work but it means that I need to go over hundreds of files to fix it and in many cases the content "test" of the child node is a String variable, but not a constant.
    Thanks

  • Flex Builder 3 error when changing project names

    When you create a Flex 3 project (ex. Test1) and then rename
    the project (ex. Flickr) the URL settings for the project do NOT
    change. The stay as the original. Using the examples provided the
    are originally:
    http://localhost:3000/Test1/flex_bin/FlickrRIA.html
    Even after changing the name of the project the URL settings
    still default to the above and not to:
    http://localhost:3000/Flickr/flex_bin/FlickrRIA.html

    Found the problem in the FlexBuilder.ini file. I had to reduce the memory settings like this:
    -Xms768m
    -Xmx768m
    Also see here: http://www.blog.techsplice.com/archives/38

  • .swf timing changes when posted to server

    I have been using Captivate for years, and have never seen this error before. I currently have Captivate 3. I have a 6 slide file with a mix of PowerPoint imports and captured movies. On the last slide, I have an imported PowerPoint animation where I use the Credits Custom Animation on a text box to scroll a list of report names across the screen. The end effect looks like movie credits.
    Here is the issue:  The timing of the credits is perfect when I play the published files from my PC. I send it to my network admin, and it plays perfect when she runs it from her PC. But when she uploads it to our Windows 2003 Intranet server, the timing of the movie is off. The credits finish rolling way before they should. So it seems like maybe the file is playing too fast?
    Once recent change we made to the server was to add the .flv file type to the Mime directory. I don't know what that means, but I know we weren't able to get .flvs to play until we did this about a month ago. An earlier version of this file had been on the server prior, and we didn't notice an issue. But I had to change the audio and now that we've reposted it, we have this problem.
    Also, I upgraded my Vista machine to Windows 7 last week. I only have one problem with Captivate since the upgrade. I can't hear the audio when I play the slide in edit mode. But I do hear the audio when I preview the project. I don't think Windows 7 is causing my current problem with the .swf.
    So it stands to reason that one of these recent changes might be the culprit. But I thought it was worth posting here in case any of you have seen this before. Here's hoping!!!
    Thanks in advance!
    Kelly

    I'd like to post a link, but like I said, it's only internal.
    When I look at the HTML, it's set to black (background-color:
    #000000). Also, when I load it, the page itself is black, but the
    background of the Flash *only* has turned white. I can load the
    exact same page on my local drive and it comes up black. I've got
    publish settings to Flash 8 (my version) and AS 2.0. I checked that
    first because I've published lower in the past and had
    issues.

  • Timing changes from iPhoto to iDvd

    I made a slideshow in iPhoto5 with precise timing as far as music to photos. On export to iDVD5 to enable burning to a dvd, the timing has changed. It's just a little 'off.' Is there a workaround?
      Mac OS X (10.4.4)  

    Robin:
    If you export your iPhoto slideshow w/sound as a QT movie and then import it into iMovie you can select the movie in the timeline and use the Advanced->Extract menu option. That will extract the audio and put it in the audio track below the video track. Then adjust as necessary and close your iMovie project.
    Next open the iMovie project package, Control-click on the file and select "Show package contents" in the Contextual menu. Navigate down in the package to the Shared Movies/iDVD folder. Select the movie file in there and drag into your open iDVD menu window, avoiding any drop zones that may be there.
    That should give you a properly times slideshow.

  • Monitory does not power up after memory timing changed

    (See my sig for spects)  I tried changing memory timings to 2-3-3-6.  The last thing I tried was mem volt from 2.55 to 2.75 and the TI/T2 Memory timing to T1
    I hit save and exit and the computer seem to start but no graphics?.    ???  SO I had to flip th PSU switch and when I flipped it back (20 seconds later) the computer seemed to start but still no graphics?  I never hit the front power button either?!
    I had tweaked some of the other values with no problem earlier today. (tras, CAS delay ect). 
    One other note:  I have had to turn off the computer with the PSU switch since 1.4? BIOS flash I did last year.  I read something about RAID Firmware version ? (1 year ago) that came with that BIOS causing hangs ect.
    I may use this as an excuse to buy Vista today and start from scratch although I really don't want too.

    OK.  I reset the CMOS and windows loaded ok but now my RAID +1 array is gone. I see addition HD letters in My Computer now.  When I entered bios and change it to NVraid I got a windows error saying it could not load because of missing or corrupt file?  I tried a repair but it said it did not work.
    I do see the healthy raid array when the system Posts.  I did not click the restore optimal defaults yet.   Maybe I will have to do that now.

  • Slideshow Timing - Changing Individual Slide Timing

    in iPhoto '11 is there any way to change the timing of an individual slide? I'm preparing a slideshow of pictures for a Thanksgiving service where the pastor wants a text slide every couple minutes with some words he wants the congregation to speak. These slides would need more time than the other picture slides. I've already created the text slides in Photoshop, saved them as JPEGS and inserted them into the right places in the slideshow.

    That option is only available for some themes and not others.
    Classic
    Shatter
    Ken Burns
    The others themes don't have this feature.
    Alternatives to iPhoto's slideshow include:
    iMovie, on every Mac sold, as is iDVD.
    Others, in order of price:
    PhotoPresenter $29
    PhotoToMovie $49.95
    PulpMotion $129
    FotoMagico $29 (Home version) ($149 Pro version, which includes PhotoPresenter)
    Final Cut Express $199
    It's difficult to compare these apps. They have differences in capability - some are driven off templates. some aren't. Some have a wider variety of transitions. Others will have excellent audio controls. It's worth checking them out to see what meets your needs.
    However, there is no doubt that Final Cut Express is the most capable app of them all. You get what you pay for.
    Regards
    TD

  • Caption Timing Change Issue

    Hi all,
    I'm using Cap build 3.0.0 / 580. I see the lively discussion
    regarding the bold bug in captions. I too am a victim.
    In addition, each time I edit a caption, whether by opening
    it or by changing its size using the caption handles, it reverts to
    3 second default timing. It's making me insane!
    Is this related to the current bug discussions or something
    else yet again? Couldn't find anything specific to this behavior.
    Thanks for the sanity check,
    Robbin

    Hi Robbin
    Have you double-checked the setting for Project >
    Calculate Caption Timing?
    Assuming that's not it, you should seriously consider
    reporting the behavior to Adobe.
    Click
    here to view the WishForm/Bug Reporting Form
    Cheers... Rick

  • Flex Builder 3 Flash package changed / incomplete?

    Hi,
    I have installed
    Flexbuilder3_b2,
    flex3sdk_b3 &
    air_b3_win_sdk. I am having problems with the
    flash.desktop package in Flex builder 3.
    When I use the Help I can see that in Flex 3 flash.desktop
    are package components flash.desktop.NativeDrag* but when I try to
    use them in code it appears they are not in my flash.desktop
    package. Have flash.desktop.NativeDrag* been replaced by
    flash.desktop.Drag*? I refer specifically to
    NativeDragManager, NativeDragActions, NativeDragOptions.
    Also, I am trying to run an example project which also refers
    to flash.desktop.NativeApplication thus:
    import flash.desktop.NativeApplication;
    NativeApplication.nativeApplication.addEventListener(Event.NETWORK_CHANGE,
    checkNetworkConnection);
    - but NativeApplication is not referred to in the Help as
    part of flash.desktop & not available in the list of
    components. Can anyone tell me what this has been replaced with?
    Thanks in advance,
    Ob

    Hi, your Flex Builder beta 2 is out of sync with your SDKs.
    You should upgrade to FB beta 3.
    NativeApplication is now WindowedApplication, and NativeDrag*
    is the current naming for those classes. Perhaps you are looking at
    the beta 3 AIR help while compiling with the beta 2 SDK paired with
    FB beta 2. Try bringing FB up to date.

  • Shift Timing Change

    Dear all,
                  My client wants to change the shift timings as when there is a change in production plan due to variation in requirement.
                    Is it advisable to do the same ? Why

    Dear Mohan,
    please refer the thread-->
    Enterprise Asset Management (SAP EAM)
    pl try validity date option in work center as mentioned in the thread.
    You can create as many grouping with different sets of timings & change the validitiy time whenever you require.

  • Error while initializing ScriptUI :"Server initialization timed out!"

    Hey guys,
         That's what I get when I open After Effects:
    and when I finish work and close the program I get the following:
    As you can see that's a Windows 7 OS 64 bit, although I think the problem is OS independent.
    Waiting for your replies!

    We need to know more to help you. Please provide answers to the questions listed here: "FAQ: What information should I provide when asking a question on this forum?"

  • LSO_EVENT_BENCH perform initialization timing out

    when running several transaction like lso_psv1, lso_psv1 for the first time user of sap gui, the system times out.
    DUMP:
    Category               ABAP Programming Error
    Runtime Errors         TIME_OUT
    ABAP Program           SAPLHRTEM00USERSETTINGS
    Application Component  PE
    Date and Time          04/17/2014 13:23:49
    |Short text                                                                                        |
    |    Time limit exceeded.                                                                          |
    |What happened?                                                                                    |
    |    The program "SAPLHRTEM00USERSETTINGS" has exceeded the maximum permitted                      |
    |     runtime without                                                                              |
    |    interruption and has therefore been terminated.                                               |
    |                                                                                                  |
    |What can you do?                                                                                  |
    |    Note down which actions and inputs caused the error.                                          |
    |                                                                                                  |
    |                                                                                                  |
    |    To process the problem further, contact you SAP system                                        |
    |    administrator.                                                                                |
    |                                                                                                  |
    |    Using Transaction ST22 for ABAP Dump Analysis, you can look                                   |
    |    at and manage termination messages, and you can also                                          |
    |    keep them for a long time.                                                                    |
    |Error analysis                                                                                    |
    |    After a specific time, the program is terminated to make the work area                        |
    |    available to other users who may be waiting.                                                  |
    |    This is to prevent a work area being blocked unnecessarily long by, for                       |
    |    example:                                                                                      |
    |    - Endless loops (DO, WHILE, ...),                                                             |
    |    - Database accesses with a large result set                                                   |
    |    - Database accesses without a suitable index (full table scan)                                |
    |                                                                                                  |
    |    The maximum runtime of a program is limited by the system profile                             |
    |    parameter "rdisp/max_wprun_time". The current setting is 10800 seconds. If this               |
    |     time limit is                                                                                |
    |    exceeded, the system attempts to cancel any running SQL statement or                          |
    |    signals the ABAP processor to stop the running program. Then the system                       |
    |    waits another 60 seconds maximum. If the program is then still active,                        |
    |    the work process is restarted. 
    When we do a bedug, it is checking if data exist in t77zz table if record empty it will pass through below function modules to insert the data in table t77zz which is taking a lot of time and eventually times out.
    rhvx_uset_migrate_46c
    rhvx_uset_migrate_45a
    Please advise what is happening on the system and what is that 2 function modules for. Thanks so much

    when running several transaction like lso_psv1, lso_psv1 for the first time user of sap gui, the system times out.
    DUMP:
    Category               ABAP Programming Error
    Runtime Errors         TIME_OUT
    ABAP Program           SAPLHRTEM00USERSETTINGS
    Application Component  PE
    Date and Time          04/17/2014 13:23:49
    |Short text                                                                                        |
    |    Time limit exceeded.                                                                          |
    |What happened?                                                                                    |
    |    The program "SAPLHRTEM00USERSETTINGS" has exceeded the maximum permitted                      |
    |     runtime without                                                                              |
    |    interruption and has therefore been terminated.                                               |
    |                                                                                                  |
    |What can you do?                                                                                  |
    |    Note down which actions and inputs caused the error.                                          |
    |                                                                                                  |
    |                                                                                                  |
    |    To process the problem further, contact you SAP system                                        |
    |    administrator.                                                                                |
    |                                                                                                  |
    |    Using Transaction ST22 for ABAP Dump Analysis, you can look                                   |
    |    at and manage termination messages, and you can also                                          |
    |    keep them for a long time.                                                                    |
    |Error analysis                                                                                    |
    |    After a specific time, the program is terminated to make the work area                        |
    |    available to other users who may be waiting.                                                  |
    |    This is to prevent a work area being blocked unnecessarily long by, for                       |
    |    example:                                                                                      |
    |    - Endless loops (DO, WHILE, ...),                                                             |
    |    - Database accesses with a large result set                                                   |
    |    - Database accesses without a suitable index (full table scan)                                |
    |                                                                                                  |
    |    The maximum runtime of a program is limited by the system profile                             |
    |    parameter "rdisp/max_wprun_time". The current setting is 10800 seconds. If this               |
    |     time limit is                                                                                |
    |    exceeded, the system attempts to cancel any running SQL statement or                          |
    |    signals the ABAP processor to stop the running program. Then the system                       |
    |    waits another 60 seconds maximum. If the program is then still active,                        |
    |    the work process is restarted. 
    When we do a bedug, it is checking if data exist in t77zz table if record empty it will pass through below function modules to insert the data in table t77zz which is taking a lot of time and eventually times out.
    rhvx_uset_migrate_46c
    rhvx_uset_migrate_45a
    Please advise what is happening on the system and what is that 2 function modules for. Thanks so much

  • How to change Flex Application frame rate at runtime

    hello,
    i have Flex application that need to change the Frame Rate at
    runtime.
    when i am changing it by using the slider component, here the
    code:
    private function onChangeSlider(e:Event):void
    frameRate = sliderFR.value;
    trace(frameRate);
    <mx:HSlider id="sliderFR" x="452" y="765" width="378.2"
    minimum="1" maximum="50" liveDragging="true" snapInterval="1"
    value="25" change="onChangeSlider(event)"/>
    the value is changed, but the frame rate is not changed.
    when i insert the binding to the <Application> tag i
    got error on this one, because i can't bind there items for the
    application level.
    how can i change the Flex frame rate at runtime?

    i found the solution!
    in Flex application you have frameRate properties that
    doesn't work at runtime in the ActionScript code.
    if you have a video that you want to change the speed of it,
    you need to change the stage.frameRate (of all the Player itself).
    and there is a catch here. if you will try to change it right after
    the application will start (like in: creationComplete event) you
    will have a runtime error.
    what you need to do is, change the stage.frameRate value
    after the all application is started from a button or other event
    in the system.
    this is working grate for fast/slow FLV playing
    enjoy!

Maybe you are looking for