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




Stop Rotation



I've created this using swift 3d with the spin to the left animation and import it into flash. I've made it as a movieclip and now what i wanted to happen is to make each monitor a button, but only when in front view, and will be disabled when it is not in front view,
And i would like also the spinning to stop when the mouse rollover the monitor, and to spin again when rolled out.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-21-2004, 03:14 PM


View Complete Forum Thread with Replies

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

Stop 3D Rotation
I need help with this file. here is a link to what the file looks like:

http://www.itwithintegrity.com/

I incorporated these orbs into a .fla file that I purchased online. I have changed a little bit of the action script, but it is basically the same. I need to be able stop the animation once the orb is clicked on. How do I go about doing this? Here is the code:

var numItems = 3; // Number of items
var focalLength = 600;// environmental constant
var centerX = Stage.width/3;// Stage Center X
var centerY = Stage.height/3.2;// Stage Center Y
var shiftAmount=0;// Amount to shift for rotation
var selectedMC = 0;// currently in front of user
var radius = 200;// circle radius
var maxSpeed = 9000;// circle animation speed

// Create 3D camera
this.initCamera = function(){

// create camera object
this.oCamera = new Object();

// Set camera Properties
this.oCamera.z = focalLength; // target camera z position
this.oCamera.dz = 0;// initial camera z position
this.oCamera.s = 10;// camera zoom speed

this.onEnterFrame = function(){
// Move Camera
with(this.oCamera){
dz += (z-dz)/s;
}

// shift angle of all clips
shiftAmount = ( this["instance_mc_"+selectedMC].angle - 90)/maxSpeed;
}

// loop and create the numer of instances defined
for(var i = 0; i<numItems;i++){

// choose between 3 labrary items
var itmeClip = (i);

// attach movie
this.attachMovie(itmeClip, "instance_mc_"+i,i);

// Assign variable to the MovieClip
clip = this["instance_mc_"+i];

// define initial properties
clip.x = 0; // initial x position
clip.y = 0; // initial y position
clip.angle = i*(360/numItems); // initial item angle

// Set click
clip.onRelease = gotoAndPlay("info");

/// render
clip.onEnterFrame = function(){

// shift angle
this.angle += (_xmouse - centerX)/80;

// prevents to go over 360 back to 0
this.angle%=360;
// prevent to go under 0 back to 360
this.angle = (this.angle<0) ? 360 : this.angle;

// Transform angle degrees to radian value
var radian = (this.angle*Math.PI/180);

// Calculate x position value
this.x = Math.cos(radian) * radius;
// Calculate z position value
this.z = centerY - Math.sin(radian)*radius;
// tilt y position to reflect 3D
this.y = _root.yscroll * Math.sin(radian) - 50;

// Calculating actual scale values according to scale = dz/(z+dz) formula
var scale = (this._parent.oCamera.dz - _root.zscroll*5)/(focalLength+this.z);

// Position
this._x = (this.x*scale) + centerX;
this._y = (this.y*scale) + centerY;

// set perspective adjustement
var adj = (this.z*12)/radius;

// set size
this._xscale = this._yscale = (scale*100)-adj;

// Swap depths
this.swapDepths(scale*100);



// blur (max quality is 15)
this.tempFilter[0].quality = 15 - (scale*100/5.2);
this.filters = this.tempFilter;

}
}
}

// Initiateinstances in Camera
initCamera();

stop();

Any help will be much appreciated. Thank you.

Stop Rotation
I've created this using swift 3d with the spin to the left animation and import it into flash. I've made it as a movieclip and now what i wanted to happen is to make each monitor a button, but only when in front view, and will be disabled when it is not in front view,
And i would like also the spinning to stop when the mouse rollover the monitor, and to spin again when rolled out.

Stop Rotation
I am having a problem that I swear I was not experiencing when working with this same file the other day. But that is another issue for me to puzzle over.

