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








Easing With A Boundry


i looked at some of the easing tuts which were quality but how can u box in a easing animation and also change its start co-ordinates.. because when easing a animation it always starts on the top left corner.. as for boxing in a animation i mean for example making a easing animtion is only aloud to move up and down the side of a scene..

(eg)
up
and
down
this
side
only
and


.................................................. ... not over here



?




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 03-09-2004, 10:15 AM


View Complete Forum Thread with Replies

Sponsored Links:

Easing With A Boundry
i looked at some of the easing tuts which were quality but how can u box in a easing animation and also change its start co-ordinates.. because when easing a animation it always starts on the top left corner.. as for boxing in a animation i mean for example making a easing animtion is only aloud to move up and down the side of a scene..

(eg)
up
and
down
this
side
only
and


.................................................. ... not over here



?

View Replies !    View Related
[F8] Set Boundry Help/with Map PLEASE
Hey,

I'm making a map that is dragable and you can zoom in and out. I'd like to be able to stop the map from going past the masked section when it's zoomed in or out. I think I need to use the getBounds() Method but I don't understand how to use it. Any suggestions would be great!!!!
Thanks

View Replies !    View Related
Help How Do I Set A Boundry For An MC
Hey,

I have a map that I have made dragable and you can zoom in and out. The map sits under a mask. I would like when a user zooms out(or in) and drags the MC that it not break the area of the mask (I don't want to see behind the map). Any suggestions? I am on a deadline so any help would be helpful.
thank you : )

View Replies !    View Related
Boundry
In Flash how do I make it so that wken a charcter walk's into a wall from any side the wall stops him.

View Replies !    View Related
Boundry
In Flash how do I make it so that wken a charcter walk's into a wall from any side the wall stops him.

View Replies !    View Related
Boundry
I'm building & testing a system where you can zoom In / Out / Drag an image around the screen. It's to go live on a site I'm currently building.

What I need is a way of placing a boundry on the image. The image in the movie is 1074 x 1360, but you can drag the image off screen which I don't want. Also, when you've zoomed in/out, you can still drag the image totally off the stage. Does anyone know how I can put a boundry around the image so that it stays within certain limits (its size).

Here's the URL for the movie:

http://www.buyfromtheband.com/highart/TEST_3.html

View Replies !    View Related
Next Boundry To Overcome
Hi again today...

It seems my Actionscript skills have become a bit rusty duringthe latest project... but thats not why i started this thread.

