ActionScript 2.0 :: (FMX) Less Processor Intensive MC Scaling / Fading
Aug 14, 2004
I am trying to get 50 rectangular MC's to scale larger and fade to another color on rollover and rollouts. However, with the code I am using my processor can't handle it after about 8-10 MC's have been rollovered. Can anyone offer a better way to do this? Here is my code:
[Code]...
View 5 Replies
Similar Posts:
Aug 14, 2004
I am trying to get 50 rectangular MC's to scale larger and fade to another color on rollover and rollouts. However, with the code I am using my processor can't handle it after about 8-10 MC's have been rollovered.[code]
View 5 Replies
Apr 29, 2009
i have a swf with several processor intensive subroutines within a main init() routine at start up (about a 5 secs startup wait). it needs a preloader not due to asset loads but to the processor intensive routines.i'm trying to create a preloader that will display progress as the routines complete but when i try to write text to text field as each subroutine completes either the textField.text is not updated or the text field display is not updated after each subroutine finishes.this prevents me from tracking the progress of the start up.
is there a way to force an update to the display list in the middle of a processor intensive routine? i believe flash is supposed to update after each frame but i'm not seeing this.also, the text field i'm displaying *before* this processor intensive routine *does* display when running locally but *does not* display before the routine when running online.not sure why.
View 21 Replies
May 18, 2011
Just curious, if you want to loop through an array or object that is less processor intensive.[code]...
View 4 Replies
Mar 30, 2012
I'm trying to play 2 external flash movies. its already running ok but i need the scene to be somewhat to gradually become transparent so that the timebased scene2 will comeout to of the screen.
Here is the script of it:
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("scene2.swf");
myLoader.load(url);
addChild(myLoader);
[Code]....
View 2 Replies
Apr 7, 2009
I can't work out why - but when I try to fade out some text (by calling fadeoutSecondText), the text fades out, and then immediately fades back in. Fading in and out struggle against each other, resulting in rapidly flashing text!
[Code]...
View 7 Replies
Jul 10, 2007
I've made a flash file which contains the following:backgroundMC (consist of vector art made in illustrator and imported)holderMC (loads an external swf which contains my game)I want the background to scale when the Stage get resized so I used the following code as everyone else does:
ActionScript Code:
Stage.scaleMode = "noScale";
Stage.align = "LT";[code]....
Then if I resize my window the backgroundMC doesn't, because the listener isn't active anymore... Is there a way to resolve this? .I want my Stage to resize the backgroundMC, but without causing my game.swf (which is dynamicly loaded) to run slow...
View 1 Replies
Oct 11, 2003
when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in
View 5 Replies
Oct 11, 2003
i've done the Fading Grid tutorial that Voetsjoeba wrote but i seem to be de-railing somewhere when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in place but it still hangs.
View 5 Replies
Feb 5, 2009
Lately I have been trying to animate the water surface giving it more natural look by use of Perlin noise. But it seems it is very CPU intensive operation. And if I use it along with other animations on the stage which involve lot of movements then it become really difficult for the machine to render the entire scene.
View 2 Replies
Aug 17, 2011
I have a method, which connects to a HTTP server and requests via XMLRPC, a list of data structures and then for each data structure gets a list of attributes and the values of those attributes. It's implemented using nested for each loops.
The problem is that it's loading a lot of data all at once, and consuming a massive amount of CPU (over 100%) reading responses from the server and parsing the XML.
If I were writing the program in C, I'd insert a usleep() at the end of the loop, to wait before trying to load more data and reduce CPU usage. What would the equivalent be in Flex?
View 2 Replies
Feb 27, 2011
I'm not certain that there's a set answer to that question, so let me give you a more specific example: In my current code, I can solve a problem one of two easy ways: either by using three algebraic functions (one square root and two squares) or by using three trigonometric functions (one atan2, one cos, and one sin). And then I potentially repeat the code for several hundred iterations.
I'm curious if one set of functions is any more efficient than the other, if they're fairly similar, or if there may be a set of higher-order functions I'm missing that can do these kinds of computations much more easily.(For some more specifics, if you're interested: given a line between any two points, I want to find a new point along that line that's a set distance from one of the other two points.)
View 5 Replies
Oct 20, 2003
I have a script as follows attached to an MC that is pretty processor intensive (well, that is when the MC is duplicated 30 times). I'm looking for some input from people on how to possibly optimize this to cut back on how badly it lags the rest of the movie. My computer is quite powerful but it still shows performance issues with this script:
[AS]
onClipEvent(load) {
//size of purpleCloud's active area
[code].....
View 3 Replies
Mar 11, 2008
I've search through all the threads with "scaling" and "resizing" and can't find the solution.
Basically I have a GUI element on a gallery that I don't want to scale, while the rest of the page is free to resize/scale.
I think I need to add a listener of some sort to the stage, but I'm not sure how to do this.
View 2 Replies
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
Mar 24, 2010
What options are available for recording a graphics intensive SWF as a video format such as MOV, MPEG, or others. I have created an interactive SWF and would like to capture video of it so that I can share it in different formats. I have used some free screen capture software before, but am not sure it is the best choice since maintaining the frame rate is important. Worst case scenario, I could just eliminate user interaction and automate the input...
View 2 Replies
May 3, 2005
i have heard that there are ways to detect how fast the processor is or something like that, and then set certain settings or something within flash, that will basically optimize the performance of the movie so that it works better with the computer it is being viewed on...i really dont know how to describe what im trying to find exactly, i was just wondering if anyone had any thoughts on this, or knew where to find more information about this task.basically, i am starting to design stuff that is really intense, and i need to figure out how i can optimize it better.
View 2 Replies
Jul 3, 2007
Not having a movie clip on the stage until needed (attachMovie when it's time, and then kill it as soon as it's temporarily of no use).visible = false^ Is there a difference in processor demand? When setting visible to false, it seems to me that a few extra variables would need to be stored for the movie clip..._x, _y, _width, _height, _alpha, etc., etc., etc...but I wasn't sure how Flash goes about handling these things or which was better practice?
View 9 Replies
Nov 18, 2008
Has anyone found a script in AS2 for a nice snow effect that it doesn't make the computer go crazy with so much processor calculations?I tried almost every script around and makes my website completely crash most systems.my flash file is about 600k with quite a few menus and 930 x 630...so its a bigger res than most
View 4 Replies
May 3, 2005
I have heard that there are ways to detect how fast the processor is or something like that, and then set certain settings or something within flash, that will basically optimize the performance of the movie so that it works better with the computer it is being viewed on. Basically, I am starting to design stuff that is really intense, how I can optimize it better.
View 3 Replies
Feb 23, 2009
I'm building some navigation that extends all the way from left to right across my SWF. When the window resizes, I'd like the nav buttons to get wider but not have the text on the buttons get wider.
The buttons themselves are rectangles with a vertical gradient and a stroke around the outside. I'm using 9-slice scaling so the stroke doesn't scale, but the middle (gradient) gets wider or narrower.What'd be great is to be able to select an object or layer and say "don't scale, even if the rest of this movie clip scales". Is there a way to do that, or will I have to do it via actionscript?
View 1 Replies
Jun 13, 2011
I am creating an interactive word prosessor. I would like to be able to format my text (font, size, style, aligning, etc) but I am unsure of the syntax envolved. my code is:
[Code]...
View 4 Replies
Oct 24, 2011
Is it possible to use actionscript 2 to create a pdf or word processor file containing only text?
View 1 Replies
Jul 11, 2011
i have a recorded dvr stream, using the dvrcast sample application. of course, i couldn't play it or use it in video post processing tools so i tried the f4v post processor fms tool.unfortunately, both f4v post processor and flvcheck tools throw error and exit immediately
View 11 Replies
Nov 15, 2011
i've got a pretty small (in my opinion) usage of motion tween on the following site: [URL]
the circles are moving around and rotating.. not that big of a deal compared to many much more flash intensive websites that i've seen.
on a few computers i've viewed the website on, this page slows down the rest of the computer, the circles move real choppy, etc so it's very taxing on the computer/processor. making this a less intense flash tween? is it something that i'm overlooking or is what my flash file is doing truly that difficult for a computer/browser to process?
View 7 Replies
Sep 18, 2011
Let's say that I have a line being dynamically generated by an enter frame function (see script below). As long as the movie is playing, the line's width is increasing.
1) At what point (if ever) does its always-incresing width have a negative effect on the processor?
2) Is there any way to test the processor in such a situation to make sure that things aren't undermining performance?[code]...
View 1 Replies
May 20, 2010
i have a diagonal movieclip that I am trying to scale along with the background video. The background video scales perfect, I am attaching the diagonal movieclip (br in the code as bottomright) with addChild
Instead of scaling with the window, it seems to repeat such as the image is displaying. this is the main section of the code that is doing the scaling
var br:mc_bottomright = new mc_bottomright();
addChild(br);
//proportional scale
if ((stage.stageWidth / stage.stageHeight)> (owidth/oheight))
[code]....
View 4 Replies
Apr 10, 2009
I am trying to achieve an effect of scaling a movie clip on click...very similar to [URL] When the user clicks on See, Hear, Play and Shop boxes, the boxes expand. I have created a box movieclip that has a bar on top. This bar is a movie clip inside the box movieclip. When i try to scale the main box movieclip, the internal bar movie clip scales as well. How to stop this?
View 2 Replies
Nov 20, 2011
ActionScript3 states the following:
Note: The Math functions acos, asin, atan, atan2, cos, exp, log, pow, sin, and sqrt may result in slightly different values depending on the algorithms used by the CPU or operating system. Flash runtimes call on the CPU (or operating system if the CPU doesn't support floating point calculations) when performing the calculations for the listed functions, and results have shown slight variations depending upon the CPU or operating system in use.
My web application works with very large and small numbers that I suspect may see a difference depending on which machine is running it (especially with mobile devices whose processors aren't as powerful as desktop machines'). My question is, is this behavior a function of the language?
That is, I assume some languages implement their own algorithms for the above functions, and so may be more consistent (except for differences in round-off errors introduced by the choice of processor/CPU that would exist for all languages).
Anyone know if Javascript has it's own algorithms, or does it outsource them to the CPU/processor like ActionScript?
View 1 Replies
Apr 18, 2004
really sorry to bring this one up again. I've managed to create quite good working gallery. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1
View 14 Replies