Actionscript 3.0 :: High CPU Usage When Constantly Rotating Movieclips

Feb 24, 2009

I'm working on a new site and one of the things the client likes most is the idea of these gears that are constantly rotating on the screen. However, now that I have the mock-up design done, I'm noticing that the constant rotation requires a lot of CPU to maintain. Has anyone else experienced this and have you figured out a better method than the one I am using to rotate the movieclips?

[Code]...

View 2 Replies


Similar Posts:


High CPU Usage When Playing Flv Files With Flash

Feb 21, 2009

As more and more FLV videos are moving to HD, I'm noticing high CPU usage and lots of dropped frames when playing FLV video in web browser with Flash 10. This is true even if the video isn't full screen. I've tried a variety of browsers (Firefox, I.E., Chrome) and the problem occurs on all of them so it's pretty clear it's a limitation in Flash.

Now my PC isn't high end (it has a Pentium M 1.86 GHz processor), but I can take those same FLV files and load them in something like Media Player Classic or Windows Media Player (when using ffdshow) and play the FLV files full screen with little or no drop in frames and an acceptable CPU rate.

This is especially annoying on sites like YouTube where I actually have to save the video and play it back in something other than Flash to have it play back at an acceptable rate. This doesn't work for other sites like Amazon.

Why is the CPU usage so high when decoding and displaying videos when compared to other media players?

View 1 Replies

ActionScript 3.0 :: High CPU Usage And Program Slowing Down

Apr 16, 2009

I have helped write a program in AS3 that uses classes. We have 2 frames in our movieclip that consists of an ant moving. We have a class of ants and can create 15 instances of them and the program runs fine with the ants walking around looking for food and going back to a corner that is their nest and going back out again. The ants also respond to mouse movement if the mouse pointer is near an ant.

If we create more than 15 ants, then the program starts to slow down. If we have 30 ants on the screen, then there is noticable stuttering of the ant movement. The CPU usage on a P4 2.5Ghz Pentium is around 50%.

View 13 Replies

ActionScript 2.0 :: Loading XML Takes High CPU Usage?

Jun 11, 2003

I am loading an XML file (fairly large document). It takes a high amount of my CPU(almost 100%). This prevents me from working on other applications. Also, it takes a lot of time to load.

reduce the CPU usage.

View 4 Replies

Actionscript 3 - Animated Background In Flash - High CPU Usage?

Feb 24, 2012

I've hired a freelancer, to make a design for my flash app. And everything was fine, untill I saw this. It was an animated background. It has about 100 tweened movie clips, that do pretty much the same - simple rotation tween, but cpu usage on that background only reaches 17-20%. Its high for such a small effect. I've tried to optimize it - removing all code, and leving just timeline based tween, but that didn't solve my issue.[URL]

View 2 Replies

ActionScript 3.0 :: High CPU Usage With Typical Flash Scene?

Feb 5, 2012

I'm building a GUI for a karaoke system which uses Flash IDE.

Im not doing the OOP method, if you ask me why, its becoz I code slower with OOP and I need this urgently.

Anyway, I had only created 3 scenes with several simple MovieClips in it and some png files as button icons.

When I try to publish it and run, i noticed it will just freeze my Flash IDE and I've checked the CPU Usage in TaskMgr, it shows over 50% usage.

The filesize for this FLA is just 992KB, so you can probably tell that it doesnt have much bitmap in it.

I am hoping someone in this forum could show me some light as I've already struggle for the past 12 hours with no luck at all.

View 1 Replies

Actionscript 3.0 :: Flash Video Playback - High Cpu Usage

May 12, 2009

I've been deploying video to the web via Flash for a couple years now and I was curious if anyone has experience with / knows if deploying video via a Flash Media Server or any other type of video centric server has a significant impact on performance playback? I've noticed lately that with YouTube content, often available in "HQ" or "HD" that the video playback suffers very marginally when switching to higher quality video. However, with video players I have developed, using HTTP progressive download, CPU usage often spikes during download of the video and decreases once it's been cached. I've also recently employed pseudo-streaming techniques with the help of XMOOV but this doesn't seem to have much of an effect on CPU usage during video download.

My video player was developed in AS3 and while it's not using a class based structure, it does follow general OOP techniques. Would a class based video player improve performance? Here is a link to a work in progress video player: [URL] Please try a couple videos and let me know if they play back smoothly and / or if you notice CPU spikes. Also note that the only video that makes use of XMOOV is the "Make a Wish" video as it's been injected with the necessary metadata.

View 7 Replies

IDE :: High Cpu Usage - Force The Flash To Do Garbage Collection?

Nov 16, 2009

my flash has lots of images and dispaly objects. Hence it costs high cpu usages. after using my flash for an hour, it is dieing.I am trying to reduce it. I have some questions here:

1. I create an array, or string at frame 1 for example, when I go back to frame 1, should I create a new array, or a new string?? Or is it better to make it empty array(eg:[]) or empty string("")? which way it reduces cup uasge more?

2. does anyone know how to force the flash to do garbage collection??

3. any other possible reasons that cause high cpu usage?

View 1 Replies

