ok i got something better and faster.
I downloaded some methods from
http://www.adobe.com/devnet/flash/articles/adv_draw_methods.html.
in this library there is an .as file wich lets u draw wedges easily (
drawWedges.as) but infortunately it doesnt support easing yet..
I am trying to add an easeOut effect to it, and i tried this way....
#include "drawWedge.as"
d_mc = _root.createEmptyMovieClip("drawing_layer",1);
angle=0
function wedge() {
this.onEnterFrame = function () {
newAngle = angle++
d_mc.clear();
d_mc.beginFill(0xFF0067, 100);
d_mc.drawWedge(200, 200, 90, newAngle, 100);
d_mc.endFill();
if(newAngle >=100) {
delete this.onEnterFrame;
}
}
};
wedge();
this way the wedge grows until the angle reaches 100. how can I add a
simple easing equation to this?
I always used mcTween and for some loadbar preloader i used to ease the
loadbar by adding
loadBar._xscale +=percent - loadBar._xscale/3; /// this way the loadBar
tweens with an easeOut Effect..
I tried to apply the same principle to the wedge but without results..
Any ideas?
--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com