ActionScript 2.0 :: BitMapData And Mx Transitions: Flash Performance

Sep 10, 2008

Been going crazy the last two days trying to figure this out. Can't get my head around it, so I thought I would ask here. I've programmed a fairly simple site in AS 2.0, using a couple of old functions like mx.transitions (still learning myself AS 3.0). The site is outlined like this:

- A main MovieClip on _root called mc_scene containing four different movieclips (doing this because I need to be able to run the Flash fullscreen and center the content).
- This main MovieClip contains a simple header movieclip, a footer movieclip, a MovieClip holder (for loading images) and a Meny for controlling the different sections and loading.- Inside the main MovieClip there's four frames each containing a holder and buttons according to each section. - Each section movieclip contains some manual tweens and 1-7 (differs from each clip) buttons. - On the main _root scene I'm using BitMapData to fill a patterened background and centering mc_scene.

[Code]...

View 1 Replies


Similar Posts:


ActionScript 2.0 :: BitmapData Class Transitions?

Nov 4, 2008

I am working with the BitmapData class for the first time for a transition and I am running into a problem loading a new image from the array. I have modified a tutorial from flash-db by Jorge Solis. The function dissImg is firing but I can't work out how to load another image from the array into the container! Please see the code below:

Code:
import flash.display.*
import flash.geom.*

[code].....

View 5 Replies

ActionScript 3.0 :: Circle Mask With BitmapData - Performance

May 17, 2011

I am looking for the most efficient way to create a circle mask on a BitmapData, so that everything inside the circle is visible and everything outside the circle is black. Here is my current code:

[Code]...

As the radius of this circle is going to be changing rapidly, storing the mask would be useless. how to make this more efficient, preferably keeping to methods that can use GPU accleration?

View 0 Replies

Actionscript 3 : :Improving Slow Performance Of Drawing Application Using BitmapData.draw()?

May 27, 2011

I am using a custom Flex skin to create an active blur/frosted glass effect on the background of floating Panels, TitleWindows, and other containers (similar to http:url....). There is a background image in the Application skin, and potentially any number of other components above and below the active blur component. Here's some relevant code within the skin:

public static const BLUR_FILTER :BlurFilter = new BlurFilter(16, 16, BitmapFilterQuality.HIGH);
private var _bitmapFill :BitmapFill = new BitmapFill;
private var _matrix :Matrix = new Matrix;[code]....

Unfortunately, the performance of this when the component is being resized, and especially when moved, is poor. There is noticeable drag delay and overall slowdown, and this is with only one popped-up TitleWindow in the test application. There is especially poor performance when components inside the TitleWindow are changed (button hover states, etc.)I've attempted to optimized a little bit by avoiding reinstantiation of the blur filter, bitmap fill, and matrix, but this has had little or no effect. I removed the blur at one point, just drawing the Application to a bitmap, and the performance is still poor, so it's clear that it's mostly the BitmapData.draw() call.