Ok' here we go,
In My SWF i have a 1clip that loads some XML into button labels (Not verry complicated) When a buttom is pressed a clip which loads a Content fields starts .. (not the problem also, (Now its getting interresting)somewhere in the 1clip a close button can be pressed to go back to the root of the SWF (this is done by tweening the clip background border)
The same close button should make shure the content clip is finished ... (tweened into invisseble)

Then the 1Clip has to close itself....

-------------------CODE
on (release) {
if (_root.Forumlist.Forums._currentframe = 34) {
tellTarget ("_root.Forumlist.Forums") {
gotoAndPlay(35);
}
} else if (_root.Forumlist.Forums._currentframe = 1) {
tellTarget ("_root.Forumlist") {
gotoAndStop(1);
}
}
}
---------------------CODE


Please help me out here
Thanx....

View Replies !    View Related
Help - Boundry For Mousetrail
hey there!

i've made a header (width=780px height= 211px) that's fully flash.
in the header i've got a rectangular menu (width=185px height=18px) with a small arrow horizontically following the movement of your mouse.

the problem is that it keeps on follow you even when i move out of the menu-area. how can i prevent this from happening?

this is the script for my mouse-movement:
code:
pijl_mc.onEnterFrame = function() {
if(this.hitTest(_root._xmouse,_root._ymouse,true)) {
var xMouse = _root._xmouse;

if(Math.abs(xMouse - this._x) < 1) {

this._x = xMouse;

} else {

this._x -= (this._x-xMouse) / 6;

}

}
}


if also attached the fla if you don't really understand my story.
hope someone can help me out with this!
thanks in advance!

View Replies !    View Related
Game Boundry
Hey, I have been following a tutorial for the last few days to get boundries working within games and managed to create the 1st file called Get boundries, i am trying to impliment it into my game where the circle still reamains the hit test but is linked with to work around the feet of my little man (see the second file).

So i need to some how get the code checking if i the red circle has hit the black boxs and if it has it needs to stop the man from being able to work over them.

Hopefully someone out there will be able to help me >_<

Thanks in advance

Both files are in there getbounds.fla is the working file and getbounds 2 is kinda how i need it to be working hope i made enought sense to get help.
Download

View Replies !    View Related
Ball And Boundry
I would like the Ball to move in a random direction 0-360,
Then i would like the Ball to richoche off of the BallBoundry in its reflected direction.
Thank you


I have updated the fla to the one with the new code

here is my post with the work i did to get the AS

View Replies !    View Related
Checking To See If A Cursor Is Within A Boundry
does anybody know how to check to see if the cursor is within a rectangular boundy besides droptarget, Im looking for doing it with x and y coordinates

thanks
JH

View Replies !    View Related
Target Flow Boundry
I have an image that has a taget in the top layer. the target follows the mouse with this code.

onClipEvent(enterFrame){
_x+=(_parent._xmouse-_x)/8;



What I want todo Is have the target only follow (active) when the mouse is over a certain part of the image ( so its contrained within a box)

can any one help

thanks.

View Replies !    View Related
Bouncing Ball + Boundry
I'm looking to create a small movie clip in which I have a small red ball bouncing continuously inside a boundry, I.E. starts off on the left, bounces to the right, hits the right boundry and bounces back to the left, hits left boundry, goes right ... and so it goes on.

I know this is done using AS but am not to sure where to start. If theres a tutorial I could look at or someone who has done this cna help that would be great.

Regards,

View Replies !    View Related
Putting A Boundry To My Scrollingmenu
hey everyone!

i made a menu that has a point following the mousemovement horizontically.
my question is:

how can i make it stop moving when you get OUTSIDE the menu area, so it won't follow you wherever the mouse is on the swf???

this is my script:
code:
pijl_mc.onEnterFrame = function() {
var xMouse = _root._xmouse;
if(Math.abs(xMouse - this._x) < 1) {
this._x = xMouse;
} else {
this._x -= (this._x-xMouse) / 6;
}
}


i've included the fla if that can help you (and me) out

greetz and thanks a million, billion, kazzillion!!

View Replies !    View Related
How Do You Make A Boundry For A Circle?
I have a ball that gets duplicated when you press a button, the ball acts with gravity so it bounces and whatnot but when the balls hit they just go through eachother, I want them to have boundrys so when they touch sit on eachother or bounce off whatever my gravity allows it to do. I'm gonna do some experimenting but if you could help thatd be great.

I'm using Flash 8 as well

View Replies !    View Related
Creating A Boundry In The Script...
I'm new here and I'm taking a class on Director. Unfortunately, my teacher does not know how to do much himself which is leaving me to come here and seek advice. Please forgive me in advance for any stupid questions and the like since I have not learned much.

I am creating a video game similar to Arakanoid but with a small amount of moving objects instead of stationary objects. I am not trying to make an exact recreation but at least something that is playable and fun that can be made in Di.

I am just taking it one step at a time so my question is, am I able to create a border around this portion of my picture? The black border is also part of the same PNG. Is it possible to create a border in the code so nothing passes that section or does my picture have to be separate from the black border? Basically, I want all actions constrained within that picture frame.

I hope this question makes enough sense. Thank you for any help. ^_^

View Replies !    View Related
Code To Set Boundry In Game
This may sound noob-ish, but I can't figure out a good way to do this. All I've gotten so far are dumb answers.
I need code that sets boundaries (such as the ground or a wall) that will stop my character when he hits them. The code needs to work for curved surfaces as well as flat ones. I know how to do a hittest, but I can't figure out what to do from there. Stopping gravity doesn't do enough. Keep in mind my character has inertia, so he will keep moving for a little while after you release the arrow key.
Any help would be much appreciated.

View Replies !    View Related
Creating A Boundry In The Script...
'm new here and I'm taking a class on Director. Unfortunately, my teacher does not know how to do much himself which is leaving me to come here and seek advice. Flash is a better option for what I'm looking for and Director is moving out anyway. Please forgive me in advance for any stupid questions and the like since I have not learned much.

I am creating a video game similar to Arakanoid but with a small amount of moving objects instead of stationary objects. I am not trying to make an exact recreation but at least something that is playable and fun that can be made in Di.

I am just taking it one step at a time so my question is, am I able to create a border around this portion of my picture? The black border is also part of the same PNG. Is it possible to create a border in the code so nothing passes that section or does my picture have to be separate from the black border? Basically, I want all actions constrained within that picture frame.

I hope this question makes enough sense. Thank you for any help. ^_^

View Replies !    View Related
(flash Mx)draggable Mc With Boundry?
Hello everyone, I'd just like to say thank you for every person that has helped me in the past; i hope that you all can help me out once more. I have a menu that i need to be able to drag, but the menu is only allowed to be dragged to a certain constraint. (i.e. before the menu can no longer be visible within the .swf) I have the basic drag ac:

on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}

How would i go about adding constraints to this mc? Thanks in way advance everyone. Take care

Victor.

View Replies !    View Related
Boundry For Infinite Menu- - -
Hi all!

I've searched around for an answer to this on the forums' archives, but to no avail

All i need to do is put a boundry for the infinite menu to stop at for the left and right.
This is my code from the tut:

ActionScript Code:
onClipEvent (load) {    xcenter=150;    speed=1/10; }  onClipEvent (enterFrame) {    var distance=_root._xmouse-xcenter;    _x+=(distance*speed);    if (_x > 0) _x=-300;    if (_x < -300) _x=0; }


And if there is already a thread about boundries for the infinite menu...can you just direct me there? Thanks so, so much!

Johnny

View Replies !    View Related
(flash Mx)draggable Mc With Boundry?
Hello everyone, I'd just like to say thank you for every person that has helped me in the past; i hope that you all can help me out once more. I have a menu that i need to be able to drag, but the menu is only allowed to be dragged to a certain constraint. (i.e. before the menu can no longer be visible within the .swf) I have the basic drag ac:

on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}

