Flex - Flash: How To Break Out Of A Lockup Resulting From No Idle Time
Mar 13, 2011
I have a Flash 10 program that locks up when running on a device, such as a netbook, that has a weak processor.Specifically, it goes into a state where it is doing very heavy processing within an ENTER_FRAME event handler following a mouse down event, and expects to stop doing this processing following a mouse up event. The problem is that, since there is no idle time left over following the frame event handlers, the mouse up event is never received, and consequently the process locks up in what amounts to an infinite loop. Yes I can do things like lower the frame rate and do what I can to reduce the processing taking place in each frame, but is there some iron clad way to break out of this? Is there some way to detect that no idle time exists? Or is there a way to force receipt of the interactive mouse events? Or could I, within the ENTER_FRAME code, detect the state of the mouse, up or down, without getting a mouse event?
View 2 Replies
Similar Posts:
Sep 30, 2011
the flash player seems to spend about 5msec (and sometimes more) idling at the end of every frame.this happens on a wide range of workloads and a wide range of targetted framerate.this seems to happen even when the flash player is not keeping up with the targetted framerate. using a profiler that shows what each of the CPU cores is doing, i notice that soon after returning from my frame handler, all four cores start executing (i assume to render) for a few msec, then 3 of the cores go idle while the main core finishes, then the main core goes idle and all 4 core remain that way for about 5msec.this is running flash player 10.3, windows 7, firefox, but i have seen similar idles in other environments
View 1 Replies
May 10, 2009
For several weeks I've been having issues with both FireFox and IE locking up while loading pages. The issue is sporadic. In FF I can usually play one or two .swf before it stops and in IE I get the same thing but it will usually make it a bit farther than FF. I've removed Flash from IE and it works fine. But Firefox still has issues when it encounters a .swf stream for some reason.
View 4 Replies
Jan 19, 2012
I'm trying to run a function where after an amount of time of the mouse being idle a movieclip plays, then if the mouse moves another one plays. I have gotten my code to do this, but the last function runs over and over as the mouse is moving. I want it to run once, so the movieclip plays once. how do I do this?
here is my code,
standstill = 0;
lastmove = 0;
timeout = 3000; // 1000 ticks = 1 sec
[code]....
View 1 Replies
Jan 20, 2012
I'm trying to run a function when after a specific amount of time of the mouse being idle a movieclip plays, then when the mouse becomes active again a different movieclip plays. I have gotten my code work for the most part, but the last function runs over and over as the mouse is moving. I want it to run once, so the movieclip plays once.
here is my code:
standstill = 0;
lastmove = 0;
timeout = 3000;
[code]...
View 1 Replies
Aug 18, 2009
I have a Flex application embedded in a Flash application, which was working fine and currently works fine if not embedded. As of last Friday, when embedded the Alerts do not show (no error, just nothing), DateField Calendar dropdowns do not show (null value reference of DateField), and dynamically showing the busy cursor errors (null value reference). My code for the Flex app did not change, and I can't think of any reason outside of Flash Player updates (which I think unlikely) or something has changed in the Flash application that is embedding it.
View 1 Replies
Feb 4, 2010
How can I tell when a user has been idle for say 5 minutes on my Flex app? When I say "idle" I mean the user has not interacted with the application at all.
View 5 Replies
Aug 2, 2011
I am having some weird trouble with getting my Flex Builder 4.5 environment set up and working. I am currently debugging with the stand alone version of the debugger, though I have the same problem using the versions for Firefox and/or Chrome. It works fine as long as I do not include any break points, if I do include break points (anywhere in the code) the debugger just goes unresponsive until I terminate the process from FB.
View 1 Replies
Sep 26, 2008
I've got a quirk here I'm having a difficult time hammering out.I've got a control object with a sound object as a child. This global sound object has another sound object as a child:
Code:
Master = {};
Master.soundManager = new Sound();
Master.soundManager.BGM = new Sound();
\
In the main loop of my program, I have a function (VNELineReader()) with a switch looking for particular cues, one of which is loading a sound into BGM:
Code:
case "bgm_load" :
Debug.trace('Loading music: Sound/'+args+'...');
Master.soundManager.BGM.onLoad = function() {[code].....
Now, when I run this in the Flash 8 IDE, no problems. The script waits for the sound to load, resumes, and later on plays BGM with a case "bgm_play". However, if I compile the program and play it with the external flash player, the loadSound call causes the player to freeze, eat up about 600MB of memory in task manager, and then crash. It also does this if I open the .swf in Internet Explorer. However, it works fine in Firefox.
View 1 Replies
Jul 6, 2011
I have a site that is using 80 - 95 % CPU power, while sitting idle.
The rundown.... The site has selectable backgrounds, that are set on the main timeline. Most of the rest of the site resides inside of a MovieClip that sits on the main timeline. Before that movieClip loads, it uses about 4-15% CPU power to do everything including animations.
Once it stops on the Frame that has the main site MovieClip the CPU usage goes through the roof. However, even if I don't interact with it and it is just sitting there, stopped on a frame, no animations looping, and nothing loading. My CPU usage is nearing 100%. What is going on? And How can I make this use less power.
View 4 Replies
Jul 8, 2011
I have a site that is using 80 - 95 % CPU power, while sitting idle.
The rundown.... The site has selectable backgrounds, that are set on the main timeline. Most of the rest of the site resides inside of a MovieClip that sits on the main timeline. Before that movieClip loads, it uses about 4-15% CPU power to do everything including animations.
Once it stops on the Frame that has the main site MovieClip the CPU usage goes through the roof. However, even if I don't interact with it and it is just sitting there, stopped on a frame, no animations looping, and nothing loading. My CPU usage is nearing 100%. What is going on? And How can I make this use less power.
View 3 Replies
Sep 25, 2011
I've written a flex (mobile) application, that ended up bigger than I expected.
I'm pretty happy with all my classes and everything on my AS files. However, the view turned out really big, as I'm using MXML to layout my app.
I was thinking about creating external components I could call on my view to make it more readable, but am not sure what's the best way to do, or if doing so is the best way at all.[code]...
View 1 Replies
Oct 27, 2011
How do I visualize a break-even analysis with Flex's AreaChart?
View 1 Replies
Aug 20, 2009
I'm having to import a whole bunch of images, and when I import them to the library, each image gets a symbol automatically generated. However, instead of the symbol being named after the image itself, it just gets Symbol1, Symbol2, Symbol3, etc... Also, the images I'm importing are not sequences, just different/separate images I know I'm going to need to use. Is there anyway (within CS4 BTW) when importing these images, the resulting symbols are named after the images themselves so I can more easily seperate them out as appropriate? And is there anyway to import images into the library, but within specific folder structures created within the library?
View 5 Replies
Oct 21, 2009
I'm having to import a whole bunch of images, and when I import them to the library, each image gets a symbol automatically generated. However, instead of the symbol being named after the image itself, it just gets Symbol1, Symbol2, Symbol3, etc... Also, the images I'm importing are not sequences, just different/separate images I know I'm going to need to useIs there anyway (within CS4 BTW) when importing these images, the resulting symbols are named after the images themselves so I can more easily seperate them out as appropriate?
View 4 Replies
Nov 29, 2009
I am trying to implement simple chat application using flex. In it all my chat messages are stored as array collection items, where each item is a string (correspondent to one chat message). I am using datagrid to display all messages. One message goes to one cell of datagrid. Here how it looks: [URL] I want to add a feature for the tool to handle big lines of text. Is there a way to implement line break in case it's very long.
View 2 Replies
Aug 5, 2010
I have a flash application in which I need to scale a MovieClip.This MovieClip contains an image (in a Loader) with a resolution of 1024x768 (which is the size of the MovieClip as well).When I want to scale this MovieClip to 80% I do:
myMovieClip.scaleX = 0.8;
myMovieClip.scaleY = 0.8;
The problem is the resulting scaled image has aliasing and is not of good quality. Is there a way to change the scaling algorithm used to get a better image?Or is there a better way to scale MovieClips? I can't rely on bitmap data because this MovieClip may contain another SWF with video for example and it must scale regardless of its internal content.
View 1 Replies
Apr 15, 2011
My site: [URL] My browser/os: Safari 5.0.4 +/Mac The issue: click on either 'calendar' or 'specials' in the masthead of the page. An overlay should reveal. Inside of that overlay there are columns of text w/ custom scroll bars (jScrollPane). In Safari, only on pages that have a flash header, the text inside of the custom scroll area is being distorted. This is not the case in any other browser (including Chrome).
My best educated guess was that it had something to do with the wmode parameter of the flash object. I tried changing the wmode from 'transparent' to 'opaque' but the problem persisted. I also considered the possibility of a z-index related issue... from what I can tell, this also is not the problem. I have searched the web high and low for someone else who is experiencing something similar but I have not been successful.
UPDATE: I determined that removing jScrollPane and adding overflow auto fixes the text distortion issue [Please see attached image]. Of course, this is not a solution because I do not want to use the default browser scrollbars but it may be useful info for debugging. ANOTHER UPDATE: This issue is not related to flash specifically. The distorted/blurred text occurs over HTML5 video as well in Safari.
View 2 Replies
Mar 24, 2012
I'm a senior actionscript dev and would like to start converting some of my class libraries to JavaScript, especially those that make use of bitmap manipulation and would target the canvas element in HTML.
My question is how clean is the resulting JavaScript code from a haze/haxenme compilation? Is it easy to debug?
Or would I be better off forgetting haze/haxenme and coding in JavaScript from scratch?
View 1 Replies
Jan 3, 2012
i can just split it into two lines, but i'd like to know for curiosity's sake, how or if i could do it in only one.[code]i'm basically trying to take an element from an array (which is a point), normalise it, and set another variable to the resulting value, without modifying the original array element.using the code above, i get a null value returned. what could i do differently to make it work as decribed, without splitting it over multiple lines. is that possible ?
View 3 Replies
Aug 1, 2006
Using [URL] How do I create line breaks with the XML file? E.g.: I may have paragraphs or want to layout the text with gaps inbetween and the text startin on a new line of the Dynamic Text box.. I'm not sure if this is easy or not as I'm new to the XML side of Flash.
View 1 Replies
Jul 29, 2004
I have looked all over, but I cannot find an example of this. I have a kiosk movie, and I want it to return to Frame 1 if no one uses it for a couple minutes.
View 2 Replies
Mar 11, 2010
why the png function differs from jpeg in flash when the break command is put to use.when i import a logo png into flash and then go to modify>break apart all .the logo then has a rectangle full of black dots and i cant keep just the logoso its hard to remove and keep just the logo required.but importing a jpeg and then using the command modify>bitmap>trace bitmap i get a good result with none of those multiple black small dots.now what id like to know is,if a png can have the command=modify>bitmap>trace bitmap applied to it.i would have upload a file for better explanation but...they have been disabled for a while.
View 1 Replies
Apr 25, 2005
I have build a hybrid site where the navigation at the top is Flash, and the bottom is html. On all the pages, I have used straight html with no frames. That's all fine, but the client has one page that must be loading an external page into a frame. So I have a frameset where the top frame has the Flash navigation and the bottom frame loads the external link. This works fine, but then when I click to one of the other links in the Flash navigation, it loads that page into the frame where the Flash movie (nav) is. I tried to set the links in the Flash nav to the window being _self, and _top, and this just loads it in a new window.
View 1 Replies
Jul 6, 2011
Flash with ternary operator and break I ran into a problem where the following works fine...
[Code]...
View 3 Replies
Apr 25, 2005
I did some searching on this topic and couldn't find anything relevant. My problem is basically that I have build a hybrid site where the navigation at the top is Flash, and the bottom is html. On all the pages, I have used straight html with no frames. That's all fine, but the client has one page that must be loading an external page into a frame. So I have a frameset where the top frame has the Flash navigation and the bottom frame loads the external link. This works fine, but then when I click to one of the other links in the Flash navigation, it loads that page into the frame where the Flash movie (nav) is. I tried to set the links in the Flash nav to the window being _self, and _top, and this just loads it in a new window. Does anyone know a workaround for this?
View 1 Replies
Dec 30, 2009
how to make a clip invisible after 4 seconds of idle.
View 16 Replies
Jan 20, 2010
I would like to detect if a movie is idle: fully loaded and no use interaction and no other functions are running... Then will call to run some layout optimization functions
View 5 Replies
Oct 18, 2002
I m making a wbt where i want to display a message box if there is no interaction for some time (lets say 2 min). The scenario is there will be some voice over & text which ask the user to click on smthng or drag & drop intr. so i need to check once the voice is over whether student has done some interaction or if its in idle state. if state is idle then display some text box or message asking user to click or something.
View 2 Replies
Jul 1, 2011
How to convert UTC time into date time format in flex. I am using sdk 3.5. for example I have current date time in UTC format as 1309522586000 (milliseconds) and I want to convert it to friday jul 1 2011. How can I do this??
View 1 Replies