I've read about using scrollRect and cacheAsBitmap, but I'm not sure where to apply these properties (or other optimizations I'm not aware of) within the Application or its components.

View 2 Replies

ActionScript 2.0 :: Flash 8 BitmapData - Getting Error : The Class Or Interface 'BitmapData.loadBitmap' Could Not Be Loaded?

Jan 31, 2007

I'm using Flash 8, with this code in the first frame:

import flash.display.BitmapData;
rissa._x=Stage.width/2;
rissa._y=Stage.height/2;[code].....

When I publish the file, I'm getting the following error message in the Output panel:

**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 7: The class or interface 'BitmapData.loadBitmap' could not be loaded.
var plaid:BitmapData.loadBitmap("plaid");

Total ActionScript Errors: 1 Reported Errors: 1

View 8 Replies

ActionScript 3.0 :: Error #2015: Invalid BitmapData At Flash.display::BitmapData()

Oct 14, 2009

I am trying to use the reflect class from "http://pixelfumes.blogspot.com/2007/03/reflection-class-v3-with-source .html" but I keep getting this error:
 
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
at Reflect()
at Site_fla::GalleryPage_29/loadThumbs()
at Site_fla::GalleryPage_29/sortXML()

[Code]...

btw, first I used assigned thumbContainer as the mc argument (outside the loadThumbs() function) and it worked but not exactly what I wanted... because I thought it is supposed to update when the movieclip is animated but it actually didn't... when I use a scroller, only the thumbs that are first loaded to the stage get the reflection..

View 10 Replies

Performance :: Performance - Hold MouseDown To Increase Speed/power?

Sep 12, 2011

this is what i'm trying to accomplish; With a click on a movieclip (cannon_mc)a shot is being fired (ball_mc)

The longer mouse is down, the speed of wich the ball is fired with should increase.My question to you is;

What is the most efficient way to accomplish this? With a timer or something like this;

[Code]...

View 2 Replies

Performance :: Optimization - Improving Performance With Large #'s Of Objects

Jan 11, 2011

I'm devloping some library classes for flocking/steering behaviours on large numbers of objects (2000+). I'm finding that at < 500 instances, performance is reasonable. As the numbers increase, framerate bogs down.

I've seen remarkable performance with libraries such as Flint or Box2D with ridiculous #'s of particles / objects, so it should be possible to optimize / refactor my code to be a bit better.

I'm aware of the basic optimizations, such as bitwise operations and optimized for loops. Are there any more fundamental approaches I should be considering? For example, currently each instance is a vector-based MovieClip. Would working with BitmapData be more efficient?

View 1 Replies

Performance :: Flex - Using Nested ViewStacks Cause Performance To Decrease?

Nov 4, 2011

Will I take a big hit in performance using nested ViewStacks? Should I strive to handle all navigation in one ViewStack and push children manually or will the affected performance be negligible?

eg.
<viewstack>
<tabnavigator />
<tabnavigator />
<tabnavigator />
</viewstack>

View 2 Replies

Performance :: Improve Flex Performance For Invisible Views?

Mar 19, 2012

We have a medium size Flex 3.6 application that contains around 20 different page views (managed via a single lazy ViewStack) each having multiple components. Most use custom renderers.All model data is loaded at startup and changes to model instances are communicated via binding and/or collection change events.Once the user has viewed each page at least once, all page views are instantiated and happily listen to update events.Which in effect means that each time a model instance changes, all interested views receive that event and compute derived data or trigger item-renderers.I have tested and confirmed this behaviour in a proof-of-concept application. Even when setting a list to being invisible, it still listens to collection change events and invalidates any renderer affected.What would you do?

View 1 Replies

Actionscript 3 :: Quickly Rotate The Pixels That Make Up BitmapData Without Using BitmapData.draw()?

Dec 29, 2011

I've been using BitmapData.copyPixels() to draw graphics onto a canvas (Bitmap).I need to rotate the resulting graphics without the use of draw() because it's vastly slower.How can I rotate the target graphic? I'm assuming that there might be a formula or library that I can use which will first reorganize the pixels that make up a graphic based on an origin (point) and radians.I'm pretty certain that I'm not capable of creating such logic, so if there are any known libraries that do this, that would be awesome.I'd like to achieve something similar to XNA's SpriteBatch.Draw() method, which accepts rotation as its 5th argument.

View 3 Replies

ActionScript 3.0 :: BitmapData.hitTest - What Angle Or Coordinate Of The BitmapData The Collision Happens?

Sep 1, 2011

how to use the bitmapData collision method. Now I'm trying to figure out if there is a way to see at what angle or coordinate of the bitmapData the collision happens? I need it in order to figure the accurate bounce angle after the collision occurs.

View 2 Replies

Flex :: AddChild A BitmapData Or Draw A BitmapData To Screen?

Jul 15, 2009

I'm currently working on a flash game and I need to know how to addChild a BitmapData or draw a BitmapData to screen. If I can't than how can I give a DisplayObject my BitmapData?

View 2 Replies

ActionScript 3.0 :: BitmapData = New BitmapData(); Eating Up Memory?

Dec 22, 2011

I've made a mobile version of my software, with low-res images and such, and I can now fully buffer all my content (including a 360 frame animation which is buffered to memory). Problem is, that everytime I update the view, more memory is used.When I write image = new BitmapData();, does it store the previously created BitmapData's in memory? Do I have to flush the memory somehow before I draw my second picture in BitmapData?Example:

ActionScript Code:
// In this example I draw using the same bitmapData several times, also
//overwriting the first image. Do I have to somehow delete the data first, to

[code].....

View 1 Replies

Flash Transitions Don't Play?

Aug 14, 2009

I only open it up a couple of times a year to replace a banner ad in a clients web site. But I am having a problem with the transitions that I haven't experienced before. I created a new flash file with text that fades in over 24 frames before going to the next bit, but when I test it, it just jumps from one text to the next without the fade in. It plays fine on the stage, but exports the .swf file without the fade transitions.

View 3 Replies

Flash 9 :: Smooth Zoom And Transitions?

Sep 23, 2008

I have problems with flicker when I zoom in a photo. If you look at [URL] you can see a lot of aliasing in the pictures.

I know that you can do this kind of transitions in Monoslide (watch the banner at [URL] but is it possible to do it in Flash?

View 1 Replies

ActionScript 3.0 :: Flash Transitions Between Pages?

Oct 20, 2010

how to create transitions, like in example below, between page "what we do" and "contacts"? How to write code for in and out animations before next page?

View 6 Replies

ActionScript 3.0 :: Using BitmapData.draw(stage) - Error #2123 Security Sandbox Violation: BitmapData.draw

Jan 9, 2012

I am having an issue with using BitmapData.draw(stage). I am getting the following error:

SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///C|/Documents%20and%20Settings/bla...bla...bla.swf cannot access null. No policy files granted access. Here is a portion of my code:

var bd:BitmapData = new BitmapData(2800, 2100); bd.draw(stage);//this is where the error happens All of the files referenced (.xml/.jpg/.swf) are located in the same local folder as the main .swf. How do I get around this error? The main objective is to print the stage using PrintJob(). I am using Flash Professional CS5.5 and publishing to Flash 10.0/10.1. Let me know if I need to supply any more info.

View 4 Replies

Flash :: CS3 (mac) Sluggish Performance?

Dec 2, 2009

PowerMac Dual 2.3 GHz G5/8 GB RAM I suspect I'm not using best practices, as this is my first project, but my the flash file is getting very sluggish to work on. The swf (AS 2.0) publishes fine and runs OK off the server and in the browser, but the Flash application is slowing down to a crawl making work very unpleasant indeed. Not that it was ever that fast to begin with. The Flash file size is presently 15 megs. It's got a log of symbols in the library and a lot of small jpgs used as navigational buttons, and utilizes many instances of the loader component to dynamically load external files: Is this too much of a demand on the app's resources? I do think that some of this has to do with a poorly implemented user interface (first attempt by Adobe to make Flash "look and feel" like a CS app), but I'm sure there are other issues.

View 1 Replies

Flash Transitions To Images Inside Header?

Sep 3, 2009

I have created a website (too static) using Dreamweaver along with Photoshop. I created a nice Header but would like to know how (tutorial/and or programs if possible) to make the images transisiton. Ex. [URL] website when you click on a link in the menu different images transition in the header. My website has a company logo with 3 images but the header remains static as you click on all the links.

View 1 Replies

Flash :: Professional - Make Image Transitions In CS4?

Mar 10, 2010

does anybody know a easy way to make image transitions in Flash CS4? without using the timeline and without to much programming. Why invet the wheel again if somebody already has the answer? This is what i want to do:Put images/photos in a folder or import to the Flash libary and then let flash view the pictures with a pre-setted transition. The transitions could be: fade in/ fade out, blur in/blur out, pixel in/pixel out, zoom in/zoom out and so on (with a nice look) I want to select the pictures to be used and then select a transition for each image.

For an example if i wanna do a image header lets say 900x400px and then víew my images in the folder with the selected transitíon. I tried to use the slide presentation feature but the transition looked like PowerPoint, boring and not so smooth. Somebody has a simple and free solution? I know this is not to hard for a experienced Flash user, but im a beginner =).

View 5 Replies

Flash :: Smooth Transitions Between External Swfs

Aug 25, 2011

what I want and currently have is a main swf that loads in assets based on buttons pressed. I have 3 external SWFs (for the sake of this example, lets call the initial loaded swf "indexExt.swf", file two" f02.swf" and file three, " f03.swf") and in each of them,there's one layer that goes from frame 1 to frame 10. On frame 1, there's an "intro" label, on frame 5, an "outro" label, and on frame 10, an " end" label.
indexExt.swf is loaded on initial load of the main swf. as for my buttons, I gave my buttons on the main swf stage, instance names that are the same name as the external swfs so that with this line event.target.name + ".swf" I can call em in without having to re-write code for every button etc..

[Code]....

View 1 Replies

ActionScript 2.0 :: Flash 8 - Transitions Between External SWFs

Aug 4, 2008

I would like the buttons to be in the same external SWF so I can animate them as well, the problem is I can't seem to get the actionscript to work, here's what mine looks like:

PHP Code:
container.button01.onPress = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "home";
_root.container.loadMovie("home.swf");
} else if (_root.currMovie != "home") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "home";
container.play();
}}}

