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


Similar Posts:


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 :: 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 :: Loading External Images From XML Dynamically Causing Sluggish Swf Animation?

Feb 2, 2010

recently i have tried loading external icons dynamically into my vertical carousel using XML and the icons got loaded successfully into the carousel ... but once they are loaded the entire processor is getting consumed ( even though its a decent config ) and the animation is becoming sluggish ... i've tried and searched the net for a solution but i couldnt find one related to this... i just used actionscripting in my .fla and no tween ( in the main timeline or the movieclip in the library) ...

var numberOfItems:uint;
var xmlPath:String = "intro.xml";
var xml:XML;

[code]....

View 3 Replies

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

Android :: Black Background When WebView Is Loading Flash Animation?

Dec 7, 2010

I am displaying a series of Flash animations in a WebView. The screen goes black each time I load a new animation—this is visually distracting and I would like it to leave the screen white. I have tried changing the WebView background color, embedding the Flash animation in HTML and specifying the background color, and making the WebView "Invisible" until the page has finished loading but nothing seems to have the desired effect. The Flash animation does not display the black background when run on a PC.

View 1 Replies

Javascript :: Dropdown Menus Are "stopping" Flash Animation, Causing Choppy Animation?

Oct 22, 2010

Note: I am only using the Flash animation in IE only as I created an equivalent, jQuery based animation for all other browsers (because, surprise, IE didn't handle the jQuery version).look at this in IE only.The Problemhen you hover over the dropdown menus, the Flash animation temporarily "freezes" and the continues. This causes choppy behavior in the Flash animation.

View 1 Replies

Flash :: Content Causing Background Re-draw In IE & FF3?

Jan 3, 2011

Whenever I include flash content on a page it causes IE & FF3+ to redraw the background.This does not happen in Google Chrome, Safari, or FF2.
 
On every page of my site there is a small flash animation that is in a hidden div.  That flash content become visible and plays on a mouse-over event.  That all works fine.  However, in the above mentioned browsers, that flash content causes the site's background to be redrawn on every page-load, causing a flicker.  Is there any way to prevent this?  A google search revealed other people having the same issue, but no resolution.

[Code]...

View 1 Replies

Professional :: Mask Causing Animation To Reset / Stutter

Jun 2, 2011

For some reason when the mask fully reveals the art, the waves stutter (frame 26) and restart their animation from frame 1. I've included a link to download the CS4 flash file. [URL]

View 1 Replies

Scripts Causing Flash Intro Animation To Freeze

Apr 8, 2012

When my Flash website loads, it freezes halfway through the initial animation for 2-3 seconds and then continues. Am thinking it is one of the scripts in index.html and have tried all sorts of ways to correct it -[code]...

View 2 Replies

Actionscript 3 :: Loading External .swf File In Air Application Causing Looping Constructor

Apr 19, 2011

I'm building an Air application (straight AS3 no flex) that embeds and displays a .swf file. [code]Not only does this not add the .swf file to the display list like I want it to but it seems to run over and over again. "hello" fills up the output window from the trace statement like it's running every frame.The code loads a .jpg just fine so it must be a problem specific to flash files. I would think I would get some kind of security error if there was a conflict not this strange looping constructor. Does anybody have any ideas what is causing this behavior?So I think what was happening is that because both flash files shared the same application domain and they both had "Main.as" as the main class file it was running the constructor over and over again.I've updated my code above to show my unsuccessful attempts to load the external .swf with a different application domain.

View 1 Replies

Professional :: Cutting Out An Animation From A Background?

Mar 31, 2010

I just created my first animation of a plant "growing up", following the tutorial here: http:[url]..... It worked wonders: I basically drew a few lines, transformed it to symbol, created a new mask and script layer, and just used a brush to cover a part of the image on every frame in order to give the illusion of appearance. However, I don't need a background, I just need to cut the animation and make it an independent SWF.

View 8 Replies

Professional :: Building An Animation Like Background?

Apr 26, 2011

[URL].. I am a graphic designer and I am relatively new to Flash and I would like to animate a background like this 3D simulation that triggers when clicking on any of the buttons below that I want to achieve,Should i use Swift 3D? what kind of action script does the programmer uses to acheive this effec?

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

Jump Around In Frames While Still Keeping A Background Animation Going?

May 6, 2009

I want to make an interactive flash file, and the way I want to have it layed out is that a steady animation will play in one layer, while being able to jump around in frames with events such as a mouseover.I'm going to give a generic example, this isn't what I'm going to do, but it gets the point across.Theres a house and a tree. The leaves on the tree are falling, and upon mouseover of the house door, the door will open. Yet the leaves will remain falling (without skipping frames in the animation) while the door is still opening.How do you do this without using a goToAndPlay(x) or such that jumps the whole animation?

View 11 Replies

Keep An Animation Streaming In Background Over Scene Change?

Feb 11, 2010

I'm trying to find out if there is a way to get an animation to stream in the background and not reset or change when there is a frame jump or scene change. I just want it to become the permanent background.Kind of the way a sound can be set to loop and stream non-stop so long as you don't go back to the frame in which the sound started.

View 3 Replies

Professional :: Making An Animation With Transparent Background?

Sep 29, 2010

I want to make my animation have a transparent background instead of a blank background so that it can blend with my presentation. Is it possible to create the movie like this?

View 7 Replies

Flash - Getting Transparent Background PNGs From SWF Animation?

Jul 26, 2011

I have an artist I'm paying to do animation art for me. I need PNGs for each frame in the animation but she is most comfortable doing her animations in Flash. It sounds like getting the frames for me will be difficult for her. She was able to do the still art we needed and give us that as a frame, but for some reason the animation is different? Keep in mind we need PNGs with full transparency support in the background. We can't be clipping these frames out by hand.

View 1 Replies

ActionScript 3.0 :: How Achieve Background Animation / Interaction

May 7, 2009

How to achieve this background animation/interaction [URL]. I am making a personal website in as3 and i would love to have something like that..

View 2 Replies

ActionScript 3.0 :: How To Create Looping Background Animation

Aug 18, 2009

I found a tutorial online that showed me how to create a looping background animation (falling leaves) but the code is in Actionscript 2.0. I am in the process of trying to covert the code to Actionscript 3.0 but there are still a few things I'm having trouble with (i.e. setRGB, duplicateMovieClip, etc).

Code:
leafNumber = 30;
for (i=0;
i<leafNumber; i++) {
newLeaf = leaf.duplicateMovieClip("leaf"+i, i);
newLeaf.x = Math.random()*Stage.width;
[Code] .....

View 5 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

Assemble Animation / Sound And Background Image Automatically?

May 16, 2011

I need to learn how feasible it is to automatically assemble Flash animations which take a background image, an animation (or a set of vector drawings that can be turned into an animation) and a sound file from a set of files. In other words, assume that I have the following set of files:

3 background images (let's assume JPG)
3 animations (no sound, no static background)
100 sound files (let's assume MP3)

So if I want to code something like:
for i 1 to 3
for k 1 to 3
take animation i
take background image k
for j 1 to 100
take sound_file j
resulting_swf = assemble (animation[i], background[i], sound_file[j])
save(resulting_swf)

Which will produce 900 Flash animations with different combinations of sound and background, what is the starting point? Are there some libraries (in Python, Perl, PHP, etc.) with good documentation and examples to develop something like that, some program that I can run from the command line?

View 2 Replies

ActionScript 2.0 :: Single Background Animation Running Through All Scenes?

Feb 21, 2007

I currently have 6 scenes in my current movie. It's going to be an online portfolio and each page is a section of the portfolio. However, I have an animated background (400 frames long) that I want to be played throughout the entire site. Of course, when I try and do this the animation resets every time the scene changes. The best I could do so far is to have it running on every page this way but like i said, it resets every time the scene changes. Is it possible to set this background to run smoothly through the portfolio without resetting?

View 2 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 2.0 :: CS3 Scalable Background Animation With Fixed Size Content

May 21, 2009

I'm trying to create a simple splash page for a site that has a scalable background animation, with a fixed size content animation that will stay centred for different sized browser windows or if the window is resized.[code]In general am I on the right track to achieve something similar to the example I posted? Is there a better method to use?

View 1 Replies

ActionScript 3.0 :: CPU Intensive Animation - Get These Huge Animations To Run In The Background Smoothly?

Jan 24, 2009

So I'm building a music site for a client, he's got a record theme so I thought it would be cool to build the site to look like a big turn table with all the content on the record.the record is designed to spin (not as disorienting as you'd think, just the grooves spin)...but the record image, which I did in Photoshop, is huge.

It was just slowing things down to a near crawl in browser. So I split the record image into four pieces and then mirrored them to get the full piece of the pie. It worked, but it's still running slightly slow. I do have a couple of blending options set to act as lights over the record...I tried deleting them to see if it would run faster, it's still jumpy. When the record is not moving(there's a button to turn it off) everything runs smoothly. The entire move is about 300k in file size and the record is being animated via actionscript.How do some of these bigger sites get these HUGE animations to run in the background so smoothly?

View 7 Replies







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