RE: [Flashcoders] Get the average of 2 colors
Thanks Janis...works great. Will take a closer look later. Kindly Joakim Carlgren -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: den 10 mars 2006 15:17 To: Flashcoders mailing list Subject: Re: [Flashcoders] Get the average of 2 colors Get my ColorTween class at www.mediaverk.lv/asd/com/jR/Math/ColorTween.as Then do the simple thing: import com.jR.Math.ColorTween; var midColor:Number = new ColorTween([0xFF, 0xFF]).getPoint(255/2); trace("0x"+midColor.toString(16)) 2006/3/10, Joakim Carlgren <[EMAIL PROTECTED]>: > > Whats the easiest way to calculate the average of two colors? > > > > > > varcolor1:Number = 0xFF > > varcolor2:Number = 0xFF > > > > varmyColor:Color = new Color(my_mc) > > myColor.setRGB((color1 + color2) / 2) > > I know its not this simple and probably I need to play with bitwise > operators.. > > Any easy way to solve this? > > > > Joakim Carlgren > > > > > > ___ > 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 ___ 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] Get the average of 2 colors
Whats the easiest way to calculate the average of two colors? varcolor1:Number = 0xFF varcolor2:Number = 0xFF varmyColor:Color = new Color(my_mc) myColor.setRGB((color1 + color2) / 2) I know its not this simple and probably I need to play with bitwise operators.. Any easy way to solve this? Joakim Carlgren ___ 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] Flash 8 statistics
Ah. Missed that one. Thanks a lot. // j -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell Sent: den 13 januari 2006 16:37 To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash 8 statistics Joakim Carlgren wrote: > Are there any statistics on flash player 8. Info from last week still holds: http://chattyfig.figleaf.com/pipermail/flashcoders/2006-January/157236.h tml Summary: Macromedia Flash Player 8 was released Sept05... first NPD/MediaMetrix audit took place mid-December... results should be posted very soon (at the latest, at the Jan31 analyst meeting)... FP8 adoption rate, from preliminary numbers, is even faster than previous versions, explosive. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash 8 statistics
Are there any statistics on flash player 8. I haven't seen any stats on macromedias site but I read somewhere that "The Flash 8 audience is now growing by five million people a day." Does anyone know anything about this? Source: http://www.dmxzone.com/ShowDetail.asp?NewsId=11107 Kindly Joakim Carlgren ......... Joakim Carlgren Fröding Flash Developer Framfab Sverige AB Lilla Bommen 1 SE-411 04 Gothenburg SWEDEN E-mail: [EMAIL PROTECTED] Direct: +46 31 760 05 15 Mobile: +46 709 73 79 15 Phone: +46 31 760 00 00 Fax:+46 31 760 05 50 Web:www.framfab.com . ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Movieclip is created at the depth of -16383!
Are you sure that you're not by mistake tracing a movieclip created in authoringtime? // j -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ramon Tayag Sent: den 5 januari 2006 16:36 To: FlashCoders Programming Subject: [Flashcoders] Movieclip is created at the depth of -16383! I need help.. no matter what I do, my movieclip, created using createEmptyMovieClip, is created at -16383. I originally used getNextHighestDepth, then changed it to a constant, like 2, 3.. 40, etc, but the mc, when I trace the depth, is -16383. Help? Thanks, -- Ramon Miguel M. Tayag ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] NetStream - bytesTotal on https outputs wrong value
I wouldn't consider it just a local problem since it occurs to me when I browse to the https adress. Or what exactly do you mean by local, do I misunderstand you? // joakim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fabio Sonnati Sent: den 28 december 2005 13:40 To: Flashcoders mailing list Subject: Re: [Flashcoders] NetStream - bytesTotal on https outputs wrong value yes it happens in local, its a bug - Original Message - From: "Joakim Carlgren" <[EMAIL PROTECTED]> To: Sent: Wednesday, December 28, 2005 1:29 PM Subject: [Flashcoders] NetStream - bytesTotal on https outputs wrong value Hi fellow flashcoders. I'm currently working on a project where our preview area is on an https address. For some reason when I try to access the netstream.bytesTotal property the returned value is the same as the netstream.bytesLoaded (e.g if the bytesLoaded returns 6000 the bytesTotal returns 6000) When I upload my testfile to an http-area I get the correct values from both bytesTotal and bytesLoaded. It's not really important for this project since It's just the preview area that's on a https but It sure would be interesting to find out why this problem appears. // Joakim ..... Joakim Carlgren Fröding Flash Developer Framfab Sverige AB Lilla Bommen 1 SE-411 04 Gothenburg SWEDEN E-mail: [EMAIL PROTECTED] Direct: +46 31 760 05 15 Mobile: +46 709 73 79 15 Phone: +46 31 760 00 00 Fax:+46 31 760 05 50 Web:www.framfab.com . ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] NetStream - bytesTotal on https outputs wrong value
Hi fellow flashcoders. I'm currently working on a project where our preview area is on an https address. For some reason when I try to access the netstream.bytesTotal property the returned value is the same as the netstream.bytesLoaded (e.g if the bytesLoaded returns 6000 the bytesTotal returns 6000) When I upload my testfile to an http-area I get the correct values from both bytesTotal and bytesLoaded. It's not really important for this project since It's just the preview area that's on a https but It sure would be interesting to find out why this problem appears. // Joakim ..... Joakim Carlgren Fröding Flash Developer Framfab Sverige AB Lilla Bommen 1 SE-411 04 Gothenburg SWEDEN E-mail: [EMAIL PROTECTED] Direct: +46 31 760 05 15 Mobile: +46 709 73 79 15 Phone: +46 31 760 00 00 Fax:+46 31 760 05 50 Web:www.framfab.com . ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders