Memory :: Heart-rate Monitor With The Drawing API?

Jan 19, 2011

I've got a movieclip which monitors and graphs the level of activity coming in, like a heart-rate monitor at the hospital. The graph scrolls the data off the screen, but the movieclip is never cleared, and the off-screen data builds up indefinitely. The longer the user stays on the page, the more memory the un-seen part of the graph takes. What's the best way to clean up the unseen part of the movieclip?The code is as follows:

this.stage.addEventListener(flash.events.Event.ENTER_FRAME,
function(event){
var dif = md.getDifferences();

[code].....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Drawing Heart-rate App Is Killing The CPU?

Mar 1, 2005

When i run this swf for a while, the CPU reaches 100% and my computer get locked. I guess it has to do with enterFrame, but are not sure.

code on MC:
onClipEvent (enterFrame) {
this._x = this._x-0.5;
}

code inside MC:

_root.createEmptyMovieClip("triangle", 1);
z = Math.sin(x)/Math.tan(y);
x = x+3;

[code]....

View 2 Replies

ActionScript 3.0 :: Memory Monitor That Allows To See The Memory Leaked And Find Its Location?

Sep 26, 2010

I have an FPS monitor running and notice that I am getting choppiness here and there, bringing my game from 40 to 27 fps and back and forth at certain stages. I have an idea of where it is happening, but do not know for sure. I looked up quite a few memory monitors but haven't found anything decent yet. Is there a memory monitor that allows you to see the memory leaked and find its location? If not, how about just he memory leaked?

View 4 Replies

ActionScript 3.0 :: Get Monitor Refresh Rate

May 14, 2011

is there a way to get this parameter from flash somehow? The Capabilities class can't do it. I'm using the latest Flex SDK and the new Molehill API for FP11, if that matters.

View 6 Replies

ActionScript 3.0 :: Implement Tween Simulting The Heart Beating

Jan 28, 2009

How can I implement a tween simulting the heart beating.[code]this is almost what I want. But I would like the object to come back to initial dimensions. Should I use other 2 tweens ?

View 0 Replies

Media Server :: Webcam Frame Rate, NetStream Frame Rate, Flv Framerate?

Apr 25, 2010

I'm recording Webcam to FMS 3.5 but when I play the recorded video from FMS it's choppy. I have set the camera.fps to 30 but when I trace out the currentFPS for camera it's variable and usually falls between 20 and 30. However when I play the recorded video, netStream's currentFPS returns a lower value, something closer to 10. So my question is, 1) why currentFPS of netStream is not the same as Camera's? 2) What's the actual frame rate of the recorded video (not the netStream, but FLV's)?

View 2 Replies

ActionScript 2.0 :: Set The Frame Rate Of An Externally Loaded Movie To A Different Frame Rate?

Sep 21, 2004

set the frame rate of an externally loaded movie to a different frame rate than the movie it is embedded within.

I basically have a flash site that loads flash movies using loadMovie command, however, the frame is lost within these movies and simply adopts the main site frame rate.

View 2 Replies

Actionscript 3 :: Greensock LoaderMax Memory - Clean The Memory Which Been Occupied By The Previous Queue

Jan 31, 2012

I have a bit trouble with LoaderMax memory occupy, i have a queue, and i am keep loading images depend on user's action. if they click load more and it keep load, but i would like to clean the memory which been occupied by the previous queue (i have remove all the children been added by the loading previously). is there a way i can do it? the behavior like this.

[Code]...

View 1 Replies

ActionScript 2.0 :: Set The Frame Rate Of An Externally Loaded Movie To A Different Frame Rate Than The Movie It Is Embedded Within?

Sep 21, 2004

it possible to set the frame rate of an externally loaded movie to a different frame rate than the movie it is embedded within. I basically have a flash site that loads flash movies using loadMovie command, however, the frame is lost within these movies and simply adopts the main site frame rate.

View 2 Replies

ActionScript 2.0 :: Memory Management - Take Less Memory For Scrolling

Aug 2, 2007

I'm making an isometric game and I need to know which takes less memory for scrolling, making everything invisible that you can't see? Like if(!this.base.hitTest(worldHitter))this._visible = false; Or would it be better to remove the movieclips unseen and then reattach them when i should see them?

View 2 Replies

ActionScript 3.0 :: Pencil Tool - Drawing Above A Image But The Drawing Is Below The Picture

Nov 9, 2010

i've tried to simulate a pencil tool, for drawing above a imagem, but the drawing is below the picture. How fix it?

[Code]....

View 3 Replies

ActionScript 3.0 :: Generate Drawing API Data From Drawing Object?

Jul 22, 2009

Basically I've got a reasonably complex drawing object in a fla and I want to reproduce it in a class definition using the drawing api. However obviously this is a tedious task, so is there some trick or automated method of doing this?

Last time I needed to do this it was a drawing of an arrow and I ended up writing down x,y,width,height values for everything but this one has curves in it which I don't have experience with drawing anyway.

View 2 Replies

Flex :: Flash - Total Memory Usage And TaskManager Memory Usage Are Different?

Aug 24, 2010

I wrote an application in flash AS3, and when I trace from flash the total memory usage of the total application is only about 9MB, But at the same time Task Manager Shows the memory usage as 110MB. Around 100MB difference.Flash Trace Method System.totalMemory difference of the Trace from the Beginning of the application to end of the application.

View 2 Replies

ActionScript 2.0 :: Enabling Drawing Only When Drawing = True

Sep 28, 2009

I cannot get this to work. Without the "var drawing", "var drawing being true or false" and the "if statement", it works fine. But I need to add the "var drawing" so that you can only draw if you turn it on by pressing the "draw_btn" button. Note, I do not get an error, the script "apparently" contains no errors. Here is the code:

ActionScript Code:
var drawing = false
_root.createEmptyMovieClip("myLine", 0);

[Code].....

View 3 Replies

ActionScript 3.0 :: Drawing Over A Movieclip In A Custom Drawing App?

Jan 13, 2012

I've created a drawing tool which allows the user to draw on the canvas, the problem is that if I try to draw over a movieclip nothing happens. Is there a way I can allow for the user to draw over movieclips? For example if I had a background of paper?

Here's the code I'm using for it:

// This code is for drawing the lines on the page
//1.
var drawingLine:MovieClip = new MovieClip();
addChildAt(drawingLine,0);

[code]....

View 8 Replies

New Monitor Display With Flash

May 27, 2009

I recently installed a new 23 inch Samsung monitor and since then, I get all these lines accros my Flash interface and can't seem to find how to restore the screen. I am attaching a screen shot of the flash interface.

[Code]....

View 7 Replies

Get My FlashVideoStream Over SDI To A Video Monitor?

May 6, 2010

I m streaming a pal signal over FMS, i can get it over a PC or Mac on a Flash Player.is there anybody who know a hardware ti get it out over SDI?

View 1 Replies

ActionScript 3.0 :: Drawing Api Drawing 40,000 Objects

Feb 18, 2009

I need to draw on stage about 40,000 4x4 squares each a different color. The color is determined by an xml file. I have this working in as2 and have converted it to as3 the problem is the amount of time it takes to draw is causing cs4 to time out. I have extended the script time out to 60 seconds. In cs3 as2 it would draw the squares in about 15 seconds. I was hoping as3 cs4 would improve performance but seems to be the opposite. I have tried several methods such as adding children and various drawing variations. the bellow seems to work the best, but is still causing flash to crash.

ActionScript Code:
import flash.display.DisplayObject;
import flash.display.Graphics;
import flash.display.Shape;

[Code]...

View 9 Replies

Flex :: Way To Monitor USB Port With Flash?

Feb 21, 2010

I want to write an application that monitor the USB port, and when something is connected should show the contents of the drive (image viewer) automatically.there is any way to do that with Flex/Flash directly?or i might program another application in C in order to monitor the USB port and then comunicate with the front-end application with sockets?

View 2 Replies

Flex - Position AIR Window On A Second Monitor?

Dec 31, 2010

I'd like to open a window in my AIR/Flex application on a second monitor if it's available. Don't know how to go about it. Tried this:mySecondWindow.x = Capabilities.screenResolutionX;

But this only gets the size of the first monitor and if I try to assign a greater value, it switches to default 100px offset. Is there a proper approach to this? My native screen is maximized in "preinitialize" and then I open the second window on "applicationComplete".

View 2 Replies

Flash :: How To Detect Monitor Resolution

Jul 19, 2011

How to detect the Monitor current resolution in flex.

View 2 Replies

Flash :: Launch AIR App In Secondary Monitor?

Sep 16, 2011

Is there a mechanism by which an AIR application can manually display in whichever monitor I choose? I can look at the display list in Screen.screens, but I'm unclear on how to actually force the drawing of the app into one of those.

View 1 Replies

Flex :: Limitations Of The Network Monitor?

Sep 19, 2011

What is the reason Flash Builder 4's Network Monitor does not support applications that were created using pure ActionScript and Library projects? It seems to work only for Flex projects.

View 1 Replies

ActionScript 3.0 :: Monitor Whether An Mc Is Inside Bounds Of Another?

Jul 31, 2009

I am wondering if there is an easy way of monitoring whether or not an mc is within the boundaries of another mc while it is being dragged. Currently I am using different equations to determine the leftmost, rightmost, topmost and bottommost points of each mc and then when they are being dragged comparing their x,y coordinates. Is there an easier way... I ask because this seems to be quite a lot of code to get through for such a simple operation, especially when the function containing the code is being called each time the mouse moves..

View 1 Replies

ActionScript 3.0 :: Way To Monitor Stage Events

May 24, 2010

If there is movie clip playing on the stage is there a way to know if it is done playing. Is there some kind of stage listener or movie clip listener you could build that would monitor the clip that is playing and when it is done have the flash program do something else?[code]...

View 5 Replies

ActionScript 3.0 :: Get Monitor's Physical Size?

Feb 15, 2011

How can we get monitor's physical height and width ie size?

View 7 Replies

ActionScript 3.0 :: Open Window On Second Monitor?

Aug 8, 2011

How do I open a new native window on the second monitor?

View 1 Replies

ActionScript 2.0 :: Open On A Certain Part Of The Monitor?

Feb 3, 2004

But i have one question to it. How can i tell the window to open on a certain part of the monitor?

I know there's something like "screenX/screenY = .. " but can somebody tell me how i can build that into my script?

View 11 Replies

ActionScript 2.0 :: Monitor When The TextField Is Updated?

Aug 26, 2008

I have some code that will be generating data into a TextField. However I want to be able to monitor when the TextField is updated, a function is called.

Currently the onChanged command will only work when a user has entered information into the TextField and not when data is inserted via actionscript.

how I can monitor the change to the TextField when using actionscript to input data, but work the same as the onChanged command?

View 1 Replies

IDE :: Monitor Change Of Movie Clip?

Apr 13, 2010

I have a movie clip to display a clock and a datagrid for showing my schedule. I want my flash to alarm with sound when the time from the clock match one time on the schedule. Here is my actionscript:

Code:
clock_mc.onEnterFrame = function() {
if (_root.timer[i]==_root.clock_mc.clock_txt.text.substr(0,5)) {
alertSound = new Sound(alertSoundMc);

[Code]....

As you can see, I use onEnterFrame to listen and check matching between time on clock and schedule but it will check all the time and when it alarmed it produced sound all the time while the time is matched. I would like my flash to alarm only one or few times.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved