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




Prototype Ease



Hi,

i am using this prototype as part of my xml menu. heres the ease code:

MovieClip.prototype.easeY = function(t) {
this.onEnterFrame = function() {
this._y = int(t-(t-this._y)/1.5);
if (this._y>t-1 && this._y<t+1) {
delete this.onEnterFrame;
}
};
};

and heres where i am calling it:

playlists_menu.list_bg.onEnterFrame = function() {
if (hitTest(_root._xmouse, _root._ymouse, true) && this._parent.playlist._height>this._height) {
ymin = this._y+this._height-this._parent.playlist._height;
ymax = this._y+3;
conv = (this._ymouse-15)*1.3/this._height;
conv>1 ? conv=1 : null;
conv<0 ? conv=0 : null;
this._parent.playlist.easeY(ymax-conv*(ymax-ymin));
}
};

this works really great apart from it seems to apply itself to any movieclip!! so instead of moving the menu only when you mouse over it:

if (hitTest(_root._xmouse, _root._ymouse, true) && this._parent.playlist._height>this._height)

the menu is moved when you mouse over any movieclip!!

any ideas?

cheers,
G



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-22-2005, 01:43 PM


View Complete Forum Thread with Replies

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

I Have Code That Will Move Objects With Ease, But How You You Rotate With Ease?
http://www.affixen.com/

is a great example of what i am talking about...

anyone know how to rotate to a stop to an ease?
and if so, my second question would be how to random ease to a stop?

-manny

THANKS A MILLION IN ADVANCE!!!

About Ease In + Ease Out In Action Script ?
Hi! Every one,

How can I create Tween Motion Ease In & Ease Out in Action Script?

My code to use Tween Motion:


ActionScript Code:
var nInter:Number = setInterval(display,1);
       function display():Void
       {
              mcRetangle._y -=1;
       }


I want mcRetangle Tween Motion with EaseIn or EaseOut, how can I do that?
Thank you so much
Best regards,

Ease-in AND Ease-out Property
I wrote a prototype function that moves a movieclip to a specified location(xPos) with an ease in and an ease out. The way I scriped it, it works every other time but thats it. Half the time the function is called it just performs the ease out. I also attached an fla (MX2004).

My AS breakdown:
When the function is called to a MC it replaces the "ease" var on the "_x += this.ease*speed", to make the script accelerate or ease out determined if the _x is less or more than half way to the xPos.

code:
MovieClip.prototype.ease_in_and_out = function(xPos, speed) {
this.onEnterFrame = function() {
this._x += this.ease*speed;
if (this._x<(xPos/2)) {
this.ease = this._x;
} else {
this.ease = (xPos-this._x);
}
if (Math.round(this._x) == (xPos)) {
this._x = xPos;
delete this.onEnterFrame;
}
};
};
b1.onPress = function() {
myMC.ease_in_and_out(30, .05);
};
b2.onPress = function() {
myMC.ease_in_and_out(800, .05);
};


Could someone rewrite this for me?

Thanks!

[math] Ease In + Ease Out
Hi guys.


Does anyone know (or know where I can get hold of) a function that will do the same thing as easing-in and easing-out a movie clip animation?

Basically what I need to do is feed the function a start position and an end position and have the function return all of the intermediate positions as an array. I know how to get things to ease-out... but not ease-in and ease-out.


Cheers,
Si ++

How Do You Pass A Prototype To A Prototype?
PREFACE: This post is not as long as it looks, I just included my code as an example.

It seems that I am constantly resizing images (in MovieClips) and centering images (also in MovieClips), so I wrote a couple of simple functions to automate the process.

Then I realized that sometimes I don't want to actually center or resize the MovieClip, I just want the properties of the the resized, repositioned MovieClip. So I wrote a couple of new prototypes that basically did the same thing: they created a temporary invisible duplicate, applied the transforms, extracted and returned the properties!

I am sure there's a way that I can use one prototype function for all the transforms, but I don't know how to pass the protoype function in the definition of another prototype.

I would like to say:

ActionScript Code:
var coords:Array = this.predictValues(this.centerIn(this._parent));


this is my center prototype:

