Actionscript 3 :: Slowdown An Animation Without Decreasing The Fps?

Jan 20, 2010

I have this code that I found online that does an infinite rotating gallery, now my problem is that on enter frame it jumps and too fast. I want it to be as fast at after you hover out of the logo.

Here is the code:

//Import TweenMax
import com.greensock.TweenMax;
//Save the horizontal center

[Code].....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Background Loading Causing Animation Slowdown?

Feb 9, 2009

I am using Bulkloader [URL] to load in a succession of 10 images whilst the main elements of my site have already been preloaded. It is required that these images are not loaded within the preloader as they are large in size and this will increase the wait to an unacceptable level. They are not added to the display list upon succesful load but instead are added at a later time.

The problem I am having is that the menu navigation of the site is slowed down considerably and looks sluggish if the user navigates around whilst the images are being loaded in the background. Once loading stops everything is fluid and smooth. The animations are being carried out using a combination of timeline and Tweener.

Firstly, does anyone know if this is normal behaviour? I don't see why something being loaded should interfere with something moving on the screen, they are doing completely different tasks so I am a bit puzzled as to why they seem to clash.

Secondly, can anyone suggest a feasible workaround? I have been experimenting with using BulkLoader's pauseAll and resumeAll methods and have had some success by detecting mouse events and pausing/resuming as and when required, but it is proving a lot more complicated than I feel it should be, especially as I don't think loading should be affecting animation in the first place.

I have tried loading the images in one-by-one as I thought having too many connections open (apparently bulkloader can open multiple connections for faster loading) may cause some memory issue or suchlike, but that made no difference, everything is still choppy and sluggish whilst the background loader is running.

View 2 Replies

ActionScript 2.0 :: Infinite Menu With Decreasing Size

Jun 11, 2006

I was wondering if there's any way to modify the kirupa infinite menu tutorial AS so that the middle button is the largest, and the buttons on either side of it are smaller, and so on for the rest of the infinite menu??? I though I'd try asking this question in the Actionscript forum, since no one answered me in the Flash MX area.

View 3 Replies

ActionScript 2.0 :: Decreasing Size Of Object On (Press)?

Apr 10, 2007

I have a movie that, when a button is pressed, a specific movieclip (named revealbar) moves a certain increment (in this case 25 pixels):

Code:
on(press){
gotoAndStop(2);
_root.revealbar._x = _root.revealbar._x+25;
}

What I'd like to do is have the bar decrease in size instead of just move.

View 4 Replies

ActionScript 2.0 :: Show Balls Increasing And Decreasing?

Apr 24, 2011

I want to show the number of balls increasing as the frame numbers increase, and I also want to show them decreasing (reverse the frame no) how can I go about doing this? I also need the current frame to be in the middle of all the total frames so when I go to the right balls wil increase and go to the left balls will decrease..

View 3 Replies

ActionScript 2.0 :: Decreasing Color Depth Of Flash Application?

Nov 15, 2011

How to decrease color depth of my flash app from 32byte to 16 or 24? I am using Adobe Flash CS5, and I can't find anywhere this option.

View 0 Replies

ActionScript 3.0 :: Change Size Of Image In It Without Decreasing Graphic?

Mar 23, 2012

I have a problem with scaleX and scaleY. When I use them for images created by photoshop their graphic decrease a lot. I use scaleX and scaleY for changing the size of image so scaleX equal with scaleY. Is there another way to change the size of image in actionscript without decreasing graphic?

View 9 Replies

Actionscript 3 :: Prevent A Rect From Moving From Its Position When Decreasing Width?

Apr 12, 2012

I seem to be having problems with rectangles moving from their assigned positions when all I want to do is decrease their width.A game I'm working on simulates an explosive with a fuse. The fuse decreases in size as a clock counts down to 0.I think the problem has to do with local coordinates vs. global coords, but I'm not sure how to rectify the problem. Here is some code:

//fuse
_fuse = new Sprite();
_fuse.graphics.beginFill(0x000000);[code]........

Nowhere in my code does the x position of the fuse change.Aside from this one issue, the rect functions exactly how I want it to.

View 1 Replies

ActionScript 3.0 :: 10.4 Elements Without PC Slowdown?

Oct 26, 2009

I'd like to ask the following question: for instance, I have a scene in 3ds max with 10000 textured cubes. Is it possible to export this .max scene to Flash and create a .swf application, in which user will be able to rotate, zoom the scene and also select a particular cube and all this done without visible PC slowdown? After some googling I found that Papervision3D is a good tool for working with 3D in Flash.

View 3 Replies

ActionScript 3.0 :: Decreasing A Graphic Symbols Width By A Percentage Based On Two External Variables?

May 27, 2010

I am trying to decrease a graphic symbols width by a percentage based on two external variables.

Code:
var currentHealth:Number=70
var totalHealth:Number=70

[code].......

View 6 Replies

ActionScript 3.0 :: Slowdown: Memory Isn't Freeing Up

Feb 9, 2010