Professional :: Firefox Plugin Container High Cpu Usage And Crashing?

Jan 8, 2011

All three of my family's computers have been experiencing problems with the firefox plugin container. The container spikes the CPU for long, long, periods of time slowing overall performance noticably.The only way to address the problem is to kill the Firefox plugin container.When I kill the plugin container it kills Adobe Flash.I've tried clearing the flash cache from the Adobe troubleshooting site, deleting all cache applications, and changing settings.My family plays Farmville which is always hanging and can only be fixed by restarting the computer. Okay, maybe farmville is a bad app.

View 3 Replies

Media Server :: High CPU Usage With RTMFP Live Streaming?

Jul 29, 2011

There are 25 livestreams streaming to FMS4 server  by fmle3.2,and client number is 20, (FMSCore.exe)CPU usage is about 20%~40%,  how can i reduce cpu usage?
 
CPU: 2x E7320 2.13G

View 2 Replies

Flex :: Spark VideoDisplay With Long Wait High CPU Usage In Google Chrome (and Opera)

Sep 6, 2011

I've created a Flex website that plays a video using the Spark VideoDisplay component. When selected, the VideoDisplay loads in the PopUpManager.

This works fine in all the browsers, except Google Chrome take significantly longer to start playing, during which the CPU usage peaks, then goes back down once video starts playing.

I've traced the player states it goes through and they are as follows:

Loading ready (hangs for ages with high cpu) buffering playing (immediately after buffering, CPU usage goes down, video plays smoothly)

What could be causing this to temporarily hang for so much longer in Chrome? I thought I could expect the same functionality and behaviour throughout all the browsers, as Flash is simply a plugin that runs as a separate process?

Edit: It seems that it's the same in Opera too. Is there any commonality between the two that would explain this behaviour?

[Code]....

View 1 Replies

ActionScript 3.0 :: Dynamically Placing Movie Clip At The Angle And Global Position Of A Mouse Click (button) Which Is Constantly Rotating?

Sep 23, 2009

Does anyone know the code for finding the global positioning of  X & Y co-ordinates of a click of a button which is constantly rotating, and then secondly the code for when you click on the button it  displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it  (so underneath the buttons are still rotating so other people can click them where they are)to explain the context, I'm trying to design a mock up of a circular interactive table when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the topI've included my .fla file which shows the four buttons moving and a little diagramexplaining what I'm trying to do.

View 5 Replies

ActionScript 2.0 :: Depth Setting - Movieclips Are Being Duplicated Constantly?

Apr 12, 2007

i have a movie clip on the stage, and i need its depth to always be higher than everything, but other movieclips are being duplicated constantly. How do i do this?

View 2 Replies

ActionScript 2.0 :: Setting MovieClips Quality - Low And High

Apr 21, 2003

Is there anyway to make a certain MC in a movie with low quality while the rest are all high quality? Like, I got this movie right, but I used a pixel font for the body text, and no matter what I try the text is ALWAYS antialiased.. I need to be Aliased and the only way to do that is to make the movie low quality.. but that messes up everything else...Is there a setting to keep the text low quality? I am using (fonts for flash).

View 13 Replies

ActionScript 2.0 :: Make A High Score Table For A Flash Game Where EVERYONE See's The Same High Scores?

Oct 11, 2003

how can i make a high score table for a flash game where EVERYONE see's the same high scores?

eg.

Bill gets 1000 in USA
Ben gets 1002 in UK

they can see each others scores on a high score table.

View 7 Replies

ActionScript 2.0 :: Method Of Rotating Multiple Movieclips?

Oct 14, 2008

The section in my code that does the rotating is in _root.onEnterFrame. Each movieclip is moved up/down an notch at a time within a 'for' loop. this loop is within a larger 'for' loop depending how many catagories to move up/down. I shall include this section of code for; i hope, better understanding

View 2 Replies

ActionScript 2.0 :: Creating Infinitive Effect By Rotating MovieClips

Mar 23, 2006

If I click on mc1, then mc1 has to go to the position of mc3, mc3 has to go to the position of mc2. The same thing must happen when I click on mc2, it has to move to the position of mc3 and mc3 has to move to the position of mc1. I would like to create some kind of infinitive effect by rotating the mc's. In a later stadium I want to fill the mc's with pictures.

View 2 Replies

ActionScript 2.0 :: Pausing MovieClips Rotating Around Center Axis

Nov 30, 2009

I have 4 movie clips rotating around a center axis. I know how to make each one pause individually, but I don't know how to get them all to pause when you roll over just one of them. Right now it only pauses the one you roll over and the others continue to rotate. I have this code pasted into the actions of each movieclip that is rotating.

