Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Get Computer Processor Speed With Actionscript



Is there a way to detect the processor speed of a computer with Actionscript?



FlashKit > Flash Help > Actionscript 3.0
Posted on: 03-01-2008, 01:39 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Streaming Audio Speed No Good - Depends On Processor Or Internet Connection Speed?
we are launching a narrated, streaming flash 6.0 presentation for a client. frame rate is 20fps. here is the link:

http://www.optionaldesigngroup.com/preston

they sent us this email:

"I do not know who else this may be happening with, but when Marjorie Sanders (OC) opened to take the tour, it loaded the software (not sure why her machine didn't have it), and the video was the size of a postcard, Kathleen sounded like a little child (almost munchkin like) and was going 100 mph (so very, very fast - almost unintelligible). Can we experiment with it. Could it be because of the download - I would hope that people don't receive it that way or they will end up laughing at it (it is almost silly)."

does the streaming sync depend on the internet connection or the processor speed? i am assuming processor, and that on a kick-butt new machine it will stream faster then on a slower one.

i think the only way to counter for this is to go in and add some more frames in the narration between phrases. we don't want to lower the framerate because it will affect the flow of the tweens.

any thoughts on this would be greatly appreciated. thanks.

Processor Speed Check?
Howdy,

Is there a way to check processor speeds and then disable a Flash movie if the speed is too slow?

Thanks!

Processor Speed Check?
Is it possible to do? I want to see if the end user has enough processor speed to view certain types of Flash movies.

Thanks.

Emulate Processor Speed
Hi - is there any way to emulate a slower machine ? Flash can emulate a slow download but I want it to emulate a slow processor speed for testing purposes.
Thanks

Check Processor Speed
Hi there!

Is any way to check the processor speed with actionscript?

Thanks in advance.

Flash Vs. Processor Speed - Optimization
While developing Flash sites on this monster 1.4Mhz computer I am often very happy with the smooth of motions and how Flash renders everything so sweet; but later on when I check the same movie on an old Pentium 400ish, everything becomes crappy as the processor cannot cope with the motions.

I then load other heavy-motion websites on that rusty computer and to my shock they perform GREAT; soft motions and everything.

I am obviously doing something wrong, so I am checking with you Flash gurús if you know about any resource on the Internet I can read about Flash optimization techniques, not for downloading but for performance.

I would remain very very thankfull!

Cheers,
-- Ex

Detecting Processor Speed In Flash MX
Hi,

is there any method in Flash MX ActionScript to detect the user's processor speed?

I know there are some hidden methods of Stage and System objects, that are not mentioned in official documentation. Maybe there's also a method alowing to detect the processor speed?

Anybody knows something about it?

greetnigs

Speed Processor Version Advantages
i have developed a videogame in flash 5. i've heard that both flash 6 and flash 7 have export features that make movies run faster (by which i mean closer to their actual frame rate on slow computers, ie, a movie that is 30 frames per second actually running 30 frames per second rather than less due to speed processor lagging).

if i take my flash 5 movie and export it with flash 7, will my movie gain these speed advantages?

if i reprogram my game with actionscript 2, will my movie gain further advantages in speed?

thank you
jason oda
emogame.com

Detecting Visitor's Processor Speed
Hi Everyone,

I'm trying to get an idea of the processor capabilities of my site visitors. I know detecting the actual CPU speed isn't possible with Flash, so I'm trying to run a long For loop and call the getTimer() method immediately afterwards to determine how long the For loop took.

Things are working well, and it seems to be giving me valid information (i.e when tested on faster computers the number is low, around 150, and on slow computers it is high, around 2000.) But I'm running into an interesting problem.

When I test the movie locally on a fast computer it returns a number around 150. When I upload it to the server and test it, it comes back with a higher than expected number the first time, around 300. When I reload the page the number returns to the lower value of around 150. I've tested this on multiple computers and the trend is the same on all of them.