ActionScript Code:
MovieClip.prototype.centerIn=function (obj:Object) {
    if (obj==""||obj==undefined) {
        var srcWidth:Number= Stage.width;
        var srcHeight:Number=Stage.height;
        var srcScope:MovieClip=_root;
    } else if(obj.length==2) {
        var srcWidth:Number=obj[0];
        var srcHeight:Number=obj[1];
        var srcScope:MovieClip=this;
    } else if (typeof(obj)=="movieclip") {
        var srcWidth:Number=obj._width;
        var srcHeight:Number=obj._height;
        var srcScope=obj;
    } else {
        var srcWidth:Number=this._width;
        var srcHeight:Number=this._height;
        var srcScope=this;
    }
   
    var startX:Number=srcScope._x;
    var startY:Number=srcScope._y;
    var centerW:Number = Math.round((srcWidth-this._width)/2);
    var centerH:Number = Math.round((srcHeight-this._height)/2);
    this._x=startX+centerW;
    this._y=startY+centerH;
}

this is my fitIn prototype

ActionScript Code:
MovieClip.prototype.fitIn = function(obj:Object) {
    trace (typeof(obj));
    if (obj == "" || obj == undefined) {
        var maxWidth = Stage.width;
        var maxHeight = Stage.height;
        } else if (obj.length == 2) {
        var maxWidth = obj[0];
        var maxHeight = obj[1];
    } else {
        if (typeof (obj) == "movieclip") {
            var someClip = obj;
            var maxWidth = someClip._width;
            var maxHeight = someClip._height;
        } else {
            var maxWidth = this._width;
            var maxHeight = this._height;
        }
    }
    var ratioW2H:Number = this._width/this._height;
    var ratioH2W:Number = this._height/this._width;
    var adjW_ws:Number = maxWidth;
    var adjH_ws:Number = ratioH2W*adjW_ws;
    var area_ws:Number = (adjH_ws<maxHeight) ? adjH_ws*adjW_ws : 0;
    var adjH_hs:Number = maxHeight;
    var adjW_hs:Number = ratioW2H*adjH_hs;
    var area_hs:Number = (adjW_hs<maxWidth) ? adjW_hs*adjH_hs : 0;
    if (area_ws>area_hs) {
        this._width = maxWidth;
        this._height = adjH_ws;
    } else {
        this._height = maxHeight;
        this._width = adjW_hs;
    }
};


These are the functions that just get the info without transforming the clip:

ActionScript Code:
MovieClip.prototype.findCenterIn=function(obj:Object):Array {
this.duplicateMovieClip(this._name+"temp",this.getNextHighestDepth(),{_visible:false});
    var temp=this._parent[this._name+"temp"];
    temp.centerIn(obj);
    var reslt:Array = new Array(temp._x, temp._y);
    temp.swapDepths(999);
    temp.removeMovieClip();
    return (reslt);
}
MovieClip.prototype.findFitIn=function (obj:Object):Array {
    var temp=this._parent[this._name+"temp"];
    temp.fitIn(obj);
    var reslt:Array = new Array(temp._width, temp._height);
    temp.swapDepths(999);
    temp.removeMovieClip();
    return (reslt);
}

As you can see these last two are basically the same function.

So what I am asking is how to make this work:

ActionScript Code:
MovieClip.prototype.findResults(someFunc:Function, obj:Object):Array {
var temp=this._parent[this._name+"temp"];
    // here's the problem:
  temp.call(someFunc(obj));
//????
    var reslt:Array = new Array(temp._width, temp._height, temp._x, emp._y);
    temp.swapDepths(999);
    temp.removeMovieClip();
    return (reslt);
}


Sorry for the ridiculously long post. Thanks for any help or advice you can give.

Jase

Ease In Ease Out
Hi I am new to actionscript.

I want a draggable object to move from anywhere in the movieclip to say position 92,92 when I click a button. I want it to ease in and out. Is that possible simply?

Thanks

Ease
What's the use of ease?

P;ease Help
Hi all,

Please could you help me out here. I have created an application using Flash MX2004. When I publish the file I get the following repeated error:

'ActionScript 2.0 class scripts may only define class or interface constructs.'

This error appears in response to code such as:
_global.session = new Object();
loginArea = new NetConnection();
enterRoom = function();
etc...

I would be very grateful if you could help me out here.

Kevin.

Ease In Or Out More?
in motion and shape tweening, how do i get it to ease in or out more than 100 or -100??? (just curious)

thanx
austin condiff

Ease The Other Way
Hi all

I use the following functions to resize certain mc which has an easing effect. However I would like to reverse the easing effect so that rather than the motion going fast to slow it would be slow to fast just like the ease in ease out transitions. Has anyone got any ideas???