How would i go about adding constraints to this mc? Thanks in way advance everyone. Take care

Victor.

View Replies !    View Related
Boundry For Infinite Menu- - -
Hi all!

I've searched around for an answer to this on the forums' archives, but to no avail

All i need to do is put a boundry for the infinite menu to stop at for the left and right.
This is my code from the tut:

ActionScript Code:
onClipEvent (load) {    xcenter=150;    speed=1/10; }  onClipEvent (enterFrame) {    var distance=_root._xmouse-xcenter;    _x+=(distance*speed);    if (_x > 0) _x=-300;    if (_x < -300) _x=0; }


And if there is already a thread about boundries for the infinite menu...can you just direct me there? Thanks so, so much!

Johnny

View Replies !    View Related
Mouse Boundry Control
I need to put a boundry on the cursor in a project I'm working on. e.g.- I don't want the mouse to go below a certain y value. I'm sure the code is simple but so are my Flash skills, so any help would be appreciated.

View Replies !    View Related
Mouse Boundry Control
I need to put a boundry on the cursor in a project I'm working on. e.g.- I don't want the mouse to go below a certain y value. I'm sure the code is simple but so are my Flash skills, so any help would be appreciated.

View Replies !    View Related
Movie Clip Boundry Detection
if you got to http://www.btinternet.com/~lfl_powell/ you will see what i am trying to do.