I initially thought this had something to do with the Internet connection and time it took to download the .swf file, which is why once the file is in the browser cache and you reload the page the number goes down. I throttled my connection down to dial-up speeds, but I'm getting the same initial number of around 300. Again, when I reload it returns to the expected value of 150.

You can view the .swf at:
http://www.outshinehosting.com/cpuCheck.html

My code is:


Code:
for(i=0;i<100000;i++){
}

speed_txt.text = getTimer();
Any ideas as to why this is happening, or perhaps a better method of getting an idea of the visitor's processor speed?

Thanks in advance!

Processor Speed Issue With Movieclips
Hey guys,

I currently have a navigation system set up, that uses about 40 logos (each is a button) layed out next to eachother horizontally. I scroll them left or right, depending on where your mouse is.

I was having massive issues with the processor usage on older machines with this, so I wrote a script that makes the buttons invisible when they are not on the 760px wide viewable area. I made them invisible by putting each button in a different MovieClip wtih 2 frames in it, one has the button, one does not. The script merely changes the MC to the frame without the button when that button is off the screen.

The script works, and they all dissapear when not on the screen, but my processor problem is worse now! It slows down the computers just as bad as before.

My question is, pretty much, when I use this form of disabling the buttons, does it continue to eat up processor speed? And what else can I try to make these buttons not use much if any processor power when they are off screen?

Thanks guys, Ive been busting on this for a good 2 weeks now, and am really at a dead end. Any help would be appreciated.

Scott Hedstrom
www.destroyyourcomputer.com

Speed Processor Version Question
i have developed a videogame in flash 5. i've heard that both flash 6 and flash 7 have export features that make movies run faster (by which i mean closer to their actual frame rate on slow computers, ie, a movie that is 30 frames per second actually running 30 frames per second rather than less due to speed processor lagging).

if i take my flash 5 movie and export it with flash 7, will my movie gain these speed advantages?

if i reprogram my game with actionscript 2, will my movie gain further advantages in speed?

thank you
jason oda
emogame.com

Processor Speed Detection And Optimization
okay, so 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...and make it more efficient to cut on the overhead...

Speed Processor Version Question
i have developed a videogame in flash 5. i've heard that both flash 6 and flash 7 have export features that make movies run faster (by which i mean closer to their actual frame rate on slow computers, ie, a movie that is 30 frames per second actually running 30 frames per second rather than less due to speed processor lagging).

if i take my flash 5 movie and export it with flash 7, will my movie gain these speed advantages?

if i reprogram my game with actionscript 2, will my movie gain further advantages in speed?

thank you
jason oda
emogame.com

Processor Speed Detection And Optimization
okay, so 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...and make it more efficient to cut on the overhead...

Broweser Redirect Based On Processor Speed
So, I have a decent but procesor intensive transition. Slower cpus can't handle it. I want to set the site up so that higher cpus are directed to a high cpu version and lower speed processors are directed to the lower cpu version.

I realise this is likely to be a javascript oriented rather than mx oriented topic. However cpu specific presentation I think is an issue that many developers could take benefit from. So...if you have any insight.

As well I believe there is some kind of utility in mx for getting info on the client system.

scott

Is The Speed Of Webpage On My Computer
I am designing my first web site on my computer. I do not want to mislead myself into thinking my website will work as quickly when hosted on the internet as it did when it was being constructed on my computer.
When I choose file publish in Flash and then launch that finished web page sitting on my hard drive it works as I invision it will work when it is finally on the internet.
Will I be in for a surprise.
Is there a difference in speed?
Do you test your web pages on the internet as your designing and building it?

Thanks.

Testing Client Computer Speed
Has anyone a good method for checking the clients computer speed to dynamically change content asside from timing a for loop or something.

How Can I A Make A Sound Sync To Animation Regardless Of Quality Or Computer Speed ?
Hi,