Anyway in this bit of code, I want this mc (called fall) to move down the screen to a certain y position, which it does and then rotate 90 and move to a certain x position. Problem is I cannot get the rotation += 90 to stop. I know it is just a simple matter but I am more frustrated because it was stopping the other day (I don't have that file I had added more code and moved on and now I am backtracking) Anyway here is the code: I think it is probably that the delete onEnterFrame is not applying to the rotation, but I'm not sure.



Code:
function move() {
clearInterval(moveInterval);
_root.fall.onEnterFrame = function() {
_root.fall._y += 10;
if (_root.fall._y>= 755) {
_root.fall._y = 755;
if(_root.fall._y = 755){
_root.fall._rotation += 90;
_root.fall._x = 530;
}
delete this.onEnterFrame;
}
};
}
moveinterval = setInterval(move, 1000);

Stop Rotation Of All 3 When 1 Is Rolled-over
help...

i am creating 3 squares rotating. when 1 is rolled-over, all should stop, but they dont. only the one rolled-over stops, while others continue. any suggestions....

jas

Rotation Stop Halfway...
hey guyz and all ppl..
i have a problem with rotation..
i wanted to rotate a movie clip on the stage..
but it rotate halfway then stop..
can i get help base on this script.?..
is there any other better ways to counter this problems

this is the scripts.-


onClipEvent (enterFrame) {
if (_root.rotatinghand._rotation == 0) {
_root.rotatinghand._rotation = 20;
} else if (_root.rotatinghand._rotation == 20) {
_root.rotatinghand._rotation = 40;
} else if (_root.rotatinghand._rotation == 40) {
_root.rotatinghand._rotation = 60;
} else if (_root.rotatinghand._rotation == 60) {
_root.rotatinghand._rotation = 80;
} else if (_root.rotatinghand._rotation == 80) {
_root.rotatinghand._rotation = 100;
} else if (_root.rotatinghand._rotation == 100) {
_root.rotatinghand._rotation = 120;
} else if (_root.rotatinghand._rotation == 120) {
_root.rotatinghand._rotation = 140;
} else if (_root.rotatinghand._rotation == 140) {
_root.rotatinghand._rotation = 160;
} else if (_root.rotatinghand._rotation == 160) {
_root.rotatinghand._rotation = 180;
} else if (_root.rotatinghand._rotation == 180) {
_root.rotatinghand._rotation = 200;
} else if (_root.rotatinghand._rotation == 200) {
_root.rotatinghand._rotation = 220;
} else if (_root.rotatinghand._rotation == 220) {
_root.rotatinghand._rotation = 240;
} else if (_root.rotatinghand._rotation == 240) {
_root.rotatinghand._rotation = 260;
} else if (_root.rotatinghand._rotation == 260) {
_root.rotatinghand._rotation = 280;
} else if (_root.rotatinghand._rotation == 280) {
_root.rotatinghand._rotation = 300;
} else if (_root.rotatinghand._rotation == 300) {
_root.rotatinghand._rotation = 320;
} else if (_root.rotatinghand._rotation == 320) {
_root.rotatinghand._rotation = 340;
} else if (_root.rotatinghand._rotation == 340) {
_root.rotatinghand._rotation = 359;
}
}



it stop its rotation at 180 degree..

thankzz

Mouse Over Rotation Stop
hey,

how can i make my pie stop rotating on mouse over?


this is the code in on the movie:


Code:
onClipEvent (enterFrame) {
_root.symbol._rotation += 1;

}
thx

Rotation With Ease Out To Stop
I have two MC's of an outer cirlce and an inner circle.
Basicly my preloader. I got the circles to rotate CW and CCW using
code:
onClipEvent (enterFrame) {
this._rotation+=5;
}


//and

onClipEvent (enterFrame) {
this._rotation-=5;
}



When its loaded it plays the next frame.
On that frame I have the same circle MC's. I need help in getting the mc's to spin to a stop, then play the next MC of text fading in that says loaded.

Im not very good with easing so be gentle


Josh

Rotation Start-stop
I have a question about this dial knob...
Now I am able to turn it from a positive to a negative value ie -45 to 45, but I want it to be -135 to 45. I can change maxRotAngle but that applies to both negative and positive value ie -10 to 10, -50 to 50 etc..
Can this be done?
Thanks!

Stop Anticlockwise Rotation
I am currently work on a dragable clock that displays the time to a 12 and 24 hour digital clock.

my question is how can i stop the minute hand from being draged anticlockwise

I have attached f8 and fmx2004 file

How Do I Stop Rotation Made Easy....?
Ok-
I'm probably making this more complicated than it should be-Messing around with the tute "Rotation Made Easy", and what I want to do is place a button on one corner of the box that rotates with it and will stop the rotation when moused over

Thanks

Script To Stop Swift 3d Rotation
i have an animation of a 3d cube rotating continuously. i would like to know how or what script to write the following condition.

cube should rotate until stop button is pressed.
once stop button is pressed then the cube should make a complete 360 degree rotation then stop. (the last frame of the 3d cube movie clip shows the cube facing you full on, so basically the movie clip should play until it reaches the last frame then stop)

Easing Rotation To Stop At Zero MX2004
I have an MC which is rotating constantly controlled by an onEnterFrame action. Every frame, the MC rotates by the value of outerspinerate.

onClipEvent(enterFrame) {
curr_outer_rot = this._rotation;
this._rotation = curr_outer_rot + _root.dynamo.outerspinrate;
trace(curr_outer_rot);
}

I noticed in the trace that the rotation values in flash are translated into the range of -180 to +180.

I want the MC rotation to slow to a stop at zero _rotation value when certain events become true (it's for a preloader).
I want this to happen gradually over at least half a rotation, so i'm using something like
if (allbytesloaded && theMC._rotation == -174) {
decrease the variable 'outerspinrate' so that 'theMC' slows down gradually to stop at or very near zero _rotation;


I'm rather scatterbrained at devising logic so can someone help me with this? I'm going to be doing this with 3 clips at once, and one of them will be spinning the opposite way, but explaining it once should enable me to finish the rest. thank you!
-andy

Stop Help Needed In Rotation Loop
Hey everyone, I'm having a bit of a problem with this rotating object. It loops and never stops. I searched and found similar problems, but if I'm not mistaken most loops where done with tweens, unlike this one (correct me if im wrong, im a total newbie at this stuff)

heres the code:


Code:
onClipEvent (enterFrame) {
i = getProperty(this,_rotation);
setProperty(this,_rotation,i + 7);
}
i basically want the planet to spin once, and then stop.

any help will be greatly appreciated! thank you

Easing Rotation To Stop At Zero MX2004
I have an MC which is rotating constantly controlled by an onEnterFrame action. Every frame, the MC rotates by the value of outerspinerate.

onClipEvent(enterFrame) {
curr_outer_rot = this._rotation;
this._rotation = curr_outer_rot + _root.dynamo.outerspinrate;
trace(curr_outer_rot);
}

I noticed in the trace that the rotation values in flash are translated into the range of -180 to +180.

I want the MC rotation to slow to a stop at zero _rotation value when certain events become true (it's for a preloader).
I want this to happen gradually over at least half a rotation, so i'm using something like
if (allbytesloaded && theMC._rotation == -174) {
decrease the variable 'outerspinrate' so that 'theMC' slows down gradually to stop at or very near zero _rotation;


I'm rather scatterbrained at devising logic so can someone help me with this? I'm going to be doing this with 3 clips at once, and one of them will be spinning the opposite way, but explaining it once should enable me to finish the rest. thank you!
-andy

Stop 3d Rotation On Double Click With Papervision3D
im new to this site and n00b with actionscript 3....i finally got the hang of 2.0 and now i have to learn 3 to do what i really want :/

well i have a cube i created and it does what i need. i just want to set it up to where i double click a face and it stops rotating.

does anyone know what code i would use to stop all rotating or turn off all the physics??

thanks a lot!!

Rotation Script - Smooth Rotation
I have created a speedometer and on clicking a speed, I can get the needle to rotate around to the speed clicked, using _rotation.

However, the movement is very 'jumpy' and I would like to make it smoother, or better still accelerate/decelerate.

I have tried the following


Quote:




on (release) {
rotation_speed = 0.1;
if (speedo._rotation > -40)
{
do {
rotation_speed = rotation_speed * 1.1;
speedo._rotation = speedo._rotation - rotation_speed;
} while (speedo._rotation > -40);
}
else {
do {
rotation_speed = rotation_speed * 1.1;
speedo._rotation = speedo._rotation + rotation_speed;
} while (speedo._rotation < -40);
}
}




I want to get the needle round to -40, so whilst it is greater rotate is backwards, otherwise rotate forwards, starting with a small rotation and increasing (accelerate).

I found that this was still jumpy. Trying a negative causes Flash warning about script running for too long.
Rotating forwards (else) also overshoots the end position of -40

Any ideas on how to get the needle moving smoothly and finishing on the correct spot??

Rotation At A Given Rotation Point In AS
Hey ya'll.
I was wondering on exactly how would you make an MC rotate with a given rotation center, using AS, obviously. I'd like to know the math behind it, please.
Using _rotation would make it rotate around the mc's center... i'd like to make it rotate around another center, one defined...

Stop Actionscript Function At A Specific Frame (stop Looping)
I want to stop an effect at a specific frame but I dunno how.
Do I have to put something in the code?
I'm confused.
Or just tell me how to stop it from looping.
Edit:
Is it possible to attach this to a movie clip? Then i can stop it or use onEnterFrame and then escape();
I actually have no idea what I am talking about. /Edit

Here is one of the code I borrowed:

MovieClip.prototype.placeInSpace = function(id) {
var ratio = this.focaldistance / Math.sqrt(this[id].z * this[id].z);
this[id]._x = this[id].x * ratio;
this[id]._y = this[id].y * ratio;
this[id]._xscale = this[id]._yscale = 1000 / this[id].z;
}
MovieClip.prototype.randomPlace = function(id) {
var radius = this.rmin + (this.rmax - this.rmin) * Math.random();
var polar = 2 * Math.PI * Math.random();
this[id].x = radius * Math.cos(polar);
this[id].y = radius * Math.sin(polar);
this[id].z = this.zmin + (this.zmax - this.zmin) * Math.random();
}

Here's the other code cause I can use two in my movie:
function mover() {
// Move the particle over time
this._y += this.speed;
this._yscale += 10;
this.speed++;
if (this._y>500) {
this._y = 0;
this.speed = Math.random()*10;
this._yscale = 100;
}
}
function starField(x, y, n) {
// Generate a starfield of specified dimensions with n stars
for (var i = 0; i<n; i++) {
var star = this.createEmptyMovieClip("star"+i, i);
var dot = star.createEmptyMovieClip("dot", 0);
star._rotation = Math.random()*360;
star._x = x;
star._y = y;
dot.lineStyle(0, 0xFFFFFF, 100);
dot.moveTo(0, 10);
dot.lineTo(0, 15);
dot.onEnterFrame = mover;
dot.speed = Math.random()*10;
}
}
starField(275, 200, 100);

[F8] Movie Plays > Stop > Reverse > Stop > Play
I am fairly new to involved action scripting. I have successfully scoured flashkit threads for years to get my answers but this one has been driving me crazy for the past couple days. I have tried numerous solutions but none of them do exactly what I am trying to do.

I am creating an online portfolio that I want to control with two buttons that will play forward on release and stop at every piece unless the user is pressing and holding down - I also would like the scrolling animation to play in reverse on press and stop at every piece unless press and hold which happens to be skateboards in this section. I am posting the .fla for this section. This is what I have been able to accomplish so far. I moved everything into the main timeline from a movie clip because I could not get that to work at all. Should I move it back to movie clip? I also want it to stop at the first board.

here is the code I was able to peice together that just plays continously without stops.

Empty movie clip on second frame.

PHP Code:




onClipEvent (enterFrame)
{
    if (_root.goBack)
    {
        _root.prevFrame();
    }
    else
    {
        _root.nextFrame();
    }
    _root.frameNo = "Frame : " + _root._currentFrame;
}







Forward button.

PHP Code:




on (press)
{
    _root.goBack = false;
}







Reverse Button.

PHP Code:




on (press)
{
    _root.goBack = true;
}







I have only done basic stops; goToAndPLay, getURL and such I am a little out of my league here but I started the ball rolling and would like to make this work as I intended. Any help making this do anything close to what I am describing would be much appreciated

How To Make The Wings Of A Fly Stop When The Flash Movie Stop?
Hello,

I made a simple "Fly Flying" flash animation. The wings of the fly are moving up and down while the fly is flying from one location to the other. My problem is:

The wings of the fly are still moving up and down when the fly is landed on the ground. I tried to add a stop(); action script at the last frame. However the wings are still moving even the movie is stopped.

How can I make the wings stop moving when the flash movie is stop? Please download and take a look at my flash file (fly_flying.fla):

http://space.uwants.com/batch.download.php?aid=313219

Thanks and best regards

Alex

How Can I Stop Flash From Looping And Stop On The Last Frame
I am having a problem with looping. I created a flash file and published it. I only want it to play through once and stop on the last frame. I can't get it to stop, it keeps looping through and playing the movie.

I have tried to add a layer that has some script in it with a start and a last tag on frame 1 and frame 310 there is 315 frames total.

the action script was
<code>
// this was in the first frame
ifFrameLoaded ("last") {
gotoAndPlay("start");
}

//this was in the second frame
gotoAndPlay(1);

//this was in the last frame 315
stop ();
</code>

your help is greatly appreciated.

skj

Cannot Stop Movie Clip - This.stop() Confusion
Hello,

In my pong game when someone scores a goal I want the ball to pause in the middle of the screen, wait xx seconds and then randomly move.


Code:
// Return to kick off position
this.stop();
this._y = 325;
this._x = 275;
a = 0;
var myInterval = setInterval(this, "wait", 30*1000);
This calls function wait that simply uses this.play(); to allow the ball to move again.(See below)


Code:
onClipEvent (load) {
this.wait = function() {
this.play();
clearInterval(myInterval);
};
}
However I cant EVER get the ball symbol to stop no matter what I do.

Ive included all the code attached to the clipevent for the ball below.
Im thinking it must be due to the nested loops or somethings, very very confused


Code:
onClipEvent (load) {
this.wait = function() {
this.play();
clearInterval(myInterval);
};
}
onClipEvent (enterFrame) {
//Kick Off, play whistle and select random direction from 4 diagonals
if (a == 0) {
_root.kickoffwhistle.start();
//Use variable to ensure random numbers are generated only once per game
var randNumber1:Number = Math.pow(-1, Math.floor(Math.random()*2));
//-1 ^1 or ^2 = 1 or -1
var randNumber2:Number = Math.pow(-1, Math.floor(Math.random()*2));
//move it on the y axis at -1 or 1 & //move it on the x axis at -1 or 1
this._y += this.randNumber1;
this._x += this.randNumber2;
++a;
//set a trigger to increment so only actioned once.
}
if (randNumber1>0) {
this._y += this.yspeed;
//move it on the y axis at the set speed
} else {
this._y -= this.yspeed;
//move it on the y axis at the set speed
}
if (randNumber2>0) {
this._x += this.xspeed;
//move it on the x axis at the set speed
} else {
this._x -= this.xspeed;
//move it on the x axis at the set speed
}
// Ball(this) collides with PL1 and ball travelling upwards then deflect off randomly {
if (this.hitTest(_root.P1footballman) && this.yspeed<0) {
// Define boundaries for collision detection
var pl1bounds:Object = _root.P1footballman.getpl1bounds(_root);
this._x = Math.round(Math.random()*(pl1bounds.xMax-pl1bounds.xMin))+pl1bounds.xMin;
//Revert direction of ball by using formula below
this.yspeed = this.yspeed*-1;
//Randomly play miss sound effect if ball in goal area
if (this._x>133 && this._x<450) {
var result = Math.round(Math.random()*2);
if (result == 0) {
_root.MissedGoal.start();
}
}
//play football kick & header sound
_root.footballkickorheader.start();
}
if (this.hitTest(_root.cpu) && this.yspeed>0) {
var cpubounds:Object = _root.P1footballman.getcpubounds(_root);
this._x = Math.round(Math.random()*(cpubounds.xMax-pl1bounds.xMin))+cpubounds.xMin;
this.yspeed = this.yspeed*-1;
if (this._x>133 && this._x<450) {
var result = Math.round(Math.random()*2);
if (result == 0) {
_root.MissedGoal.start();
}
}
//play football kick & header sound
_root.footballkickorheader.start();
}
//Roatation properties of the ball
i = getProperty(this, _rotation);
setProperty(this, _rotation, i+5);
//Rotate ball i degees per frame
_this.rotation = i;
//Player Scores routine
//If ball object is beyond defined CPU goal area
if (this._y<75 && this._x>133 && this._x<450) {
_root.goalcry.start();
_root.P1footballman.score++;
//add1 to the cpu score
_root.playertxt = 'PLY: '+_root.P1footballman.score;
//Play start whistle for KICKOFF
_root.kickoffwhistle.start();
//Return to kick off position
this._y = 315;
this._x = 275;
a = 0;
//Stop ball in correct position
this.stop();
//5 seconds then calls function "wait" to use this.play() to move ball
var myInterval = setInterval(this, "wait", 5*1000);
}
//CPU Scores routine
//If ball object is beyond defined Player goal area
if (this._y>470 && this._x>133 && this._x<450) {
_root.goalcry.start();
_root.cpu.score++;
//add1 to the cpu score
_root.cputxt = 'CPU: '+_root.cpu.score;
//Play start whistle for KICKOFF
_root.kickoffwhistle.start();
// Return to kick off position
this.stop();
this._y = 325;
this._x = 275;
a = 0;
var myInterval = setInterval(this, "wait", 30*1000);
}
if (this._x>620 || this._x<5) {
this.xspeed = this.xspeed*-1;
//if it hits an edge inverse the xspeed
_root.bounce.start();
//Play bounce side effect
}
if (this._y>470 || this._y<75) {
this.yspeed = this.yspeed*-1;
//if it hits the top or bottom of pitch inverse the yspeed
_root.bounce.start();
//Play bounce side effect
}
}

How To Stop MC At Same Time As Sound Stop?
Hi and thanx for u trieing to help me.
I have used this code to play a sound from the library.

with (song_link) {
sound1 = new Sound(song_link);
sound1.attachSound("inga");
sound1.setVolume(100);
sound1.start(0, 0);
}

and when the sound stops i would like to stop a MC that loops.

if there is any way to have an if command in the MC that waits for a variable to be sended and then stops.

or to set some kind of countdown when u start to play the sound that tells the MC to stop.

i would be very glad if u could help me!

Stop Movie - Don't Stop Sound
Hello,
I'm making a intro for somebody's site. The intro plays a loop. At the last frame I made a stop script. But I want to the muis (a loop) to play on and on. So the music won't stop when the movie stops.
Can somebody help me?
Tnx & greetz, Big_Boss_Man

Stop Sounds When Stop Film
Hi. When I open my flash movie in the Flash Player (I have MX) and play it, it works fine. But if I make a breake (stop the playback), the film stops, but the sound still goes on. I have seen animations where sounds and the movie stop if I stop the film. How can I do it. Thx, leu

If I Stop The Sound I Want To Play It From Where Is Stop :)
hi all

i want a button if i cilck on it the sound will stop and another button if i click on it the sound will continue from where it is stoped is it possible in flash or not

and the sound where is the best place i place it ( movie clip - main frame - action ????


thanks

if any one can give me an open file to be clear or the code

How Can I Stop THIS Movie? This.stop() Does No Work?
I try to stop a small movieclip writing

onclipEvent(Enterframe){

if(_root.myvar==1){
this.stop();
//this._visible=false
}

}


It becomes invisible if I use the second line. But it does not stop if I use the first line.

What's the problem??

Thanks

Strange Bug....won't Stop At Stop Action
My movie isn't stopping when there is a stop action. I don't know if its a bug in my site or if its a bug with flash MX. Here is the file home.fla. The error occurs when you click on one of the buttons under the Profile heading. If you look at the Profile Scene you'll see I have stop actions placed at the end of each labeled section. For some reason the philosophy section keeps repeating itself and won't stop even though there is a stop action. Can some please take a look and let me know what I can to fix this. Thanks!!

Movie Won't Stop On Stop Command ?
Hello again. I have a movieclip following a motion guide. At the end of the guide, a window comes up with some text. On this frame, on it's own seperate layer, I have a stop command. What is suppossed to happen is after reading the text, you click on the window, it dissappears, and the movieclip follows another motion guide. For some reason though, when I output the FLA, it blows right past the stop command. I have tried making the stop command multiple frames, and I have double checked that there is no other command overriding the stop on that frame. I have no clue. Any ideas? Thanks,

(I would post the file, but it's so large it's killing my G5)

Movieclip Won't Stop On Stop Command?
Inside a movieclip (track) I have a ball on a motion path. At the end of the first motion path, a box comes up and the movie is suppossed to stop on it. For some reason, it keeps going right on to the next motion path. The stop is on it's own layer, and the weird thing is, there are two other stop commands on the same layer, at the beginning and the end of the movie, which both work. I have tried everything I know. Please help. Thanks,

-A

_root.stop Doesnt Really Stop
Hey guys,

I have a pretty complex game im working on..and when you win the game, it sends you to the 4th frame on the root timeline.

This shows the win message and such...however, it keeps automatically sending them from the 4th back to the 3rd frame. I have been searching thru the flash for hours to find something that is doing this, but there is nothing!

Is there a way to like override all other things and have a FULL stop?

I cleared the intervals (but none of them have anything to do with changing frames) but nothing works.

Any help would be amazing. Sorry I can't post the example, as its a HUGE complex flash file.

I pretty much am looking for something similar to _root.stop that actually stops EVERYTHING.

Thanks!

Goto And Stop Doesnt Stop?
hi there..
i have stupid problem again..
thats very basic and i dont knwo what the hell is wrong and its driving me crazy!
ok here it is.. im using

on (release) {
gotoAndStop("main");
}

it goes back to main labeled frame stops around 3 sec.. then plays the whole movie.. again! and again!
i changed it to frame number like

on (release) {
gotoAndStop(45);
}

still same! even there is a stop(); action on frame 45(main)
what is that?!
what am i doing wrong?

thanks..

Stop Scene Loop Without Stop();
I have an interactive flash application that I'm building, but it's gotten kinda large (~200k) because of one large png file. So, I want to build a preloader for it, but I seem to have some difficulty getting it to a) stop looping back to scene 1, or b) look good if I use stop();

for some reason, the folowing scene's moving elements look crappy if I use stop(); in it's first frame in order to stop it from going back.

I don't want scene 1 to continuously reappear, but stop messes with the moving elements in scene 2.

Any novel suggestions? Thanks in advance for even reading this.

Goto And Stop Doesnt Stop?
hi there..
i have stupid problem again..
thats very basic and i dont knwo what the hell is wrong and its driving me crazy!
ok here it is.. im using

on (release) {
gotoAndStop("main");
}

it goes back to main labeled frame stops around 3 sec.. then plays the whole movie.. again! and again!
i changed it to frame number like

on (release) {
gotoAndStop(45);
}

still same! even there is a stop(); action on frame 45(main)
what is that?!
what am i doing wrong?

thanks..

Making A Stop Button, Or Telling A Button To Stop A Streaming Video
Hello,

I've searched the forums and tried to find an answer to this question, but most of the posts go unanswered or are way beyond my understanding.

I'm using a form based application in Flash professional 8.

I have a .flv video of a movie trailer that I created from Quicktime. I intend to stream this video.

I also have a button called "Trailer". When I click on the "Trailer" button, I see the .flv video I created along with the play/pause control skin that I added in the import video wizard. I press the play/pause button, and the movie plays.

This is as I had expected it to be.

Now, when I want to go to something different, for example clicking a "Photos" button that displays a slideshow, the video continues to play.

Is there a way I can tell the "Photos" button to stop the streaming video?

I've searched the forums, and found a few answers, but I don't really understand them. I added them to the script of the "Photos" button anyways to see if they did anything, and every time the video still kept playing.

Here's what I've tried so far:
------------------------------------------
button.onPress = function (){
player_mc.clearVideo();
}

Where player_mc is the instance name.
-------------------------------------------
Adding a stop component, but this isn't really what I want. I'd like the "Photos" button to stop the movie without the user having to hit a separate stop button.
-------------------------------------------
.stop() and ._visible=false;

I don't really understand this.
-------------------------------------------
removeMovieClip("component_mc");
-------------------------------------------
instance.stop()

From what I understand this is only for adding to a keyframe to stop a movie that's looping, and not for what I would like to do. Is that correct?
-------------------------------------------

I would greatly appreciate any help, not only just for me, but for any other newbie who may run into this problem.

Thanks!

3d Rotation
I just can't make a 3d rotation. I cant find the way to do it! can somebody help me?

Rotation 3d
k i made some 3d letters... and they are in flash... i have them set as a mc and i have a button hidden under them.... on the mouse over of the button the mc starts playing, and the letters rotate, now i would like the letters to continue rotating after the mouse leaves, but when the letters return to the orignal state i want them to stop.... but when the mouse is still over the button i want the letters to continue to spin even when they reach the orignal position... Thank you for your time!

Rotation ......
Anyone can show me step by step how to have a WHEEL
spin clockwise...

I have a picture of a car for example.
With a front and a back wheel.

Both are Movie Clips
Instance is Back_Tire and Front_Tire

Then what ??
How the hell to i get them to spin...clockwise.
I've tried a few ways...cant get them to burn road !!!

Rotation
Hey, I have what should seem to be a simple problem. I made a movie that has a throwable object in it, that will bounce back off of the walls. Gravity is also thrown in there, and the ball will eventually stop at the bottom of the screen if left alone. My object is a gear. What I want it to do is to rotate according to the xvelocity. Before I go on I have to give credit to Bit-101, as it is more or less his tutorial that it's from.
Anyways, I want the gear to rotate in the direction that it's moving, and like I said, I would like it to be proportional to the actual speed. I have tried a to just add a little code to the ball. _rotation = xvel where xvel is obviously my xvelocity. For some reason that didn't work. All of my script is on the object, which just consists of three frames. The first is just variables for like the leftedge, rightedge, etc, initial velocities. The third is gotoandplay(2); and the second is where all of the script is. If you want to see the gear in action, go to: http://www.mime.eng.utoledo.edu/intro1.swf The gear that I am talking about is the first one that drops at the beginning. Note: you will need the Flash 6 Player to view it correctly.
Thanks in advance for any help

Rotation
Hi, I'm new, but please help me make my image rotate continuously.

MC Rotation
i need help making a movieclip rotate towards the mouse. but i have no clue on how to do it..can anyone help me?¿

Rotation Help
I am trying to rotate and object 360 and make it stop. I have included the code I am using below. I have tried entering many different numbers in place of the 180 but they don't work. Any help would be greatly appreciated.

newrot = this._rotation + rotspeed
if (newrot > 180){
gotoAndStop(4);
}
this._rotation = newrot

Rotation
I am new to flash and I am wondering if there is a way to have a 3d object or text rotate in a 360 degree plane?

3d Rotation
I am trying to rotate a point about y axis. I have written the code as follows in the onmouse release event of a button. I am trying to a movieclip by assigning the rotated point to _x property of the movie clip. THe code is as follows


on (release) {
xyangle = xyangle+10;

// formula for rotating about y axis
//x' = (cos é * x) + (sin é * z)
//y' = y
//z' = -(sin é * x) + (cos é * z)


tmp = -(Math.sin(xyangle*_root.pi180)*x1)+(Math.cos(xyang le*_root.pi180)*z1);
x1 = (Math.cos(xyangle*_root.pi180)*x1)+(Math.sin(xyang le*_root.pi180)*z1);
z1 = tmp;
screenx = ((800/2)*x1)/(z1+100)+(800/2);
screeny = ((600/2)*y1)/(z1+100)+(800/2);
setProperty (_root.test, _x, x1);
setProperty (_root.test, _y, y1);
}


I am declareing the following variables in a frame in main timeline

x1 = 0;
y1 = 0;
z1 = 50;
sin = 0.9848;
cos = 0.1736;
xyangle = 10;
pi180 = 0.01745392;

I feel there is something I am missing because the rotation is not smooth and I am not getting a desired result

Rotation
Hi
I am using version 5 of Flash.How can I perform rotation in a movie clip?I want the arrow in a meter to rotate as the value changes.

Rotation
How can I make a MC rotate by typing in the degree in the static text box?

Thank you

Sonia

Rotation
i was wondering how i could keep a layer to have something rotate over and over again at teh end of a movie... or blink really really fast at the end of the movie clip... any ideas??? thanks. i know supposedly you can't loop just a layer with a tween. thanks for the help.

Is There A Rotation
Ok, I have this circle - divided into 8 "pie slices" - that I rotate/spin at some constant rate.

What I would like to be able to do is once an input event (button, mouse click, etc) happens have the circle slow down and stop exactly say 1.5 rotations (540 degreees) from the point of the rotation it was at when the trigger to stop it was fired.

Now, per the subject line, is there some variable (similar to say the X:Y coords) that tells you what point in a rotation a MC is at? (ie "rotation.status = 245 degrees")

If there is, great..then thats basically all I need.

If not, how the heck could I determine where in the rotation a MC is?

If what Im asking doesnt make any sense...think of the Wheel of Fortune. With the initial spinning being done by your hand. The "event/trigger" being the release. And, the 540 degrees being the "easement"

Help?

Ahhhk!

Rotation
Hello,

i was working on some functions like moving a MC, Fading a MC but there is one i have a problem:

What i want is this:

1. My MC is stoped.
2. I want to give a command to make it rotate...first he starts to rotate...acelerates and then keeps rotating at a constant speed.
3. When i want i give a command and make it stop. But he stops by desaceleration on not in an instant.

Could someone help me to do this...

I was thinking on a prototype or a function as i will apply this to several MC's.

Thanks,
Miguel

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