the red dot is controlled by the up, down, left, right keys but what i want to happen is when the edge of the dot touches anypart of the black it cant go any further out, so the movement is only contained within the white area.

can anyone help please.

View Replies !    View Related
Giving A Movie Clip A Boundry
What's happening is that I am moving a movie clip around the screen on button click (left,right,up & down).

What I am having difficulty with is stopping the movie clip from going over the boundry i have drawn around the stage.

I want it to not go over these boundries, is there a way of doing this?

cheers

lee

View Replies !    View Related
HELP -Printing Current View Within Boundry Box
I have a movie with many different layers and movie clips to allow the user to 'create a character' ( http://alexdesforges.tripod.com/ ).
and basically want it so that when user clicks the button "Print Me"
it prints the character as you see (current frames of all different movieClips)
and within a boundry rectangle.
Is there a simple way to do this? (I have searched forums but cannot find a solution

Hope there is
thanks for any help, much appreciated!

View Replies !    View Related
Boundry Within The Movie Heights N Width?
is there a code for this? like if the movieclip hits the height and width of the movie (ex 550 x 400) it wouldn't be allowed to go?

View Replies !    View Related
Drag Class: Set Boundry For Movieclip
I want to restrict the movement of my movieclip. For example, I only want it to move 100 pixels to the right and left. Can anyone offer suggestions?


Code:
class Drag extends MovieClip {
var ease;
var dx:Number;

private function Drag() {
this.ease = 0.3;
};

private function onEnterFrame():Void{
this.dx = _xmouse - this._x - 500;
this._x += (this.dx * this.ease);
}
}
The source files:

http://www.0-style.com/files/drag.zip

View Replies !    View Related
MouseX , MouseY Detection Beyond Stage Boundry?
Hi there,

I've just started dabbling with AS3 coming from Director. Is there a way to
detect the mouse x , y values beyond the edge of the stage? When tracing
mouseX, mouseY on enterframe event the values stick at the last position
within the stage when the mouse roams beyond the stage boundry.

An vague example of usage would be if you had a big movie clip as a custom
cursor, and wanted it to smoothly disappear beyond the stage edge.

Thanks for your help :)

Richard Smith

View Replies !    View Related
Frame Based Easing, Into Time Based Easing (in Actionscript)
i have code to move something from placeA-placeB based on time...then i also have a code to move something from placeA-placeB with easing, but its based on frames...can someone supply me with an easing formula based on time?

View Replies !    View Related
Easing Out AND Easing In Using Math?
Hello,
I'm familiar with how to ease something in using motion math. Easing out would not be that bad either. But how would I script something easing in half way, then easing out the second half? It would start slow, gradually move faster, then slow to a stop at the end. - almost like a sine wave I guess?

Any thoughts? I appreciate any feedback.

View Replies !    View Related
Easing
I would like to Ease some symbols/images into my movie - I am not getting the hang of it. They are still appearing "instantly" - I need a more gradual appearance. Help?! thanks
UFO (and Rush) rocks!

View Replies !    View Related
Easing In And Out
Simple Question:

I have an object that moves to the right then stops. I want to ease the movement out then ease it in. I can't seem to figure out how to ease the movement on both ends. Setting the ease numbers in motion tweening won't allow for an ease on both ends. I can't believe this isn't possible, so how can I control the ease from the first keyframe and the last?

Thank You,

Bob

View Replies !    View Related
Easing....need A Lil Help
Not too sure why this process seems so complicated,but I am having some problems with easing. Lets say I have two keyframes and on one keyframe the easing is set at 0 and the other side of the keyframe its set to -50(slow down), shouldnt the movement of an object set between the keyframes slow down as the frames progress? Nothing seems to happen? Do youhave to have more than two keyframes set up to do this? All i want is a simple smooth slowdown of motion or speedup of motion to make my animations not look so linear. I have also included three keyframes....one set at 0 easing, then 25 easing, and then 50 easing....and still no sign of speeding up....just plain linear movement. Could someone please educate me on how this easing is done??

View Replies !    View Related
Easing...please Help
Not too sure why this process seems so complicated,but I am having some problems with easing. Lets say I have two keyframes and on one keyframe the easing is set at 0 and the other side of the keyframe its set to -50(slow down), shouldnt the movement of an object set between the keyframes slow down as the frames progress? Nothing seems to happen? Do youhave to have more than two keyframes set up to do this? All i want is a simple smooth slowdown of motion or speedup of motion to make my animations not look so linear. I have also included three keyframes....one set at 0 easing, then 25 easing, and then 50 easing....and still no sign of speeding up....just plain linear movement. Could someone please educate me on how this easing is done??

View Replies !    View Related
Easing
CAN SOMEONE HELP OUT. HOW DO YOU PUT SIMPLE EASING TO A MC?

View Replies !    View Related
Easing?
Hi,

Can anyone recommend a good tutorial on easing? I want my transitions to have a more natural look. Any suggestions?

Cheers,
Jen

View Replies !    View Related
AS Easing Help
I have about 15 movie clips in a movie that i want to scale with ease. Ive tried doing this a number of different ways. all of which have woked but they severely slow down the perfomance of my site.

ideally i would like to use penners equations

I want to have a function on the first frame of the main timeline

i.e


PHP Code:



#include "easing_equations.as"
/////////////////////////////////////

function doScale() {
    callback_txt.text = "";
    //
    var w = parseFloat(destw_txt.text);
    var h = parseFloat(desth_txt.text);
    var dur = parseFloat(dur_txt.text);

    square_mc.scaleClip("easeInOutCubic", w, h, dur);
    //callback event invoked when tweening is done
    square_mc.onScaleDone = function() {
        delete this.onEnterFrame;
    //    callback_txt.text = "callback - scaling done";
    };
}




then call the function like this:

PHP Code:



square_mc.scaleClip("easeOutCubic", 300, 150, 30);




but i want to have it delete this.onEnterframe
when the scale is complete.

can anybody help set up this function properly so it doesnt bog down the processor?

View Replies !    View Related
MC Easing
ok this shouldnt be too hard i hope i want to move a movie clip to a certain spot on a button release comand like this

code:
on (release){
_root.MC._x = 67;
}


but i dont just want the movie clip to appear there i want it to "ease" there how can i get it to do this?

View Replies !    View Related
Easing Help Please
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent (mouseDown) {
endX = 85;
endY = 120;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}

two questions.....

1) Technically this MC will never stop, it will look like it does does doesnt actually, so a if MC1 == (_x = 85,_y = 120) will actually work?