I´m having trouble making the sound sync to animation in different quality levels in Flash. If I use quality = "LOW" the animation is ahead the sound clip if I use "MEDIUM" quality the sound syncs if I´m using my 1 Ghz computer however its not syncing if I use my 450 Ghz computer.

How can I a make a sound sync to animation regardless of quality or computer speed ?

Thank you.

Processor More Efficient If Images Are Manipulated With Actionscript?
i'm working on a flash piece for a client which (inevitably) involves a lot of large bitmap images. knowing this may be problematic, i'm looking for the best way to optmize the piece, as well as ways to manipulate the images with the least burden on the processor. i'm wondering if things like fades, or movement of the images may be less processor-intensive if i use actionscript rather than tweening them, or if it just doesnt' matter. any other wisdom that may give me freedom to animate the images in an efficient manner, optimize, etc. would also be very helpful.
thank you!

ActionScript Linking To My Computer
Hey guys,

So I'm building a drop down menu, and I'm done, almost, all I need is to link everything.
The tutorial uses action script:

on(release){
getURL("

Can Actionscript Call And Run Exe File Located On The User's Computer?
Dear gurus and members,

I am a newbie in Actionscript and Flash. I have several questions to ask regarding actionscript and other scripting.

I would like to know whether is it possible to call an exe file located at the user's computer from the browser (online). I have a button on the browser that is supposed to call and run an exe file, saved on user's computer. Can I use getURL to call the exe file, something like the following?

Code:
_global.rec = function() {
stopAllSounds();
getURL("file:///C:/Program%20Files/Sound%20Recording/one.exe");
};
Another question is. Can I use actionscript to call a vbscript file? If yes, how would the code look like? Any suggestions or ideas are highly appreciated. Hope to hear some reply soon.

Thanks in advance,
Janice

Why Trouble With Layout From Computer To Computer?
Hi All,

Thank you very much for any advice, suggetions, or instructions you might have for fixing this problem.

We are creating flash files on one pc using Flash 8. We are saving them as Flash MX version - because on another pc, I have Flash MX installed.

When I open the files on the second PC using Flash MX, the layout of the files is wacked: all of the button fields have shifted about one-half-centimeter from where they were when created on the previous machine.

I downloaded a free trial of Flash 8 Pro to see if that would fix these layout issues, but no. Same thing. (wtf)

NOTE: I've recently found out that the version of Windows running on this machine (XP Pro) isn't "authentic," rather, part of a Volume Licensing Package that has sense been "blocked." Could that be what is causing these troubles with Flash? Still, would bootlegged windows (if that's what it is) cause these layout problems in flash?

Is there anything i can do to preserve the layout from machine to machine?
All help is much appreciated.
Thank you!
Ryan

_x Coordinate Changed From Computer To Computer
This may be weird, but i am in the middle of a project ,and I took it home from my offfice and now all of the _x coords for a movie clip that I am controlling with a script are compltetly different?? doe sthis have to do with screen resolution , i s that possible?? and also is there any one out there who also has un ending problemsd with mac and actionscripting.


derek

Speed Up Actionscript
Hi,

are there ways to optimise actionscript to make flash less cpu intensive? i have this code on 8 movieclips could this be the reason for slow playback???



onClipEvent (enterFrame) {
this._xscale += (_root.shell_house.xscale-this._xscale)/3;
this._yscale += (_root.shell_house.yscale-this._yscale)/3;
this._x+=(_root.shell_house.xpos-this._x)/3;
this._y+=(_root.shell_house.ypos-this._y)/3;

delete this.onEnterFrame;


}


cheers,
Gareth

Actionscript For Getting Connection Speed
Hello:
What would the command be if I wanted to get the connection speed on the user.

If the page was posted and the user would be able to see his own connection speed while he waits for the preloader to finish.

Thanks in advance for anyone who helps.

Change X Speed With Actionscript?
Hi,
im making a platform shooter game, and ran into a little problem. When my hero turns around and shoots the bullets are comming out of his back.
im using the code:

laserMoveSpeed = 20;
this._x += laserMoveSpeed;

What script do I use for to make that:

laserMoveSpeed = -20;
this._x += laserMoveSpeed;

tnx.

SPEED - Actionscript Vs Tween
Ok, I know actionscript makes a file size smaller than doing the same thing with motion tween between frames, but what about speed? I'm designing a website that is starting to get slow because I have a lot of different effects and such. I was wondering if converting some of my effects from actionscript to motion tweens would make a larger file, but cut down on the processor speed required to view the movie? Anyone good at this?

Actionscript 8 Vs 9 Speed Question
Hello forum people... nice to meet you? this is my first post and was hoping someone could help me with my question.

i've recently been thinking about converting a project i'm working on from flash 8 to flash 9 due to the supposed increase in performance. i wanted to illustrate an example of that improvement to myself by creating an example of some code in both flash 8 and 9 and comparing the performance of the two. sooooo... i made 50 different streams of particles in each using pretty similar code... and flash 9 seems to be the same or slower.

could anyone tell me if i'm doing something inefficiently, or if what i'm actually doing is something that wouldn't see a performance increase? i figured flash 9 would allow me to at least double the number of streams. any help is greatly appreciated.



here are my swfs (their default fps is 30... in my browser they both run at about half that)...

flash 8: http://www.totaljerkface.com/bloodtest8.swf

flash 9: http://www.totaljerkface.com/bloodtest9.swf


and here is the code i'm using...
code for the flash 8 version is all in the timeline...


ActionScript Code:
for (var i = 0; i<50; i++) {    var bf:MovieClip = _root.createEmptyMovieClip("blah", _root.getNextHighestDepth());    bf._x = Math.random()*350+100;    bf._y = Math.random()*300+50;    bf.onEnterFrame = bleed;    var bloodInt:Number = bf.setInterval(bleed, 1);}function bleed() {    var randY:Number = Math.random()*-6-6;    var randX:Number = Math.random()*3-1.5;    var b:MovieClip = _root.attachMovie("Blood1", "blood", _root.getNextHighestDepth());    b._x = this._x;    b._y = this._y;    b._rotation = Math.random()*360;    b.gotoAndStop(Math.ceil(Math.random()*4));    b.cacheAsBitmap = true;    b.speedY = randY;    b.speedX = randX;    b.onEnterFrame = function() {        this._y += this.speedY;        this._x += this.speedX;        this.speedY += 1;        if (this._y>400) {            this.removeMovieClip();        }    };}





code for flash 9 is in the timeline and in 2 class files:


ActionScript Code:
//timelinefor(var i:int = 0; i < 50; i++){    var bf:BloodFlow = new BloodFlow();    root.addChild(bf);    bf.x = Math.random()*350 + 100;    bf.y = Math.random()*300 + 50;}<font face="Courier New"><div align="left">//class filespackage {   import flash.display.*;   import flash.events.Event;   import flash.utils.Timer;   import flash.events.TimerEvent;   public class BloodFlow extends MovieClip {      public function BloodFlow() {         var myTimer:Timer = new Timer(0, 0);         myTimer.addEventListener("timer", createBloodMC);         myTimer.start();      }      private function createBloodMC(event:TimerEvent):void {          var randY:Number = Math.random()*-6 - 6;          var randX:Number = Math.random()*3 - 1.5;          var b:Blood1 = new Blood1(randY, randX);          root.addChild(b);          b.x = this.x;          b.y = this.y;          b.rotation = Math.random()*360;          b.gotoAndStop(Math.ceil(Math.random()*4));      }   }}package {   import flash.display.*;   import flash.events.Event;   public class Blood1 extends MovieClip {      public var speedY:Number;      public var speedX:Number;      public function Blood1(sY:Number, sX:Number) {        this.cacheAsBitmap = true;        this.speedY = sY;        this.speedX = sX;            this.addEventListener(Event.ENTER_FRAME, flow);      }      private function flow(event:Event):void {          this.y += speedY;          this.x += speedX;          speedY += 1;          if(this.y > 400){              this.removeEventListener(Event.ENTER_FRAME, flow);              root.removeChild(this);          }      }   }}</div></font>

Actionscript 3.0 Performance Speed
So in the documents it says that actionscript 3.0 performs up to 10 times faster than Actionscript 2.0, and I was wondering, does this mean compiled applications, the ones that people use in sites will run faster ?

So lets say a game programmed in Actionscript 3.0 will perform at a better frame rate than a game programmed with Actionscript 2.0 ? (considering they are the same game).

is this what the speed is about or does it refer to compiling speed?

Speed Of ActionScript Processing
Alright, I'm embarking upon my largest Flash project ever and plan on doing it with OOP/External .as

I only know what I know about AS from perusing forums and chapters from some good AS books. I have a couple of questions that I'd love people (especially AS veterans) to weigh in on..

First off...I've seen to try and stay away from eval() and use scope[mc], etc instead. Is that a speed improvement or recommended for other reasons?

Second question for now...and please get over the fact that I'm incredibly anal.

I want to get in a good habit, for readability and for speed. Here since I'm accessing menuMC[menuitem+i] multiple times, I figured it'd be better to save it to a local variable first. Is there any need to do this? Does the compiler optimize stuff like this automatically/figure it out for you?


ActionScript Code:
tF = menuMC["menuitem"+i];
tF.autoSize = true;
tF.html = true;
tF.styleSheet = JV3Settings.MENU_TEXT_STYLE;
tF.htmlText = "<span class='menu'>" + rootItems[i] + "</span>";


--or--

Is it better to do it this way? (regarding tF._width, and not worry about saving it to a local variable first)


ActionScript Code:
rootItemsWidth += Math.round(tF._width);
tFWidths[i] = Math.round(tF._width);


I know this has to do with pass by reference or by copy...and while I know this for C++ I don't for AS (well sorta know, forgot a lot of what I learned at college).

Any input? And if you want to say it's not worth splitting hairs over...say it...I'm hoping a few know which is better or if it's the same.

Any other input on making sure a coder's AS is fairly optimal?

Thanks for the input.

Actionscript To Speed Up Frame Animation?
i have a 3d animation that i made in swift and i'd like to use actionscript to make it play slower or faster etc.. does anybody know if this is possible? thanks for the help!

dross

Controlling The Speed Of LOOPs In The ActionScript
Hello

How are you people ?

I have a problem ..

I want to control a MC and move it from one place to another with action script , the problem is that when i use the Loops , the MC move very quickly that the user does not notice it is moving !!! I have tried using Motion Tween and controling it .. it worked fine , but when i want to reverse the movement , i get back to the main problem !

is the there away of controlling the speed of the loops ? or is there away for reversing the movement in the timeline ?

please help

Actionscript Fireworks. [speed Issue]
I've been working on a simple fireworks system using actionscript. It works fine for the first display, but then the works get faster and faster regardless of the actual assigned speed. Anyone have any advice?

If anyone wants to use this code, I'm allowing usage without credit under GPL.


Code:
var allow_work = true;
var depth = 1;
var colour = "1";
var onstage = 0;
var mc_fire = this.createEmptyMovieClip("mc_fire",depth);
function createworks()
{
onstage++;

var origin_x = 50+random(350);
var origin_y = 50+random(150);
colour = random(5)+1;

for(i=0;i < 14; i++)
{
depth++;
mc_fire.attachMovie("firework", "dot"+depth, depth);
mc_fire["dot"+depth]._x = origin_x;
mc_fire["dot"+depth]._y = origin_y;
mc_fire["dot"+depth].angle = random(180);
mc_fire["dot"+depth]._xscale = mc_fire["dot"+depth]._yscale = random(100)+25;
mc_fire["dot"+depth].alpha = 100;
}
var fireint = setInterval( function () {
for(i=0; i<depth+1; i++)
{
if (mc_fire["dot"+i]._name != undefined) {
with (mc_fire["dot"+i]) {
_x += Math.cos(mc_fire["dot"+i].angle);
_y += Math.sin(mc_fire["dot"+i].angle);
alpha -= 1.5;
_alpha = alpha;
if(alpha < 1)
{
onstage -= 0.2;
this.removeMovieClip();
}
}
}
}
},25);
}
setInterval( function () {
if(allow_work)
{
if(onstage < 5)
{
createworks();
}
}
}, 500);

Optimize Actionscript For Speed Methods?
I've just built a game which has up to 27 flies buzzing around the screen randomly, which understandably slows a bit on slower machines. I was wondering if there are any "Best Practices" or "Fast Execution Techniques" that any flash game developers on these forums use?

I'd like to go back through and optimize my code as much as possible to make it run as fast as possible on slow machines. I understand limiting the number of calculations needed on each frame and am going to be implementing that, but was wondering if there any other ways of optimizing my code that aren't as obvious, for instance I heard using myMC.gotoAndStop() was 25 times slower than tellTarget("myMC") gotoAndStop() in flash 5.

I'm working in Flash MX2004 and publishing in player version 6.

How do you optimize your game code for fast efficient execution?

Controlling Speed Of Movement With Actionscript
I have an interaction where the user pulls the handle on a slider (to the right) to move the bottom part of a line to the left of the screen, 120 pixels from the original position (the top of the line stays put, so the line gets longer and has an increasingly steep angle).

The code below is working aok, but here is the problem: The slider bar is 200 pixels long. For the first 50 pixels, the bottom line point should move three quarters of the total length; for the last 150 pixels, it moves the last quarter.

When I use if/else statements, the line jumps erratically depending on how fast the slider handle is pulled. Is there any way to calculate the speed to go fast for the first 50 pixels of the slider, and then slow for the last 150?

Any help is much appreciated.
Thanks

Here is the code:

//Global variables
_global.startX = 184;
_global.startY = 270;
_global.endX = 285;
_global.endY = 165;
_global.curveX = 175;
_global.curveY = 167;
_global.endPoint = 64;

_global.distanceX = startX - endPoint; // 184 - 64 = 120
_global.barLength = _root.slider.bar._width - 2;
_global.moveUnit = distanceX/barLength;


//original curve start coordinates
_global.orgStartX = 184;
_global.orgStartY = 240;

//this is the line that moves when the slider handle is pulled
_root.createEmptyMovieClip("drawing",5);
drawing.lineStyle(2,0xFF0000,90);
drawing.moveTo(startX,startY);
drawing.curveTo(curveX,curveY,endX,endY);


//slider drag
_root.slider.toggle.onPress = function() {
this.startDrag(true,0,0,200,0);
};

_root.slider.toggle.onRelease = function() {
this.stopDrag();
};


this.createEmptyMovieClip("moveCurve",2);

_root.moveCurve.onEnterFrame = function() {

if (_root.slider.toggle1._x == 0) {
startX = orgStartX;
}

else {
startX = orgStartX - (_root.slider.toggle._x * moveUnit);
}

drawing.clear();
drawing.lineStyle(2,0xFF0000,90);
drawing.moveTo(startX,startY);
drawing.curveTo(curveX,curveY,endX,endY);

}

Sound Loop Speed Control W/actionscript?
Hey All,

Does anyone know if there is a way to speed up and slow down a sound loop with actionscript?

What I would like to do is speed up the frequency at which a sound loops as my cursor approaches a target...slow it down as it moves away.

It would also be great to be able to affect volume in this way as well. Any thoughts?

Regards,
Colin

Animating An Objects With Actionscript - Constant Speed?
ok so my code is this, but it doesn't workkkkkkkkkk
the newposition is defined by buttons
by the way I took the code from RAZORMEDIA and changed it ..
onClipEvent (load) {
_root.newposition = "nada";
}
onClipEvent (enterFrame) {
current = getProperty(_root.drop, _x);
if (_root.newposition<current) {
speed = 40;
}
if (_root.newposition>current) {
speed = -40;
}
}
onClipEvent (enterFrame) {
_x -= Number(speed);
}
onClipEvent (enterFrame) {
if (current = newposition) {
speed = 0;
}
}

[Edited by SSurfer on 07-25-2001 at 07:02 AM]

Actionscript MC Runs SLOW; Speed Up Suggestions?
I've put together a jet engine with spinning fan blades; ok, cool. Problem is that it runs SLOWWWWW.

Here is the jist of what I'm doing:

1. I have a MovieClip.prototype that draws the fan blades (using lineTo and curveTo) based on the number of blades the fan has.

2. I create an empty movieClip that will hold 4 sub-movieClips.

3. I add the 4 clips to the empty movieClip using a loop. Each time thru the loop, I call the MoviClip.prototype to add the fan blade drawing to the current instance of the sub-movieClip; that is, I create a 'snap-shot' of the fan blade at its current rotation angle add it to the sub-movieClip. I then bump up the rotation angle and run thru the loop again until I have 4 'snap-shots' of the fan blades drawn at 4 different angles.

4. I then add an onEnterFrame event function to the empty movieClip that:
a. keeps track of the last 'snap-shot' sub-movieClip shown and
b. hides the last 'snap-shot' sub-movieClip (snapShot0._visible=false) and shows the next 'snap-shot' sub-movieClip (snapShot1._visible=true)

This gives the illusion that the blades are turning.

Anyway, HOW CAN I SPEED THIS UP!

To see the swf: http://www5.brinkster.com/ralanis Look for TF-39 Engine in the menu on the right; it is the LAST item in the list.

Don't know if this will work: http://www5.brinkster.com/ralanis/fan2c.html


Thanks!

ra

Controllng The Speed Of A Movie Clip Through ActionScript
Hiya guys...

thanks for all ure help on flashkit...

wot i have is a car with mooving wheels... what i wanted to do is create a movie clip for the wheels which rotate 360 degrees... and possible a function which will play that movie clip at different speeds depending if the car is slowing down or speeding up...

is this possible?

thanks, rob

Controlling Speed Of Movie Clip With Actionscript - Can This Be Done
Hi All,

i am sure this can be done - but does anyone know how??? is there a tutorial anywhere?

Looking to slow down the speed of a movieclip which contains audio - but can this be done using actionscript - if so how?

Any help would be great

Thanks

Using ActionScript To Speed Up Movie Clip Causes Wierd Problems
I am using the script below to speed up a movieclip

onClipEvent (load) {
NF=function(); {
nextFrame();
}
setInterval (NF, 1000/fps);
}

Well a button inside this movie clip links to another "parent" movieclip. When the button is clicked on it speeds through the parent movieclip ignoring the stops at a rather rapid pace untill it runs into the frame label where this movie clip being speeded up resides in the parent movie clip, then it stops and returns to normal.

Does anyone know how to prevent this happening? I know it works cause there are 3 other buttons that work like a charm without being speeded up using the above script.

Or does anyone know a different way to speed up the movieclip aside from using the above script?

Any help would be greatly appreciated, thanks in advance!

Using ActionScript To Speed Up Movie Clip Causes Wierd Problems
I am using the script below to speed up a movieclip

onClipEvent (load) {
NF=function(); {
nextFrame();
}
setInterval (NF, 1000/fps);
}

Well a button inside this movie clip links to another "parent" movieclip. When the button is clicked on it speeds through the parent movieclip ignoring the stops at a rather rapid pace untill it runs into the frame label where this movie clip being speeded up resides in the parent movie clip, then it stops and returns to normal.

Does anyone know how to prevent this happening? I know it works cause there are 3 other buttons that work like a charm without being speeded up using the above script.

Or does anyone know a different way to speed up the movieclip aside from using the above script?

Any help would be greatly appreciated, thanks in advance!

Problems With Speed: Loading An Animation Dynamically...reduced Speed Why? W/exampl
Im loading an animating logo dynamically into a site. The animation works in normal speed if i access it directly:
http://www.ingerreime.no/David/thegl...ches/home.html
But, when i load it dynamically into the main site, the speed reduces drastically! Click "home":
http://www.ingerreime.no/David/thegl...achesmain.html

Everything is loaded dynamically, except the blue backgrounds.

Any thoughts?

Thanx!

Dave

The Speed Of Moving Movie Clip Changes With The Speed Of Mouse?
Hello:
anybody knows how to make the speed of the moving movie clip changes with the speed of the mouse?
here is an example http://www.bgagroup.com/dev/alpha/ui_001.html
thank you very much!!!
I am using Flash MX

fibi

Processor In Use
is there a workaround for the following problem:

i am making a search with flashmx and xml with indexOf. this uses a lot of processor power. so while searching it looks as if the computer has crashed. but in reality he is still working.

i tried to make a loading but it stops when the search starts.

anyone ?

Light Speed Or Warp Speed Effect.
Can someone tell me if they no how to create or have and .fla file of the stars in the star wars when ships go to warp. They kind of strech. I have been looking for this but the search tool here is not the best.

CPU / Processor Thang...
A while back I'm *certain* I saw a tute (or something) about how to pull up, access or use the CPU speed in Flash. If I remember correctly, it might have included other system variables too...I think Yugo used this on the MonoCrafts site version 2 - the bit at the beginning that says 'your computer ain't so fast...etc'.

Can anyone give me any clues on this - direct me to a tute or tell me how to access it (if its straightforward). I've spent *ages* on a flash site, but its crap slow on slower machines - I want to toggle the quality if the processor speed is less than 500mhz or something. Also, does this method work on Macs?

Any help anyone can give would be marvellous.

Thanks a lot.

E

Processor Overload?
I've got a very, very simple animation (three or four keyframes, each with a couple of scribbly lines). This animation is looping in a movie clip while everything else on my stage is standing still.
I've noticed that the processor usage for this SWF is at nearly 30% on a 2.2gig P4 and it's maxing out the processor on older, slower machines.
I don't get it.
Could this tiny looping animation be chewing up that much processor power? If so, how can I hope to make anything more complex?
I've narrowed down the problem to this little movie clip loop but it doesn't seem like a lot to process. What's up?

Processor Overload
hey.

im having serious processing problems with this piece of code at some stage i will have 8 movieclips with this "for" loop in each of them.The code loads an xml file populating my little menu system.


MenuXml = new XML();
MenuXml.ignoreWhite = true;
MenuXml.onLoad = function() {
MenuItem = this.firstChild.childNodes;
_global.increment = 0
for (var i = 0; i<MenuItem.length; i++) {
_global.item = attachMovie("itemClip","itemClip"+i, i);
if (increment <=8) {
_global.item._x = 2;
_global.item._y = 16*i;
}else{
_global.item._x = 250;
_global.item._y = 16*i-144;
}
_global.item.inner._xscale = item.itemSize;
_global.item.itemLabel.text = MenuItem[i].attributes.name;
_global.item.myTag.text = MenuItem[i].attributes.tag;
_global.item.itemSize.text = MenuItem[i].attributes.itemSize;
++ _global.increment;
item.onRelease = function() {
trace(this)
}
}
}
MenuXml.load("xml/subOne.xml");


how do i run this code and when its no longer required KILL IT ???

Copyright © 2005-08 www.BigResource.com, All rights reserved