And I've also tried using
PHP Code:
this._lockroot = true;
In the external SWFs but that didn't work either.

View 3 Replies

ActionScript 2.0 :: Set The Frame Rate For Flash 8 Transitions?

May 3, 2009

Is it possible to set the frame rate for flash 8 transitions? So if I have transition:

TransitionManager.start(img1_mc, {type:Iris, direction:Transition.IN, duration:5, easing:Bounce.easeOut, startPoint:5, shape:Iris.CIRCLE});

how would I set desired frame rate?

Something like:
Tween.FPS = 30;

View 1 Replies

Flash Cs4, And Other Compilers - Difference In Swf Performance?

Mar 8, 2009

I was wondering, because people do suggest this, but i've never explicitly had it verified:does the flash cs4 compiler actually generate a SWF file, that is more optimized and faster, than the flash cs3 compiler?and what about other compilers? custom as3 compilers, are there faster ones?I don't mean the time it takes to compile the .fla, but the speed of the SWF file.

View 1 Replies

ActionScript 3.0 :: Getting The Performance From Flash Using Curves?

Aug 28, 2009

I've been working on simple animation for a client, which you can see __here__.I have a few issues with performance. I have popped a fps counter at the top left and it seems to only run at around 30 fps on my laptop, I need it up to 60 though.

