Re: [Flashcoders] Coding a circular preloader

2007-08-07 Thread Omar Fouad
();

 circle_holder._x = (W1);
 circle_holder._y = (H1)- circle_top.radius;
 }
 circle_draw ( circle_top );
 circle_draw ( circle_bottom );

 onMouseMove = adjust_view;
 onResize();
 setPer ( 0 );
 }

 INIT();





 _

 Jesse Graupmann
 www.jessegraupmann.com
 www.justgooddesign.com/blog/
 _

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jesse
 Graupmann
 Sent: Monday, August 06, 2007 4:24 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Coding a circular preloader


 Using the arc prototype ( AS 1/2 ) from formequalsfunction draw methods;
 http://www.formequalsfunction.com/downloads/drawmethods.html and Tweener (
 AS 2 ) from http://code.google.com/p/tweener/ I put together a simple
 tween
 version of the circle.

 Assuming you have Tweener in the same directory, you can copy and paste
 this
 example.

 - JG



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad
 Sent: Monday, August 06, 2007 2:09 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Coding a circular preloader

 Hahaha Steven :D that was a good one ;). Thanks david.. but I don't have
 it.. i'll try to convince my boss. But i would like to know the same how
 that could be achieved like in the website.

 --
 Omar M. Fouad

 ___
 Flashcoders@chattyfig.figleaf.com
 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




-- 
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.
___
Flashcoders@chattyfig.figleaf.com
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


[Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Folks i was just wondering how to create a circular preloader with
actionscript. I thought about drawing many wedges increasing each time the
angle accodring the percentage loaded, but how can i include an easing
effect to this rotating motion?

Regards

-- 
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.
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Ivan Dembicki
Hello Omar,

try this:
http://proto.layer51.com/d.aspx?f=388


-- 
iv
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Woah!!! too complicated...

On 8/6/07, Ivan Dembicki [EMAIL PROTECTED] wrote:

 Hello Omar,

 try this:
 http://proto.layer51.com/d.aspx?f=388


 --
 iv
 ___
 Flashcoders@chattyfig.figleaf.com
 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




-- 
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.
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
that example is not working.,.

On 8/6/07, Omar Fouad [EMAIL PROTECTED] wrote:

 Woah!!! too complicated...

 On 8/6/07, Ivan Dembicki [EMAIL PROTECTED] wrote:
 
  Hello Omar,
 
  try this:
  http://proto.layer51.com/d.aspx?f=388
 
 
  --
  iv
  ___
  Flashcoders@chattyfig.figleaf.com
  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
 



 --
 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.




-- 
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.
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Ivan Dembicki
Hello Omar,

possible... it's very old example.
try at this:

function drawSegment(target, rx, ry, x, y, sgm, s1, s2) {
var rad = Math.PI/180;
if (!s1 and !s2 or s1 == s2) {
var grad = 360;
var segm = grad/sgm;
var x1 = rx+x;
var y1 = y;
target.moveTo(x1, y1);
} else {
s1s2 ? s1 -= 360 : ;
var x1 = rx*Math.cos(s1*rad)+x;
var y1 = ry*Math.sin(s1*rad)+y;
var grad = s2-s1;
var segm = grad/sgm;
target.moveTo(x, y);
target.lineTo(x1, y1);
}
for (var s = segm+s1; s(grad+.1+s1); s += segm) {
var x2 = rx*Math.cos((s-segm/2)*rad)+x;
var y2 = ry*Math.sin((s-segm/2)*rad)+y;
var x3 = rx*Math.cos(s*rad)+x;
var y3 = ry*Math.sin(s*rad)+y;
// begin tnx 2 Robert Penner
var cx = 2*x2-.5*(x1+x3);
var cy = 2*y2-.5*(y1+y3);
target.curveTo(cx, cy, x3, y3);
// end tnx 2 Robert Penner :)
x1 = x3;
y1 = y3;
}
if (grad != 360) {
target.lineTo(x, y);
}
};


_root.onEnterFrame = function() {
_root.clear();
_root.lineStyle(0);
_root.beginFill(0xFF);
a= a||0
b=b||0
a=360 ? a -= 360 : a += 2;
b=360 ? b -= 360 : b += 3;
drawSegment(_root, 150, 100, 200, 250, 8, a, b);
_root.endFill();
_root.lineStyle(0);
_root.beginFill(0xFF00FF);
drawSegment(_root, 150, 100, 200, 200, 8, a, b);
_root.endFill();
};



-- 
iv
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
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.
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Palmer, Jim

Just another bit of actionscript butchery here for a circular preloader that I 
use all over the place in my apps and pages...

http://www.overset.com/2006/09/27/flash-wait-animation-ie-browser-throbber/

--
Jim Palmer ! Mammoth Web Operations

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Omar
 Fouad
 Sent: Monday, August 06, 2007 2:24 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Coding a circular preloader
 
 
 Folks i was just wondering how to create a circular preloader with
 actionscript. I thought about drawing many wedges increasing 
 each time the
 angle accodring the percentage loaded, but how can i include an easing
 effect to this rotating motion?
 
 Regards
 
 -- 
 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.
 ___
 Flashcoders@chattyfig.figleaf.com
 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
 
___
Flashcoders@chattyfig.figleaf.com
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

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Eric Walton
you could try this.

http://www.flashkit.com/movies/Animations/Vector_Animations/People/Dancing_-DrF-11618/index.php



On 8/6/07, Omar Fouad [EMAIL PROTECTED] wrote:

 Folks i was just wondering how to create a circular preloader with
 actionscript. I thought about drawing many wedges increasing each time the
 angle accodring the percentage loaded, but how can i include an easing
 effect to this rotating motion?

 Regards

 --
 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.
 ___
 Flashcoders@chattyfig.figleaf.com
 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




-- 
Eric Walton 9 / Edub9

To view more about
The Artwork of Eric Walton 9 / Edub9
please visit the following:
www.hollywoodfineart.com
www.myspace.com/ericwalton9_edub9
Providentia Marketing LLC
754-246-7620 Cel
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Eric and Palmers thanks so much, i found something interesting here..
http://www.styluscanada.com/

Note the white preloader.. This is what i am talking about exactly...




-- 
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.
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Steven Sacks
I jumped on this thread late, but it seems to me that the best/easiest 
way to accomplish that circular preloader like you saw on that 
photography site is with a 100 frame movieclip that contains a mask that 
goes from frame 1-100 revealing a circle underneath.  It would probably 
take you all of 5 minutes to make.


Sometimes the simplest solution is the best solution.
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
This way no there would be no easing... And ma boss say he wants it with
actionscript *GR^

On 8/6/07, Steven Sacks [EMAIL PROTECTED] wrote:

 I jumped on this thread late, but it seems to me that the best/easiest
 way to accomplish that circular preloader like you saw on that
 photography site is with a 100 frame movieclip that contains a mask that
 goes from frame 1-100 revealing a circle underneath.  It would probably
 take you all of 5 minutes to make.

 Sometimes the simplest solution is the best solution.
 ___
 Flashcoders@chattyfig.figleaf.com
 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




-- 
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.
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Steven Sacks
Easing?  You're showing linear data.  A visual representation of a 
number from 0-100.  I'm not sure how easing fits into this.


Your boss sounds like a real genius because it's absolutely brilliant to 
force somebody to spend many hours building something that could be 
built in 5 minutes - really smart use of time and money.  He should 
write a book on how to be successful in business.

___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread David Ngo
Uh, you could implement easing but I'm of the same opinion as Steve here
where it wouldn't make any sense to kill an ant with a sledgehammer. At any
rate, the easing would be based off a timer instead of frames. Pseudo code
AS2 using the Tween class would be:



var interval:Number = setInterval(this, 'showProgress', 100);

function showProgress():Void
{
new Tween(scope, 'property', Easetype, currentVal, newVal, 0.1,
true);
}


You could change the interval and have the Tween's seconds be either equal
to or less than the interval.

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
Sent: Monday, August 06, 2007 2:38 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Coding a circular preloader

Easing?  You're showing linear data.  A visual representation of a 
number from 0-100.  I'm not sure how easing fits into this.

Your boss sounds like a real genius because it's absolutely brilliant to 
force somebody to spend many hours building something that could be 
built in 5 minutes - really smart use of time and money.  He should 
write a book on how to be successful in business.
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Hahaha Steven :D that was a good one ;). Thanks david.. but I don't have
it.. i'll try to convince my boss. But i would like to know the same how
that could be achieved like in the website.

-- 
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.
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread David Ngo
I'm not sure what you mean. What don't you have? The pseudo code I posted is
fairly easy to implement. If you're using the drawing API to render your
circle or partial circle, just tap into the Tween class' onMotionChanged
event to update your vector shape.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad
Sent: Monday, August 06, 2007 5:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Coding a circular preloader

Hahaha Steven :D that was a good one ;). Thanks david.. but I don't have
it.. i'll try to convince my boss. But i would like to know the same how
that could be achieved like in the website.

-- 
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.
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Jesse Graupmann
 ) 
{
bottom_obj.x = X;
bottom_obj.y = Y;
circle_draw ( bottom_obj );
}
}
}

//
//  CREATE
//