code:
function resizeMe() {
this._width += (this.targetW-this._width)/this.ease;
this._height += (this.targetH-this._height)-this.ease;
if (Math.round(this._width) == this.targetW && Math.round(this._height) == this.targetH) {
this._width = this.targetW;
this._height = this.targetH;
delete this.onEnterFrame;
}
}

function setResize(width, height, ease) {
this.targetW = width;
this.targetH = height;
this.ease = ease;
this.onEnterFrame = resizeMe;
}


EDIT: Added [ as ] tags - jbum

Ease In Not Out
Hi people,
I'm using the following code ina onenterframe function to move a mc to a set positon.
_y+=(targety-_y)/speed;

My problem is that this eases out.
I need it to ease in.

I'm sure its a basic change to this line of code, if anyone can help that would be very cool.
Thanks,
Dave

Using AS To Ease In Then Out?
Hi everyone.

I am new at AS and am working on a movie where when I click a link the menu will go left and a window will go right. The first open always works fine its when I click another link and I want it to close then open again both easing in and out. The problem is that when I click the link it will barly move. If I take out one or the other then it works fine.

It seems like its doing the last part just skipping over the first part.

Thanks for your time.

function orb_tween() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 400;
var end = 165;
var time = .9;
var mc = interface_mc.orb_mc;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 165;
var end = 400;
var time = .9;
var mc = interface_mc.orb_mc;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}

Just Need To Add The Ease
hi all...i've been trying to add some easing to this effect. All it is, is a box that is larger than the stage...move the mouse left, right, up, or down , and the box will move opposite only to where it's edges meet the stage....ok, but right now it lacks that easing fluidity (is that a word?)

This code executes using a mouse listener (onMouseMove)...any ideas?

Code:

cx = Stage.width/2;
cy = Stage.height/2;
bx = box._width/2-cx;
by = box._height/2-cy;
bSize = box._x+box._width;
r = bSize/Stage.width;

function pan() {
if (moving) {
box.onEnterFrame = function() {

box._x = (cx-_xmouse)-bx;
box._y = (cy-_ymouse)-by;
};
}
}

[CS3].psd's With Ease?
I'm currently reading David Morris' Visual QuickProject (Creating a Web Site with Flash CS3 Professional) and I have yet to see a section that allows .psd imports. He had a section for .ai imports and I attempted to do it this way but the outcome wasn't as I wished, is there another way.

It might be the case that .psd files aren't suppose to be imported for Flash use but when I download Flash files, they all have .psd files so what is the best technique when doing so.

Thanks!

Get Rid Of The Ease
hi
i have a problem with loop situation
i need to do an animation of a car driving on a road and the buildings go forward against the car and doing a loop back to simulat a moving road.
but the problem is that the buildings animate like there is an "ease"
and there isnt. anytime i try to do this animation
(multiply the buildings, Gruop tham together and in the next keyframe enlarge
them and moving them forward) i get the "ease" effect again,
what can i do to get rid of it?

the file is attached.

How To Put In Ease?
Ok I have this peice of code


Code:
onEnterFrame = function () {
var speed = 1;
var alpha = math.round(_root.man._alpha);
_root.man._alpha -= speed;
_root.box = math.round(_root.man._alpha);
if (_root.man._alpha<0) {
delete this.onEnterFrame;
}
};
How can I make the man fade out with ease just by adding some more actionscript to that code?

Ease Out, Not In?
I know how to easeIn a movieClips property using something like:
this._x+=(Xvalue-this._x)/5 so it gradually slows down.
But what would I use to make it start slow then speed up?
I am guessing something like:

ActionScript Code:
var speed =20this.onEnterframe=function(){  this._x+=(Xvalue-this._x)/speedspeed--if(Math.abs(Xvalue-this._x)<1{ this._x=Xvaluespeed=20delete this.onEnterFrame}}


But trying this on multiple mcs and it goes wack because speed is constantly changing. How can I declare the speed var for each onEnterFrame?
Or if you now of a better way, please enlighten me

Josh

Ease
can someone explain the Ease propertie for frames (w/tweens)?
how does it affect the anination and when does it come in useful?

thx

How Do I Ease Using AS2?
How do I ease using AS2?

heres my code


ActionScript Code:
onClipEvent (load) {
        this._y = 53;
}
onClipEvent (enterFrame) {
        if (this._y<238) {
        this._y = this._y+5;
    }
}

Changing Xs And Ys With Ease
What i'm trying to figure out is how to have a symbol go from it's current position to a new set of coordinates via scripting. that's not a very good explanation, so take a look at this: http://www.geocities.com/yopporai/vatsindex.html . The card picture is blown up, and differnt parts as used for the sections. What i want is for the picture to go to the specified coordinates when the button is pressed, but have the picture acctually move (as if there were a motion tween).

I know this is probably pretty basic stuff, but i'm pretty knew to the scripting aspect of flash. If anyone can help, or give me a shove in the right direction, i'd greatly appreciate it.

Cheers,
James

Please Give Out A Ease Help
it's a very small file main in actionscript, please give a hand.
i have put the file below:
source file:
http://www.it18.net/public/prototype-1.fla
distribution file:
http://www.it18.net/public/prototype-1.swf

Ease In Mask
hi

I'm want to ease in a image in on a _x axis!!
Kind of like a loading bar with the fill easing to the to the end.
. . . .using actionscript if possible.

if this makes any sense to you (proberly not)
could you point me in the right direction.

cheers

Paul

Ease To Center
Can someone help with my script? I'm a classic deconstructor and have been very slow getting up to speed with action script (programming is not my thing).

I'm trying to get my dragger(mc) to ease over and lock centered under a button once I click on it. Also, it would be great if I could get the over state of the button to remain once clicked.

Ease In And Fade Out
Hello,
I have managed to put this script together from tutorials.


onClipEvent(load){
_y=300;
_alpha=0;

destination=130;
finshedalpha=100;

}
onClipEvent(enterFrame){
_y+=(destination-_y)/15;
_alpha+=(finshedalpha-_alpha)/20;
}


It does exactly what I want by easing my movie clip onto the stage at the same time as fading it up.

Now I need it to fade out again (without changing position) and then go to another frame.

Any help appreciated

Simulate Ease In And Out
Hi,

I just wrote a nifty little script that simulates easing in and out on an object. This comes in handy if you have a project that has tight file size requirements. It's my goal to never use tweening again...

http://www.level2interactive.com/ex

enjoy

ps-PINEAPPLE CREW IN THA HIZZY FO SKIZZY!!!

Scale With Ease
Hi there..

I try to get a botton in my menu to control a movecliip with scale
but how can i make it ease / control the speed

hope someone can help

:-)

Regards
Flemming

Tween Ease
is there a way to put an ease on a motion tween for movement...

Ease On Command
how would I get
code:
onClipEvent (load) {
speed = 8;

// declare a function for easing, so
// we can turn it off and reuse it

myEase = function()
{
// keep track of distance to target
var dx = endX - _x;
var dy = endY - _y;

// if distance within 1/2 a pixel
if (Math.abs(dx) < .5 && Math.abs(dy) < .5) {
// go all the way
_x = endX;
_y = endY;
// and stop calling this function
onEnterFrame = undefined;
_parent.play()
}
else {
// otherwise, do the Zeno thing
_x += dx/speed;
_y += dy/speed;
}
}

}

onClipEvent (enterFrame) {
endX=somevar??maybe? <------<<<<<<<
onEnterFrame = myEase;

}


to go to say endX = -750 when a button is preessed.

Ease Mc To A Postion
Hi,

anyone know how to ease a mc to a xy cordinate, but without using a onenterframe function..



many thanks,
Gareth.

How To Ease The Code
onClipEvent (enterFrame) {
onRollOver = function () { go = true;};
onRollOut= function () { go = false;};
// if the bottom of the picture is beyond the frames border, allow it to move down
if (this._parent.picture._y-(this._parent.picture._height/2)<this._parent.frame._y-(this._parent.frame._height/2) and go == true) {
this._parent.picture._y += 5;
}
}

How To Ease The Code
onClipEvent (enterFrame) {
onRollOver = function () { go = true;};
onRollOut= function () { go = false;};
// if the bottom of the picture is beyond the frames border, allow it to move down
if (this._parent.picture._y-(this._parent.picture._height/2)<this._parent.frame._y-(this._parent.frame._height/2) and go == true) {
this._parent.picture._y += 5;
}
}

Ease On Mousemove?
peepz,

i've got this script to move a arrow in the direction of the mouse with a delay, but i want to have some easing on it:


Code:
onClipEvent (load) {

delay = 80;

xtarget = new Array (7)
ytarget = new Array (7)
xtarget.push(_x)
ytarget.push(_y)
}
onClipEvent (mouseMove) {
xtarget[xtarget.length] = _x
ytarget[ytarget.length] = _y
x=xtarget.shift()
y=ytarget.shift()
_rotation=(Math.atan2(y-_y,x-_x)/Math.PI)*180

x = this._x
y = this._y
_x=((this._parent._xmouse-x)/delay)+x
_y=((this._parent._ymouse-y)/delay)+y
}
can somebody tweak it up so it eases out ?