I'm having a bit of trouble in a game application I'm building,I recently added a bit of code that makes the game more visually interesting. As you move your character around screen, it creates instances of the GFX_Dot class, which is tied to a small green dot.In the class file I have a timer which decreases the alpha of the dot until it hits zero, at which point I'd like it to delete itself. Here are the functions I've got in the GFX_Dot class:

//GFX_Dot class
public function GFX_Dot() {
randomize();[code]..........

The part at the end "delete this" is meant to delete reference to "this" and allow it's memory to be re-used, however upon running the program, it's clear that they must not be deleting themselves, because after half a minute of creating a new GFX_Dot every frame at 30 fps, the game begins to get very slow. Before adding these graphical elements the game ran snappy all the time, I'm almost certain it has to do with them not being deleted properly.

View 1 Replies

ActionScript 3.0 :: SlowDown Collidion Detection Kit

Dec 21, 2009

after starting simple project with the Collision Detection Kit i get very poor framerate. The movie starts at full frame rate, but slowdown after few seconds.

View 1 Replies

ActionScript 2.0 :: [Flash8] - Slowdown With RemoveMovieClip?

Jun 3, 2007

I'm fairly new to the use of loadMovie, unloadMovie, and removeMovieClip for external swfs, but anyways, let me summarize the problem as simply as I can. I have a shell.fla file that is currently loading in external swfs, one at a time, for a game. Here is an outline of how my shell works:

1. first part of game gets loaded in an empty movieclip (container_mc)
2. a listener is created that will listen to an event broadcaster that exists within the external swf.
3. when the listener receives the "done" message, I run container_mc.removeMovieClip() and then load part 2 of the game in a new empty clip called container2_mc.

At this point, I get really severe slowdown for some reason, and I don't know why!! Part 2 of the game is a tile based maze game which is not optimized 100%, but when I run that swf on its own (i.e. not inside the shell) it runs perfectly smooth. But when it is loaded after part 1, it goes really slow.

[Code]...

View 3 Replies

Flash8 : Massive Slowdown When Exporting To Movie?

May 26, 2009

I've been building my app' and testing it every day by exporting it to a movie, and testing everything.It's all been going very well and the .swf is usually exported to my desktop in less tha the time it takes to minimize the Flash window.Today I started work on my .fla (mark18) and added a "back" button to every scene (it takes the user back to a main page with the actionscript:

on (release) {
_root.gotoAndPlay("Main");
}

There are 9 scenes which are very short.BUT, when I tried to export it, it took about 15 minutes to export.

View 4 Replies

ActionScript 3.0 :: Complete App Slowdown When Using Timer Class?

Mar 17, 2012

My app is set up to pause the animation when the mouse is pressed down by calling Timer.stop(). While the mouse is pressed, the user can draw on the screen by dragging the mouse. When the mouse is released, the animation starts again with Timer.start() and is based off what the user draws.However, after I let the animation run for a while the app gets so slow that I can't even drag to draw when the timer is not calling the animation update without the drawing skipping hundreds of pixels at a time.

ActionScript Code:
package  {
import flash.display.Sprite;

[code].....

View 2 Replies

ActionScript 3.0 :: Experiencing Slowdown When I Move The Mouse?

Aug 11, 2009

I am working on some particle effects, and I am experiencing noticeable slowdown anytime I move the mouse. I am not using any MouseEvents, and I even see this slowdown when the mouse is moving outside of the Flash window. Also, I only notice this slowdown when running the movie from within Flash CS3 (when I run the .swf externally, it runs flawlessly).How can I make this slowdown disappear?

View 2 Replies

ActionScript 3.0 :: Mouse On Screen Causing Slowdown?

Mar 17, 2010

I have a game that has around 400 movie clips in it and whenever I mouse over the stage the FPS drops to around 8-15. I tried setting Mouse.hide() and mouseEnabled = false but it doesn't seem to do anything

View 1 Replies

ActionScript 3.0 :: Huge Slowdown Of Graphics Pipeline In Firefox

Oct 11, 2009

When I run my flash app in the default player it runs at 60 fps (the code is ~2ms a frame), but when I run it in firefox, the rendering phase is incredibly slow (~50ms).This is a relatively new symptom. I have not increased the amount of data to be rendered, but I have modified the type of data from MovieClips cached as Bitmaps, to straight Bitmap data... if that's relevant.[code]

View 3 Replies

ActionScript 3.0 :: Large Number Of Movieclip Slowdown The Application?

Jan 10, 2012

I have a scrollbar function.In the content area i attached movieclips.Those moviclips have dynamic textfield.The scroll bar working for small list of contents.up to 500 or 600 moviclipsWhen i attached 2000 or larger number of movieclip the Entire flash get slows. How to i fasten them with same number of movieclip. why flash player slow when attaching large number of movieclip? it takes near by 58% cpu usage at this time.What is the reason for

View 2 Replies

ActionScript 3.0 :: Mouse Movement Causing Flash Player Slowdown

Oct 1, 2009

I am struggling with an issue at the moment related to mouse events or more specifically mouse movement. I have found that moving the mouse in my game causes it to slow down. Rapidly moving the mouse can actually freeze the game, I believe EnterFrame events are actually dropped when the mouse is moving rapidly.

I thought at first that it must be something I coded incorrectly so I used the Flex 4 Beta's performance tools and analyzed the Flash 10 SWF that I build using Flash CS4. Mouse Events were the leading performance hog by far.

Whenever the mouse moved the CPU usage would skyrocket. I then tried an empty Flash App with no Actionscript, I had the same CPU spike.

So if I'm getting this problem with a Blank SWF how come I don't see this problem talked about all over the internet, how is every other Flash Developer not running into this problem?

View 10 Replies

ActionScript 3.0 :: Firefox And Opera - NetStream.Play.Stop And Video Is A Slowdown?

Mar 25, 2011

Video broadcast using VLC to flv file. I am using the NetConnection, NetStream and Video to play it in a flash. In Chrome and IE everything works fine, but in Firefox and Opera NetStream often dispatch event NET_STATUS with info.code = NetStream.Buffer.Flush and NetStream.Play.Stop and video is a slowdown.

View 1 Replies

ActionScript 2.0 :: Mc.onRollOut - Shows An Animation OnRollOver And An Animation On RollOut But OnRelease The Animation Enlarge Itselfs

Jun 19, 2004

I have a movieclip that shows an animation onRollOver and an animation on RollOut but onRelease the animation enlarge itselfs but now when I'll roll out when the animation isn't open (so i didn't release) the animation plays the animation for the minimizing of the animation. Here's my code (I know its a bit amateuristic but I'm not a programmer )

[Code]....

View 4 Replies

Professional :: If You Create An Animation Can You Loop The Last Frames Of That Animation If A Button Is Held Down?

Dec 6, 2011

ok lets say you create a button that when held down play an animation of 20 frames if realsed it goes to frame one and stops if held down it plays out this animation. for the topic lets say you have a fire animation and you want the fire to apear and if the user hold its down the animation reaches the end of the time line and loops back and plays the last 5 frames of the animation and as soon as it is let go it goes to and stops at frame one. Well i know how to make a button that when held down plays out an animation. And i know how to say when released goes to and stops at frame one. What i dont know how to do is to loop the fire at the last 5 or 6 frames so the user can hold it down all day long and play out that animation.

View 1 Replies

ActionScript 2.0 :: MX :: Press Link 2, It Plays The Closing Animation, But Not The Entire Animation?

Jan 3, 2003

Ok when you press link one it olads great! when i press link 2, it plays the closing animation, but not the entire animation, thats the problem.My closing animation is a red square going from one end to another ( for the hell of it).But you see content number two will load b4 the red square gets all the way across!!

View 2 Replies

ActionScript 3.0 :: Keyboard Listener - Certain Animation And User Must Input The Key Within The Progress Animation

Mar 29, 2009

Now I have 2 movieclip. Mc1 & mc2. I planned to to make mc2 do certain animation and user must input the key within the progress animation of the mc2 in order prevent something happen

View 1 Replies

ActionScript 2.0 :: [FMX] Transition - First Animation To Goto The Last Frame In The Loop Before Starting The Next Animation?

Nov 4, 2003

so I have a looping animation that is several frames long. Inside the animation is a button, when pressed I want to go to another part of the timeline, where another animation is waiting. Simple, I got that working no problem. But... I need the first animation to go to the last frame in the loop before starting the next animation. The way I have it now makes an ugly cut, and the transition between animations isn't seamless.

[Code]...

View 4 Replies

ActionScript 3.0 :: Flash Animation With Tweener Won't Show Animation In Flex

Aug 13, 2009

I made an animation in Flash which I want to embed in Flex using SWFloader.
 
I've imported the tweener class (caurina.transitions.*) to tween a rotation. The animation runs perfectly in Flash.
 
However, when I embed the animation in Flex, the tweening is gone.
 
Do I need to import the tweener class in Flex?
 
I use Flash Player 10 (latest version), Flash CS4 Professional version 10.0.02, IE8 and Flex Builder 3.

View 2 Replies

Professional :: Existing Animation Play Within The Final Flash Animation?

Jan 15, 2012

I have a certain set of motion twains that I've successfuly completed, they constantly loop right now (default), and is saved in the SWF file.I'd like to take that finished looping animation, and insert it within another animation (a) that can be played with a play button, and stopped/resetted with a stop button.How do I insert the completed looping animation into the main animation? And is there something special I have to do in the actionscript of the start and stop buttons so that the "inner" looping animation will start and stop with the "outer" main animation?

View 1 Replies

ActionScript 3.0 :: Animation Only On First Load, Auto-Skip Animation For 15 Mins?

Feb 3, 2009

i want to skip animation for second third etc.. load, for 15 minutes...I have flash file in AS3, but I find only code for AS2:

Code:
stop();
var today = new Date();

[code]........

View 0 Replies

ActionScript 3.0 :: Click On Button1 To Replay Animation / Animation Does Not Show

Oct 19, 2009

I have created two buttons (Button1 and Button2). When you click Button1, an animation pops up. You click on the animation to close it - that works fine. If I then click on Button1 again to replay the animation, the animation does not show. If I click on Button2 THEN go back to click on Button1, the animation plays. Why can I not click that same button twice in a row? What am I doing wrong?

View 2 Replies







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