i was just wondering if anyone had any tips about getting the best performance from flash.I have used Shape instead of Sprite on the curves, which gave a slight improvement. Surprisingly I didnt notice any change in performance when I dont use the blur filter on the curves, which was odd to me.

View 5 Replies

Internet Explorer Flash Performance?

Nov 11, 2009

Steps to reproduce my problem:Create simple dot DisplayObject in flash

dot.graphics.beginFill( color);
dot.graphics.drawCircle( 0, 0, 2 );
dot.graphics.endFill();

Draw dot to bitmap many times a frame

bitmapData.draw( dot, null, null, "normal", null, _smoothing );

Test FrameRate in combination of browsers,flash plugin versions on Win32

Expect:

Framerate to be close in most cases

Observed:

I am seeing a 25% decrease in framerate under IE7 using Flash10b.ocx(10.0.22) and 50% decrease in framerate using Flash10c.ocx(10.0.32). PLugins under FireFox, Safari and in Mac OSX don't exhibit the same slowdown.

I would like to get help/confirmation on a performance problem that I see in Internet Explorer. The Adobe and Flash community is great on the Internet but I have been surprised to see no information on this, just a few reports about movie playback on 10.0.32 vs. 10.0.22.

My guess is that in IE flash plugin is passing draw calls to Win32 and that this is slow.

Instead of drawing each time on the bitmap using draw, cache the draw calls to a bitmap and use CopyPixels. When I do this the performance is the same across browsers, within 10%.

bitmapData.copyPixels(dot.bitmapData,dot.bi tmapData.rect,new Point(dot.x,dot.y),null,null,true);

Loop I am using:

function enterFrame(e:Event) {
bitmap.lock();
for (var i:int=0;i<particles.length;i++) {

[code]....

View 2 Replies

Test The Performance Of A User's PC In/for Flash?

Apr 8, 2010

I'm a developer on nice space MMO using Flash. On new PCs performance is quite good, but some features shouldn't be enabled on older PCs because the framerate drops to shit if we do. Flash wasn't made for this, but hey, pushing boundaries is fun.

An example is fullscreen mode. Of course every user can manually enable it, but "advertising" it to a user with and oldie PC would be a bad idea - but for the Alienware crowd it would be dumb not to.

So I want to find out how "capable" a user's PC is to decide if I should enable or disable some features for him.

View 2 Replies

Flash :: CPU Performance Proeblems With Animation?

Jun 24, 2010

Well I'm having a hell of a time trying to get my CPU down under 45% when running my current application. I've tried all sorts of optimization tricks and tips with little success and I'm at a point now where I need a fundamentally different approach.

Problem and Current Approach In the main view of my application I have a single enterframe handler.I have my frame rate down as low as 10 fps. This handler notifies 16 seperate movie clips to draw wedges of varying angles using Lee Brimelow's wedge class. So, 16 times every enterframe, I have 16 movieclip graphic clear, begin fill, draw wedge, endfill all being co-ordinated by my single enterframe handler.

[Code]...

View 2 Replies

Flash - AS3 CPU Performance With 100 MovieClip Copies

Aug 16, 2010

I have a movieclip wich has a simple movement of a simple shape. This movieclip is copied many times to create a graphical effect. As the number of copies, or the complexity of the movieclip increases, CPU usage goes up. As from 90 copies, when I keep moving the mouse over the swf movie in a circle, playback stops (hangs). When the mouse movement stops, the swf continues again at the right position, as if calculation has continued, but updating the display has not. Now this is a quadcore pc, and we're 2010. I can't believe or accept that 100 mc's is the maximum number of movieclips that can be rendered. The obvious question is what can be done to optimize CPU performance ?

I'm using AS3, flash player 9.
Movieclip is a simple rectangle shape which moves along 1 axis.
var myLinkage:Class = Class(getDefinitionByName(getQualifiedClassName(McToRepeat)));
var newMC:MovieClip = new myLinkage();
containerMC.addChild( newMC );

View 1 Replies







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