Code:
onClipEvent (load) {
var radius = 220;
var speed = .6;
var xcenter = 450;
var ycenter = 300;
[Code] .....

View 1 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 :: Rotating Menu With Non-Rotating Labels?

Nov 1, 2005

I have a rotating menu that sets the selected button to the 3:00 position once clicked. I need the labels for the buttons to stay in the upright position as they rotate with the button. I have attached an image. Anyone know of an action script that would keep the labels upright?

View 8 Replies

ActionScript 3.0 :: Constantly Get Alpha Value

Sep 25, 2010

I am trying to get target movie clip's alpha value, which is animated.

When the alpha value is reached to certain value, I want to trigger certain event.

Is any way to get current frame's target alpha value by using set interval or event lister?

View 7 Replies

ActionScript 2.0 :: Can't Add With A Constantly Changing Variable

Jul 10, 2010

I am making a game in flash, that uses several resources to build different buildings, that help you to gain resources, etc. I'm trying to make it so that the more "_global.food" you have, the faster your resources will go up. I have it so that the variable "_global.woodBoostMeter" goes up as fast as "_global.woodBoostSpeed" and when it reaches 500, it gives you 1 wood. I want it so that "_global.woodBoostSpeed" is modified by "_global.food" divided by whatever 200 is. (So that you will get resources faster for the more food you have)

Here's the code I'm using:

Quote:

_global.woodBoostMeter =0
_global.woodBoostSpeed = _global.food / 200
_global.woodBoostObtainRate =1

[Code]....

I think the problem seems to be with the "_global.woodBoostSpeed = _global.food / 200". it doesnt go up slow like it should, since "_global.food" starts out at like 200.

View 3 Replies

Make My Sphere Constantly Spin?

Apr 9, 2010

I am making a splash screen for a program and I have a picture in my head of a spinning sphere with pictures on it.I've already made my sphere and mapped my design onto the sphere in illustrator, although it is not as clear as I wanted.How do i get the sphere into flash and animate it to spin continuously?

View 1 Replies

ActionScript 3.0 :: Framerate Keeps Constantly Dropping?

Nov 25, 2009

There's this flash web page Im developing. All movement is 90% written in code (as oppose to it being created via designer mode). And for some reason the frame rate of page in browser just keeps dropping. Can someone tell me what that reason could be?I am aware of the fact that framerate does change from time to time but I think that after a while it should climb back up. But in my case it just keeps dropping (by the 9000. frame its like 2 fps) and there isnt memory leak cos used memory amout by browser stays the same

View 1 Replies

ActionScript 3.0 :: Constantly Updating A Blur

Dec 24, 2009

I have a movie clip with motion in it. I'd like to duplicate this image, blur it, and mask it. I think I can do all of that, but I don't know how to update the blur so it will blur the moving elements in my movie clip.

how to constantly take a snapshot of a movieclip and blur it (while disposing of old snapshots)?

View 1 Replies

Blur Filter Constantly Crashing CS4 IDE?

Dec 21, 2008

In the last 2 projects i've worked on, i've been using the blur filter to create certain effects.My problem is that whenever I test the movie in the Flash CS4 IDE, it crashes giving me the option to submit a crash report to Adobe before quitting.If I run the compiled SWFs outside of Flash, they perform much better and there is no crashing.

View 2 Replies

ActionScript 2.0 :: Do While Loop Freezes Constantly

Jan 10, 2006

I have an array with let's say 10 items (keuzes_arr) in it and I want to put 'm on stage randomly, but every item can only be placed once. So I created a little loop, but for some reason the loop freezes constantly. This loop creates a random number, checks if it's already been used. And if not it use it to place the item on the stage.

[Code]...

View 3 Replies

ActionScript 2.0 :: [f8] Constantly Get Current Property

Feb 15, 2007

I've taught myself actionscript without books (working on a book now, finally) and I'm wondering how to do something fairly simple: Constantly get the property of an object.... for example, lets say I want to dynamically scale a clip using buttons... if you just use the tween class it will not work! I don't know why (again self taught), but you have to constantly get the _xscale and _yscale property. Currently I'm doing this via an empty movie clip with the following actionscript:

[Code]...

It works fine, but I assume there's a purely as way to do this? Also if anyone knows of an array tutorial for microbe-brained people (like myself), that would be helpful as well. I've gone through a few, but I still can't fully wrap my mind around WHY and HOW it works (even though I've implemented plenty of arrays).

View 2 Replies

IDE :: CS4 Constantly Updating Text Field?

Jan 5, 2011

I have a couple of text fields in my Flash movie that are constantly updated with text from an xml document. The xml document is updated through an interface on a seperate swf. It's based on a flash guestbook I found and have hacked apart, and everything works fine in theory... My main worry is that over the course of a day it loaded in the text 170,000 times: 30 times a second which is a little excessive and is playing havoc with my web stats. I've cut this down to once every 10 seconds but I'm still thinking I should use a better method, would it be possible to test for changes before I load in new text, or am I going about this entirely the wrong way?

var currPage = 0;
var showAmount = 1;// set this to the amount of entries you want to view at a time
// **** Load XML ****************************
myXML = new XML();

[code].....

View 2 Replies

ActionScript 3.0 :: Constantly Redrawing A Bitmap & Blurring It?

Dec 24, 2009

I have a movie clip with motion in it. I'd like to duplicate this image, blur it, and mask it. I think I can do all of that, but I don't know how to update the blur so it will blur the moving elements in my movie clip. Can anyone explain how to constantly take a snapshot of a movieclip and blur it (while disposing of old snapshots)?

View 2 Replies







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