2) How can I make it so when it is DAMN close to just round up to the exact position.
would MC._x = Math.round(MC._x); and MC._y = Math.round(MC._y)

work and if so HOW to amke it all come together...easing is killing me !

View Replies !    View Related
AS For Easing In/ Out?
Can anyone provide me with a way to ease in or out a MC with actionscript with a random value?

View Replies !    View Related
Help With Easing
Yes, I am a newbie!

I have used some script from a tut. and can't get the starting position of my movieclip to work. Could someone help me out? I wan't the movieclip to start at the y=300 location, but it continually goes to the x=0,y=0 location. Could someone explain what I am doing wrong.

Thanks in advance,

THS 2000


3mg zipped fla file.


onClipEvent (load) {
_x = 0;
_y = 300;
div = 5; //This value just determines the speed
//the transistions.
}
onClipEvent (enterFrame) {
_x += (endX-_x)/div;
_y += (endY-_y)/div;


_root.home.onRelease = function() {
endX = 200;
endY = 100;
};
_root.project.onRelease = function() {
endY = 300;
};
_root.plans.onRelease = function() {
endX = 700;
endY = 300;
};
_root.location.onRelease = function() {
endX = 500;
endY = 300;
};
_root.gallery.onRelease = function() {
endX = 650;
endY = 300;
};
_root.sales.onRelease = function() {
endX = 400;
endY = 300;
};
_root.retail.onRelease = function() {
endX = 200;
endY = 300;
};
}