Ease The Bloat
Hi,

Got about 20 buttons with identical code (apart from button instance name and url of the xml file).

Rather than cutting and pasting this same code for each button, is there a cunning way workaround? Can see that you could iterate the instance names with a for loop, but what about the urls?



Code:
slip_MC.menu_bt1.onRelease = function () {
clearthumbs_fn();
xmlData.load("xmlfiles/accessories.xml");
p = 0;
slip_MC.dragger_MC._x = 0;
}
Thanks

Scale With Ease
Hi all


Can someone help me to get this to scale to 100% smoth with some ease

Pleaseeee :-)

Its a loaded jpg in a container scaleddown to 38% an on a release
I vant it to scale and move:


on (release) {Foto.fotoconA._xscale=100; Foto.fotoconA._yscale=100;
Foto._x = 0 ; Foto._y = 0 ;}

Rotation With Ease
I'm trying to rotate an object to it's upright position... that has randomly been placed on screen. I'm using this on my button;
onEnterFrame = function () {
if (_rotation<=0) {
this._rotation++*.5;
}
if (_rotation>=0) {
this._rotation--*.5;
}
};

This works, however.. it's too slow and I want to add easing.

Then, when I click on it again, I would love for it to go back to it's original position. Any suggestions?
Thanks

How Do I Ease This Coffee Cup?
I have got a coffee cup that rotates with the mouse movement.
There are 2 movie clips on the stage, a "scripts" movie clip, with the code in it, and the coffee cup movie clip.
I want it so the cup will ease, when the mouse is moved. Following is the code i used on the scripts movie clip? Anyone? Any Ideas?

onClipEvent (mouseMove) {
x = this._xmouse;
y = this._ymouse*-1;
angle = Math.atan(y/x)/(Math.PI/180);
if (x<0) {
angle += 180;
}
if (x>=0 && y<0) {
angle += 360;
}
_root.angletext = angle;
_root.arrow._rotation = angle*-1;
updateAfterEvent();
}

Thanks in Advance

Use One Button/mc To Ease Another
Okay, so i've looked and looked and I havent been able to find anything I can understand to help with this problem. I know how to ease a movie clip to the position of my mouse coordinates. What I want to do is use a movieclip that - when clicked- will ease two OTHER movieclips into fixed coordinates.

The movie clips only need to move on the Y axis, but since i have been trying so hard to understand this, getting help for x and y coordinates would be cool. I'm attaching a file with no code in it, but its for visuals. I want the pressed movie clip to move the color blocks down/up according to coordinates I enter into the AS. Can ANYONE help? btw, i'm using Flash 8

Drag With Ease
Hey i'm looking to drag a object horizontally only (like a scroll bar but have it end with ease. So orignally I was thinking a scroll bar and moding the actualy bar to be the object but I can't find a bar that has ease just the content. Any suggestions?

'ease' My Pain
I'm using the onMouseWheel function to scroll the content which is all held in 'clip_mc' on my page. BUT, I'd also like to have this content easing out of it's motion if that's at all possible.

Is there anything that can be added to the following or to clip_mc to do this?


Code:
mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
clip_mc._y += delta;
}
Mouse.addListener(mouseListener);


I've searched forum after forum and only found one thing similar over at kirupa.com, but it deals with rotation. I can't fathom how to get it working on the _y axis. Any help or heads up on where to look would be greatly appreciated.

Thanks in advance. :]

[F8] Rotate With Ease
hayelp!!

i'm trying to create a circular menu whereby when you click on a segment of the circle, it rotates to a certain position. Ideally I'd like there to be easing on the movement too, but that's not essential.

At the moment all i can get it to do is just suddenly rotate to a set position, rather than moving there.

Any help would be mightily appreciated.

Thanks in advance
enomen

[F8] Ease Out 100 W/ Actionscript
hi,
I've got an object that I'm moving with onEnterFrame whose starting and ending coordinates I know. I'm trying to imitate an ease out 100 with actionscript. Does anyone know enough about how Flash computes timeline tween eases to tell me how to imitate it?

I WOULD use the method where you halve the distance between the object and its destination on each frame, but since you never reach there, and there's a predetermined number of frames the object needs to reach its destination in (and this predetermined number of frames is variable), that's not the best method for me