import caurina.transitions.Tweener
import flash.filters.GlowFilter;

function INIT ()
{
INIT_create ( );
INIT_stage ( ); 
INIT_glow ( );
INIT_tween ( );
onMouseDown = INIT; // resets on mouse press
}

function INIT_stage ()
{
Stage.scaleMode = 'noScale';
Stage.align = 'TL';
Stage.addListener( this );
bg = this.createEmptyMovieClip(bg, 1);
onResize = function()
{
var W = Stage.width;
var H = Stage.height;
bg.clear();
bg.beginFill(0x33, 100);
bg.moveTo(0, 0);
bg.lineTo(W, 0);
bg.lineTo(W, H);
bg.lineTo(0, H);
bg.lineTo(0, 0);
bg.endFill();
updateCircle ( circle_obj, obj_base );
}
onResize();
}

function INIT_create ()
{   
// top
circle_obj = {
mc: this.createEmptyMovieClip( mc, 30 ),
x:0,
y:0,
radius:50,
arc: 0,
startAngle: 90,
yRadius:50,
lineStyle: [ 15, 0xFF, 100 ],
fillStyle: [ ]
};

// bottom
obj_base = {
mc: this.createEmptyMovieClip( mc2, 20  ),
arc: 360,
x: circle_obj.x,
y: circle_obj.y,
radius: circle_obj.radius,
startAngle: circle_obj.startAngle,
yRadius: circle_obj.yRadius,
lineStyle: [ 13, 0xFF, 20 ],
fillStyle: circle_obj.fillStyle
};  

// draw base
circle_draw ( obj_base );


}

function INIT_glow ()
{
// add top glow
var color:Number = 0xFF;
var alpha:Number = .8;
var blurX:Number = 15;
var blurY:Number = 15;
var strength:Number = 2;
var quality:Number = 3;
var inner:Boolean = false;
var knockout:Boolean = false;
var glow_filter:GlowFilter = new GlowFilter(color, 
alpha, 
blurX, 
blurY, 
strength, 
quality, 
inner, 
knockout);
circle_obj.mc.filters = [ glow_filter ];
}

function INIT_tween ( )
{
// tween top - alpha
circle_obj.mc._alpha = 0;
Tweener.addTween ( circle_obj.mc, {
  _alpha:100,
  time:1,
  delay:.5,
  transition:'easeOutCubic'


})

// tween top - arc
Tweener.addTween ( circle_obj, {
arc:-360,
time:4,
delay:.2,
transition:'easeInOutCubic',
onUpdate: mx.utils.Delegate.create ( this, updateCircle ),
onUpdateParams:[ circle_obj ]
});
}

// starts draw and tween
INIT(); 



_

Jesse Graupmann
www.jessegraupmann.com 
www.justgooddesign.com/blog/ 
_



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad
Sent: Monday, August 06, 2007 2:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Coding a circular preloader

Hahaha Steven :D that was a good one ;). Thanks david.. but I don't have
it.. i'll try to convince my boss. But i would like to know the same how
that could be achieved like in the website.

-- 
Omar M. Fouad

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Muzak

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, August 06, 2007 8:38 PM
Subject: Re: [Flashcoders] Coding a circular preloader


 Easing?  You're showing linear data.  A visual representation of a number 
 from 0-100.  I'm not sure how easing fits into this.

 Your boss sounds like a real genius because it's absolutely brilliant to 
 force somebody to spend many hours building something 
 that could be built in 5 minutes - really smart use of time and money.  He 
 should write a book on how to be successful in 
 business.

+10 ;-)

when I visited the site mentioned I didn't see any easing at all (I'm on a 
20mbit conn).



___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Jesse Graupmann
 );

onMouseMove = adjust_view;
onResize();
setPer ( 0 );
}

INIT();





_

Jesse Graupmann
www.jessegraupmann.com  
www.justgooddesign.com/blog/   
_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jesse
Graupmann
Sent: Monday, August 06, 2007 4:24 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Coding a circular preloader


Using the arc prototype ( AS 1/2 ) from formequalsfunction draw methods;
http://www.formequalsfunction.com/downloads/drawmethods.html and Tweener (
AS 2 ) from http://code.google.com/p/tweener/ I put together a simple tween
version of the circle.

Assuming you have Tweener in the same directory, you can copy and paste this
example.

- JG



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad
Sent: Monday, August 06, 2007 2:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Coding a circular preloader

Hahaha Steven :D that was a good one ;). Thanks david.. but I don't have
it.. i'll try to convince my boss. But i would like to know the same how
that could be achieved like in the website.

-- 
Omar M. Fouad

___
Flashcoders@chattyfig.figleaf.com
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