View Replies !    View Related
I Think I Have Easing Down
well i sat there messing with a str8 line & A SQUARE and doing the shape tweening for about a good 20 minutes, and increasing an decreasing the speed of the EASE i got it go pretty smooth. which im happy about, but the thing i want to bounce up & down is going to be a ball w/ a char attacked to it, its like a ball hits a stick figure & it goes boucning around with him, ive found if i draw ANY FORGEIN OBJECT onto the alrdy made ball (simply by making ball witht he fill in color alrdy in it) and i animate it using shape tweening or motion tweening, it does its job but as it does it the color becomes all distorted, the color twists in an out along w/ the drawing, literally it twists around, which looks cool but is not the thing i want, so my Q is, how do i draw a pic (like a man) & make him boucne up an down smoothly?

like take this for instance, am able to make a ball move like this bird, very good i must say but the bird isn't just a ball, its obviously DRAWN UP, mainly the head, but when i draw ahead and try to move it it becomes all disoritented & twists around, any ideaS?

here is the link

http://www.newgrounds.com/portal/view/158417

& if that 1 don't work try

click here

im talkin about that little yellow bird at the beginnin.

thanx in advance.

View Replies !    View Related
Easing
It would be so cool if someone could help me out on this one...I have buttons (item1, item2 etc.) that are referred to in the action script for my MC to make pictures scroll up and down. But I have a next and previous buttons...that I'm not sure how to write the script for.

It's such a cool thing and yet...my ability to write script is sooo limited.

www.bluejaygraphics.com/pages/fotom.htm

The script for the MC is:

onClipEvent (load) {
_x = 0;
_y = 0;
velocity = 4;
}


onClipEvent (enterFrame) {

_x += (endX - _x) / velocity;
_y += (endY - _y) / velocity;

_root.item1.onRelease = function() {
endX = 0;
endY = 0;
};

_root.item2.onRelease = function() {
endX = 0;
endY = -465;
};

_root.item3.onRelease = function() {
endX = 0;
endY = -947;
};

_root.item4.onRelease = function() {
endX = 0;
endY = -1418;
};

_root.item5.onRelease = function() {
endX = 0;
endY = -1895;
};

_root.item6.onRelease = function() {
endX = 0;
endY = -2210;
};

_root.item8.onRelease = function() {
endX = 0;
endY = -2210;
};

}

Does anyone have an idea?
thanks

View Replies !    View Related
Easing
Hi.
Follwing AS is jbum protoype function which I changed a litle bit.
I am not an expert so forgive me any mistakes.
This prototype function move mc to X,Y, scale scaleX, scaleY, change width and height, rotate by angle. Movement is made with two kind of easing. If I put inside my MC in
frame1

Code:
stop();
//move to x,y 360,300 and scale to 20 _xscale = 20
this.startTween(360,300,n,20,n,n,n,n);

frame2

Code:
stop();
//then move to x,y 40,300 and rotate by 20 _rotation = 20
this.startTween(40,300,n,n,n,n,20,n);

etc
I can achieve complex move with various efect. (where n is "dont change")

If some of you can adopt Robert Penner http://www.robertpenner.com/easing/easing_equations.as functions in order to choose diffrent easing that would be great.


Code:

