A huge lag when changing currentState for the first time in a simple application, Flex 4.6?
Please try the code example below.
The first time I click the button, it takes my PC ~ 85 ms to change state. If I then click on the back button, then click the button again, the lag is gone and the state change is fast. I tried to change the strategy of creation, seems like it has no effect and there are deeper problems
My questions are why there at - it lag the first time you click the button, and how to fix this? I have an application that uses a stream of state very similar to the code that I've simplified below and it is really driving me crazy.
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx".
"" xmlns:local = "*".
creationPolicy = "all" currentState = "InitialState.
width = "512" height = "512" >
< fx:Script >
<! [CDATA]
import flash.utils.getTimer;
protected function button1_clickHandler(event:MouseEvent):void {}
var time: int = getTimer();
this.currentState = "ListState";
trace ("time to show the status of the list:" + (getTimer() - time));
}
protected function button2_clickHandler(event:MouseEvent):void {}
var time: int = getTimer();
this.currentState = 'InitialState. "
trace ("time to go back:" + (getTimer() - time));
}
[]] >
< / fx:Script >
< s: states >
< name s: State = "InitialState" / >
< name s: State = "ListState" / >
< / s: states >
< s:Button includeIn = "InitialState" click = "button1_clickHandler (event)" x = "221" y = "221" label = "View state" / > "
< s:Button = "ListState" x = "226" includeIn = "324" label = "Return" click = "button2_clickHandler (event)" / >
< s:List includeIn = "ListState' x = '139' y = '158' itemCreationPolicy 'immediate' = >
< s:dataProvider >
< s:ArrayList >
< fx:Object / >
< fx:Object / >
< / s:ArrayList >
< / s:dataProvider >
< / s:List >
< / s:Application >
-OUTPUT-
time to see the State list: 84
time to go back: 2
time to see the State list: 5
-OUTPUT-
Post edited by: Chentleman. Fixed code indentation
I'll be frank and say that I'm pretty annoyed that you did not read my post at all. 85 ms is a 1600% increase in offset, the first time the state changes. It's also a smaller version of the problem with only a SINGLE component. The more components that you add, getting the worst of this delay.
After spending a lot of time searching, this seems to be a bug that has existed for some time as soon as Flex 4.1. https://bugs.adobe.com/jira/browse/SDK-30302. Now in flex 4.6, he's always broken with 9 month old bug report closed and postponed
itemCreationPolicy and creationPolicy don't work at all in conjunction with includeIn/excludeIn. At least work around it kind of works, although I don't know there are many people who still use the creationPolicies, not knowing why their applications are so slow.
Tags: Flex
Similar Questions
-
When I installed creative cloud for the first time I was not installed in the second computer and now I don't know how to do this. Can someone help me?
Hello
Please refer to the help documents below to download the application Adobe CC:
Download, install, update or uninstall applications
Kind regards
Sheena
Moving to the cloud creative download & install
-
is it normal when you open for the first time this software?
first time I ever use of lite. never seen anything like this befor the tutorials do not show this to be helo
Go in Edition > Preferences > Performance and uncheck CPU graph use.
-
I wanted to try 5 Lightroom before signing up for a plan, but I can't do anything to Lightroom.
I have a MacBook Pro with OS X 10.10.2. I have Photoshop CS6 installed and I have disabled it and it is attached to my account of cloud. I also tried to create a new catalog, nothing seems to work.
I'd like to try this, but currently I can't Lightroom to do anything...
I just found the answer for me.
I have step 5 on this technical support article:
Troubleshoot unexpected behavior. Specific user account | Adobe software | Mac OS
It's about repairing permissions on hidden folders.
-
Pre-load Palm TX - what will happen when I Hotsync for the first time?
I bought a 'medical' Palm TX Ebay delivered pre-loaded with lots of software. I want to save the unit since I have no way to recover it in case of hardware/software/human error.
I downloaded & installed Hotsync 6.2 but I'm afraid to try the Hotsync because the documents of the seller warned do NOT hang on to my computer because it damage my programs. Why would I NOT want to do? What happens during the "1st" with a PC & Palm Hotsync. The PC formats the Palm? Can I control who and keep him to crush and run the Palm over the PC profile on 1st sync? I know that I can come back it up after the PC & Palm are synchronized, I'm just afraid it will clear things if I do not pay attention.
Bottom Line: I want to protect the investment, but information from the seller have me worried that I would lose it all by using the native Hotsync tool. Should I be afraid?
Be afraid... Be very afraid! I hope that the bottom does not apply to your purchase, but we have heard this story before.
There are a lot of scams on eBay with preload Palm devices. Many of them use pirated software. No respectable seller of Palm devices with any conscience at all wouldn't you to "not HotSync. This should send red flags floating and alarms goes off! I have several medical programs on my TX, and they are not cheap by any means.
It is possible that the programs will be 'home' to the author of the programs and will try to check the recording. If the software is pirated, the registration process may come to an abrupt stop, and the program will not work!
Did you get a Palm to purchase installation disc? Do you have codes for registration for medical programs? I bet that you do not have...
You have a choice to make. Keep the appliance and do not use it for all 'normal' functions that involve HotSync or return the unit as soon as POSSIBLE for a full refund. Palm TX can be found on amazon.com and there are a lot of available medical software - the two freeware and for purchase. Skyscape.com is one of the best suppliers autour and very probably has anything that your specialty needs.
WyreNut
-
Application for Managing Director - question when you register for the first time
Dear support team,
I would kindly ask help you with the following problem, then registration application Managing Director first appears.
CCO ID dtekaccount10
Contract 95266947
Serial number FOX1415GLAZ
Problem illustrated - encountered us an error while processing your request... (screenshot attached).
CCO ID has the access rights to the 95266947 contract. Contract is valid. Serial number is covered by this contract. So, I'm not all questions why this issue may occur.
Please help what to do in order to get the registered delegate administrator.
Hello
This problem should be solved. Kindly try to re-register and to reply to this message if you are still having problems.
Thank you!
-
Hello and Merry Christmas to all. Sorry its been a while that I had time to be on the forum, (family illness) Anywho my daughter had dropped her Lenovo and although we went through every conceiveable options to retrieve and detaches from the dreaded "black screen" we couldn't. We had the chance to recover his files before he died forever! That was the good part... I had to resume at Tiger Direct, where they installed a new concert 320 H/D and re-installed Vista. Because she graduated she had two of the residence and turned my basement into a hoarders paradise, lol point being that she has no idea where his original disk is so I contacted Lenovo who assured me that they would send me a copy of Vista (how naïve of me) they me sent recovery disc (two games not less and it took more than a month!) that I discovered after the fact that I could have burned my own through Neo-Smart...
There is one thing that still bothers me and that's when we first pulled his new Lap Top for the first time and installed Vista I remembered that the very last paragraph said to make your own copy of the o/s before your done... what was not done! Is it still possible to make a copy of its operating system now? If Yes, how would go about this, if I wait for her to do it, it will not! She was lucky that I was able to use a slave to its hard disk of my XP Sata-IDE cable and get its files on the drive before it me locked. It has an external H/D as most of the people who do not know how to change their scores on the top of their Tower and get the full use out of them as desk top users do.
As aways thanks for the fellow forumer for your time and trouble and any help is appreciated.
Tiggerer
Hello and Merry Christmas to all. Sorry its been a while that I had time to be on the forum, (family illness) Anywho my daughter had dropped her Lenovo and although we went through every conceiveable options to retrieve and detaches from the dreaded "black screen" we couldn't. We had the chance to recover his files before he died forever! That was the good part... I had to resume at Tiger Direct, where they installed a new concert 320 H/D and re-installed Vista. Because she graduated she had two of the residence and turned my basement into a hoarders paradise, lol point being that she has no idea where his original disk is so I contacted Lenovo who assured me that they would send me a copy of Vista (how naïve of me) they me sent recovery disc (two games not less and it took more than a month!) that I discovered after the fact that I could have burned my own through Neo-Smart...
There is one thing that still bothers me and that's when we first pulled his new Lap Top for the first time and installed Vista I remembered that the very last paragraph said to make your own copy of the o/s before your done... what was not done! Is it still possible to make a copy of its operating system now? If Yes, how would go about this, if I wait for her to do it, it will not! She was lucky that I was able to use a slave to its hard disk of my XP Sata-IDE cable and get its files on the drive before it me locked. It has an external H/D as most of the people who do not know how to change their scores on the top of their Tower and get the full use out of them as desk top users do.
As aways thanks for the fellow forumer for your time and trouble and any help is appreciated.
Tiggerer
Hey tiggerer
NeoSmart is software startup repair not a recovery disk to reinstall vista
and once you have replaced your hard disk you have lost the ability to do the recovery disk from the recovery partition that may have been defective hard disk
and it depends on your version of vista as to whether you can now make a backup complete pc using microsoft software
you need vista business or vista ultimate to backup full pc
read information from microsoft about it at the link below microsoft
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-your-programs-system-settings-and-files
If you have not these versions vista expect from lenovo recovery disks be delivered or buy a third party program to do a full backup pc
one of these programs is the true picture in the link below
have a happy holiday season
Walter, the time zone traveller
-
I bought this new comp with windows 7 already installed. has worked fine up intill a week or two it y a. I installed a new game, and after installation, I press launch to play it and pop up with a message saying not sufficient privileges: you must be an administrator when you run this application for the first time. also, I thought that I must be the administrator when I tried to launch the disk defragmentation. my account is the administrator account so I don't understand why they say that.
I'm sorry. I was reading through additional FAQS regarding the same problem. I saw where someone said to try to add another admisistrator account to try to take on the former. but I had no luck with this ether. I also downloaded the program of the UAC, and I turned it off, reset my computer and still no change to my problem. I also tried to download the MSE restore tool, but I found myself with a message saying that I have no MSE
Sorry, the MSE tool is to set the MSE when its broken.
UAC controller Tool v1.0 can be used to control the
The UAC settings.However, I suggest you restart the PC and after BIOS hold the F8 key
and when the Windows Startup Menu appears, select Mode safe mode with networking.Now, you will enter Safe Mode. On the page to connect, you will see the
Standard Windows administrator click it to open a windows session, press and hold
in mind, the password can be blank.Once you have done that make a new account administrator and giv it a name.
Restart the PC. That you did this newspaper using the new account.
Once you have done that decide what to keep with your current administrator
account once you've done it restart the PC, BIOS hold down the F8 key and
Select Mode safe mode with network and enter dependencies the Standard Windows administrator.Go to control panel-> user accounts control and security for the family-> user accounts, then
Select manage another account. In the list, select the administrator account
your select and then delete the account, then it will ask you if you want to keep
files etc, it's your own decision. Itknowledge24.com -
My names of files in Flash CS6 change every time I have save for the first time
When I got Flash CS6, I worked on an animation and has called "grumpy." Now, 2 years later, whenever I'm doing a project in Flash and save it for the first time, he adds "": grumpy ' at the end of the file name. "
For example, I'm working on a project now with the point leader name "2_1.fla segment." When I recorded it for the first time, it changed to "segment 2_1.fla*: grump.» Adds it at the end of any project, regardless of the type (ActionScript 3.0 or 2.0).
I have no idea why Flash is doing this, because this project is not connected to the original 'grumpy' somehow. I don't know how to remove it, either. Any help would be appreciated! Thank you!!
reset your preferences - flash: http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
you could also disable AutoSave to see if that solved the problem.
-
My nail of the thumb in bridge always have evidence the adjustments I make to RAW files. Now, for the first time they have not. However when I select the images adjusted and open them in CS6 adjustments are there. I restarted bridge and PS, and I restarted the computer (Mac). Still the same problem.
I thank assani, but it wasn't the answer. The problem was, I finally understood, that the "option for generation of quality and preview thumbnails" wasn't on "high quality" as it usually is. I have no idea how this happened as I never change this option.
Thanks a lot for your help.
Mitchel Gray
-
Every time after I get a Firefox Nightly update and run it, it will display the next page:
https://www.mozilla.org/en-US/firefox/nightly/firstrun/?oldversion=30.0 which is fine.
But when it opens this page, all my desktop icons go clear/white and one by one, they all return with their correct icons. And all this happens in a few seconds.
Why is the operation of Firefox every night for the first time, my desktop icons?I suspect that you have both nightly and Firefox version installed?
"The Firefox 'about' shows 30.0. and I've now checked for updates and are now running 33.1.1"
It's different from what you have first published here with!
Firefox 33.1.1 represents the latest version - a 32-bit version.Whereas, the version you first posted here with was a generation of 64-bit channel every night from July. Every night is for "Alpha-testers" and is updated every day, where the name of "night".
Everything that happens in the background on the Windows desktop should not be of concern right now, every night Win 64 bit is several months out.
If you really want to test the Win 64 Nightly builds, follow and participate in the very different evenings and son of 'channels' on MozillaZine forum is based. -
Photo PhotoSmart 7520 tray is blocked when I try to print photo 4 x 6 for the first time.
I just bought this 7520 and installed the software; then when I tried to print a picture for the first time, I kept getting the error message that the photo tray is locked (will not travel to bottom to pick up the blank photo paper) even if no clogging. The call centre could not solve the problem, and they ship me a replacement printer; but I suspect that this may be a common problem.
I searched the post, and someone else had the same problem. The solution is that the tab on the slide of paper size was outside the slide area. I fixed it, and the printer now prints pictures.
-
Dell audio drivers will not load when the system is turned on for the first time after adoption of Windows 10. I have to reboot every time. So what I'm doing puts the system into sleep. in this way, I don't need to stop and restart the system. It is Dell Inspiron N5559. Audio drivers are installed and up-to-date. Equipment works correctly.
Hi akilesh.sharma18,
Please repost this in the Audio forum from the laptop to help.
-
HP Deskjet 1000 printer - just changed the black cartridge for the first time and now it will only print first half of the page. Can anyone help
Hello Gloria,.
I ask you to execute methods in the following link and check if the problem is resolved.
You can also contact the manufacturer to find out how to clean the print head.
http://h10025.www1.HP.com/ewfrf/wc/siteHome?cc=us&LC=en
Please get back to us with the State of the question.
-
Hello
I started using Windows 7 yesterday for the first time after using Windows XP since its release. A couple of things, first off I noticed lag and be ground everywhere instead travel windows autour mouse, move the mouse on the screen, etc. It will just freeze and jump around, is not no good whatsoever. I have a wireless optical mouse Logitech, maybe this has something to do with it, because I tried to install the software for the mouse, and I got a weird error and something not to be in the right place (very annoying). Nobody knows why, I'll have this lag? It's really annoying and never happened in Windows XP. Any ideas on how to possibly resolve this problem? Thank you very much.
Justin
Programmer for Sony Online Entertainment.
Try to use another mouse, or by downloading the new firmware drivers/mouse from Logitech for your current mouse. Have you noticed the behavior if you start in safe mode? Or if you perform a clean boot?
Maybe you are looking for
-
HP 15 Notebook PC: Portable do not play videos
Hi, I noticed yesterday that my laptop has stopped play videos on several browsers. Any video seems to load fine, but it does not start. In Google Chrome, I sometimes get a message saying 'a plugin (Shockwave Flash) does not.', as well as the option
-
my printer used, I cannot set up an instant with HP ink account as the claim code is already associated with another account. After unplugging my hub and reboot / reconnect, a charge code showed on my touch screen but it says already with another acc
-
Case of Structures run a particular set of code for several conditions?
Structures of the event may have a single case of event manage several event specifiers. C code supports this kind of statement 'switch ': Switch (EnumValue) { case a: case b: handleAOrB(); break; case c: case d: e case: handleCOrDOrE(); break; by de
-
Not resettable 6210 USB device
Hello I am having some problems with a USB-6210, when I connect it to the target computer. The following is installed: - NI DAQmx 8.9.5 - NO MAX 4.6.0 I can run one or two tasks, until I get the following error: ERROR-88708 occurred to the DAQ Assis
-
HP Pro 400: Change language
The language has been changed from English to Hebrew... Help!