[F8] Ease In Code
Here's the code for ease out:

Code:
speed = 5;
mc.onEnterFrame = function() {
xTarget = 500;
xDistance = xTarget-this._x;
this._x += xDistance/speed;
};

What is the code for ease in?

[F8] How To Scale & Ease A MC
Hi guys,

I'm trying to get a MC to resize & ease on rollover using actionscript rather than tweening.

I've got the following code on the MC:

on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}

on (rollOut){
this._xscale = 100;
this._yscale = 100;
}

which scales the MC on rollover but I want to add easing to make it smoother.

Any suggestions?
Cheers.

Looking For Ease-scrollbar
Hello buddies.

I'm trying to find a ready content scroller
with ease movement + up/down buttons + mouse scrolling enabled + bar dragging enabled

I think I searched every possible flash site and just
can't find one.

If anyone can help I'll be grateful.

Thanks.
Elad.

Tween + Ease Help Please
Hi gang
I was able to gather the following script from various sources online... Basically what this does is calls some images from an XML file and fades them in and fades them out randomly.

However, I would like the effect to cross-fade the images rather than fade them out before fading another in... That way there isn't a white space in between images...

Could anyone help?


Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

pauseTime = 2000;

xmlImages = new XML();
xmlImages.ignoreWhite = true;
xmlImages.onLoad = loadImages;
xmlImages.load("flash/images.xml");

function loadImages(loaded) {
if (loaded) {
xmlFirstChild = this.firstChild;
imageFileName = [];
totalImages = xmlFirstChild.childNodes[0].childNodes.length;
for (i=0; i<totalImages; i++) {
imageFileName[i] = xmlFirstChild.childNodes[0].childNodes[i].attributes.title;
}
randomImage();
}
}
function randomImage() {
if (loaded == filesize) {
var ran = Math.round(Math.random() * (totalImages - 1));
picture_mc._alpha = 0; // Start image clip as invisible
picture_mc.loadMovie(imageFileName[ran], 1); //Load random image from xml
var pictureTweenIn:Tween = new Tween (picture_mc,"_alpha",Normal.easeIn,0,100,1,true); // Use the Tween class to ease in the alpha from 0 to 100 over 1 seconds
pictureTweenIn.onMotionFinished = function () { // When done fading
_root.pause(); // Start pause() function
}
}
}
function pause() {
myInterval = setInterval(pause_slideshow, pauseTime);
function pause_slideshow() {
clearInterval(myInterval);
var pictureTweenOut:Tween = new Tween (picture_mc,"_alpha",Normal.easeOut,100,0,1,true); // After pause, start fade out
pictureTweenOut.onMotionFinished = function () { // Once faded out
_root.randomImage(); // Call next randomImage()
}
}
}

Please Help Me Ease This Into Place
I'm trying to make this newsslider ease into place, when the user releases the slide btns, but I never did any easing, so I have no idea how to do it.

The slider is here: http://www.plusidentity.dk/TEST/news_slider.fla (MX2004)

Plaese help me out here... completely lost!

FLV Pause With Ease Out... Is It Possible?
Hey everyone.

Is there any way to "ease out" and pause a playing FLV video? I need to be able to stop the video at any time of the playback, and do so with a nice smooth "slowdown" instead of the sudden stop the pause() function does. Is it possible, or am I trying to do too much here?

Thanks!

Movement Ease
i have recently just had help with a script that i posted on the main forum now its compleat and it works but now i want to add an effect of ease to the movement ( so it starts of slow then gains full speed) does anyone know how to do this

the code i am using is here

Code:
onClipEvent (keyDown) {
speed = 5;
moveX = speed*Math.cos(_rotation*Math.PI/180);
moveY = speed*Math.sin(_rotation*Math.PI/180);
if (Key.getCode() == Key.UP) {
this._x -= this.moveX;
this._y -= this.moveY;
} else if (Key.getCode() == Key.DOWN) {
this._x += this.moveX;
this._y += this.moveY;
} else if (Key.getCode() == Key.LEFT) {
this._rotation -= 3;
} else if (Key.getCode() == Key.RIGHT) {
this._rotation += 3;
}
}
can anyone help?

Motion Ease
Hello all.

If you take a look at this weblink:

http://statistics.emp-oxford.co.uk/flowline/gully/

If you look at the picture gallery. you can scroll the images along using the buttons but what i have been trying to do is create a motion easing in effect when someone clicks on the buttons can someone help me with this?

thanks mike.

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