MovieClip.prototype.doTween = function() {
// get elapsed time in milliseconds
var elapsedTime = getTimer()-this.startTime;
// convert to easing ratio 0-1
var k = elapsedTime/this.duration;
trace(k)
if (k>1) {
// are we done yet?
k = 1;
this.onEnterFrame = undefined;
//play next frame and aplly new parameters
this.nextFrame()
}
// apply easing
//k = k*k*(3-2*k); // easeing-out easing-in
k = 1-Math.pow(1-k, 2); //easing-out
// apply easing
// perform the tween


if(this.startX){
this._x = this.startX+(this.deltaX*k);
}
if(this.startY){
this._y = this.startY+(this.deltaY*k);
}
if(this.startXscale){
this._xscale = -this.startXscale+(this.deltaSx*k);
}
if(this.startYscale){
this._yscale = -this.startYscale+(this.deltaSy*k);
}
if(this.startWidth){
this._width = this.startWidth+(this.deltaW*k);
}
if(this.startHeight){
this._height = this.startHeight+(this.deltaH*k);
}
if(this.startAngle){
this._rotation = this.startAngle+(this.deltaR*k);

}
};
MovieClip.prototype.startTween = function(newX,newY,newXscale,newYscale,newWidth,newHeight,newRotation, seconds) {
//default seconds
if(!seconds) seconds=1.1

// get start time, in milliseconds
this.startTime = getTimer();
// compute duration in milliseconds
this.duration = seconds*300;
// get start and end values


if(int(newX)) {
this.startX = this._x;
this.targetX = newX;
this.deltaX = this.targetX-this.startX;
} else {
this.startX = this._x;
this.deltaX = 0
}
if(int(newY)) {
this.startY = this._y;
this.targetY = newY;
this.deltaY = this.targetY-this.startY;
} else {
this.startY = this._y;
this.deltaY=0
}
if(int(newXscale)) {
this.startXscale = this._xscale;
this.targetXscale = newXscale;
this.deltaSx = this.targetXscale-this.startX;
} else {
this.startXscale = this._xscale;
this.deltaSx=0
}
if(int(newYscale)) {
this.startYscale = this._yscale;
this.targetYscale = newYscale;
this.deltaSy = this.targetYscale-this.startY;
} else {
this.startYscale = this._yscale;
this.deltaSy=0
}
if(int(newWidth)) {
this.startWidth = this._width;
this.targetWidth = newWidth;
this.deltaW = this.targetWidth-this.startWidth;
} else {
this.startWidth = this._width;
this.deltaW=0
}
if(int(newHeight)) {
this.startHeight = this._height;
this.targetHeight = newHeight;
this.deltaH = this.targetHeight-this.startHeight;
} else {
this.startHeight = this._height;
this.deltaH=0
}

if(int(newRotation)) {
this.startAngle = newRotation;
this.deltaR = this.targetAngle-this.startAngle;
} else {
this.startAngle = this._rotation
this.deltaR=0
}

// compute the difference (the 'delta')
// begin tweening
this.onEnterFrame = this.doTween;

};

View Replies !    View Related
Easing At 100 Going In And Out... Possible?
ok i bet you dont know what i mean.. so.. ill explain it in detail.. or try atleast..

i want to make a tween motion ease at 100 points.. but i want it to start off easing at -100 points aswell.. so in the middle of the tween is the climax (the fastest part of the tween) of the motion.. is this possible? if so how! this would really help!

thanks so much

View Replies !    View Related
Easing In And Out
Hi, hoping someone can help.

Tried to access the tutorials link but it was not working.

My actionscripting is basic but I understand the below code. I was wondering with this how would be able to ease in and out (to different degrees, like when tweening), whether that be with size or alpha.


onClipEvent (load) {
this._xscale = 10;
this._yscale = 10;
this._alpha = 20;
}
onClipEvent (enterFrame) {
if (this._xscale<140) {
this._xscale += 10;
}
if (this. _yscale<140) {
this._yscale += 10;
}
if (this. _alpha<100) {
this._alpha += 10;
}

}


Thanks

View Replies !    View Related
Easing
i saw an easing script on a scroller. i have the easing script but i'm not sure as to where to put it for it to take effect.

i saw it here:

http://www.flashloaded.com/ultimate.php

any ideas?

View Replies !    View Related
Easing
I know how to ease and I know how to move an object by increments, but I can't combine the two.

If you open the attachment you'll realize the forward and back button should move the images 160 pixels respectively. How can I make than an easing motion while maintaining the 160 pixel move, rather than a fixed desitination.

Thanks!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved