Re: [Flashcoders] Coding a circular preloader
txt.wordWrap = false; > txt_fmt = new TextFormat(); > txt_fmt.color = 0xFF; > > > // stage > Stage.scaleMode = 'noScale'; > Stage.align = 'TL'; > Stage.addListener( this ); > bg = this.createEmptyMovieClip("bg", 10 ); > 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(); > > circle_holder._x = (W>>1); > circle_holder._y = (H>>1)- 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
RE: [Flashcoders] Coding a circular preloader
Another version using _xmouse to get a Stage.width factor so you can see easing via onMouseMove. Nothing extra needed in this example - just copy/paste. - JG function drawArc ( mc, x, y, radius, arc, startAngle, yRadius) { // http://www.formequalsfunction.com/downloads/drawmethods.html if (arguments.length<5) return; if (yRadius == undefined) yRadius = radius; var segAngle, theta, angle, angleMid, segs, ax, ay, bx, by, cx, cy; if (Math.abs(arc)>360) arc = 360; segs = Math.ceil(Math.abs(arc)/45); segAngle = arc/segs; theta = -(segAngle/180)*Math.PI; angle = -(startAngle/180)*Math.PI; ax = x-Math.cos(angle)*radius; ay = y-Math.sin(angle)*yRadius; if (segs>0) { for (var i = 0; i>1)); txt._y = Math.round(circle_holder._y + (circle_top.radius*2) + circle_top.lineStyle[0]); } // // ADJUST TO NEW PERCENTAGE // function adjust_view () { // per var margin = 20; var per = Math.max( 0 , Math.min ( 1, (this._xmouse - margin) / (Stage.width-(margin*2; var new_arc = Math.round( -360 * per ); // update if ( new_arc != dest_arc ) { dest_arc = new_arc; circle_holder.onEnterFrame = function() { cur_arc += (dest_arc - cur_arc) * .1 ; circle_top.arc = cur_arc; circle_draw ( circle_top ); // circle setPer ( Math.round(Math.abs(circle_top.arc)/360*100) ); // txt if ( cur_arc == dest_arc ) delete circle_holder.onEnterFrame; } } } // // CREATE // function INIT() { // circle circle_holder = this.createEmptyMovieClip( "circle_holder", 20 ); cur_arc = 0; dest_arc = 0; // top circle circle_top = { mc: circle_holder.createEmptyMovieClip( "mc", 40 ), x:0, y:0, radius:50, arc: 0, startAngle: 90, yRadius: 50, lineStyle: [ 15, 0xFF, 100 ], fillStyle: [ ] }; // add top glow circle_top.mc.filters = [ new flash.filters.GlowFilter(0xFF, .8, 15, 15, 2, 3, false, false ) ]; // bottom circle circle_bottom = { mc: circle_holder.createEmptyMovieClip( "mc2", 30 ), arc: 360, x: circle_top.x, y: circle_top.y, radius: circle_top.radius, startAngle: circle_top.startAngle, yRadius: circle_top.yRadius, lineStyle: [ 13, 0xFF, 20 ], fillStyle: circle_top.fillStyle }; // txt txt = this.createTextField("txt", 100, 100, 100, 300, 100); txt.multiline = false; txt.autoSize= true; txt.wordWrap = false; txt_fmt = new TextFormat(); txt_fmt.color = 0xFF; // stage Stage.scaleMode = 'noScale'; Stage.align = 'TL'; Stage.addListener( this ); bg = this.createEmptyMovieClip("bg", 10 ); 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(); circle_holder._x = (W>>1); circle_holder._y = (H>>1)- 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, Aug
Re: [Flashcoders] Coding a circular preloader
- Original Message - From: "Steven Sacks" <[EMAIL PROTECTED]> To: 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
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
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
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
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
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
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
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
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
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
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
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
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 { s1>s2 ? 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
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
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
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
[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