Re: [Flashcoders] Even odds
Geeks ;) 2005/12/9, Mark Winterhalder <[EMAIL PROTECTED]>: > > OK, I ran some tests of my own. After repeating it a couple of times, > with various outcomes, the trend seems to be that a) the cast is about > 10% faster than the equality, and b) the bitwise and is about 10% > faster than the modulo. > I used MTASC to compile, FP8 under wine on Linux, and the ActionStep > Debug Panel (ActionStep alpha 1 has been released! check it out: > actionstep.org). > I decided to go with triggering it onKeyDown, to avoid initialization > of the player and to be easily able to run repeated tests. > > Here's the code: > > var bench:Object = {}; > bench.onKeyDown = function () { > var repeats:Number = 50; > var i:Number = repeats; > var foo; > var start:Number = getTimer(); > while( i-- ) { > foo = ( Math.random() * 10 )|0; > } > var overhead:Number = getTimer() - start; > trace( "overhead: " + overhead ); > i = repeats; > start = getTimer(); > while( i-- ) { > foo = ( Math.random() * 10 )|0 % 2 == 1; > } > trace( "modulo, equality: " + ( getTimer() - start - overhead ) ); > i = repeats; > start = getTimer(); > while( i-- ) { > foo = Boolean( ( Math.random() * 10 )|0 % 2 ); > } > trace( "modulo, cast: " + ( getTimer() - start - overhead ) ); > i = repeats; > start = getTimer(); > while( i-- ) { > foo = ( Math.random() * 10 )|0 & 1 == 1; > } > trace( "and, equality: " + ( getTimer() - start - overhead ) ); > i = repeats; > start = getTimer(); > while( i-- ) { > foo = Boolean( ( Math.random() * 10 )|0 & 1 ); > } > trace( "and, cast: " + ( getTimer() - start - overhead ) ); > } > Key.addListener( bench ); > > //mark > > -- > http://snafoo.org/ > jabber: [EMAIL PROTECTED] > ___ > 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] grid with mouse interaction
You have lots of examples of the on http://laco.wz.cz/tween/?page=examples 2005/12/8, Mick Gow <[EMAIL PROTECTED]>: > > I'm just on the look out for a flash piece I saw once that I was hoping > someone may remember... > I recall seeing a flash piece that was basically a grid of images. There > was > interaction where you move your mouse over one section of the grid (one > image) and it scaled to say 400%, all other neighboring images scaled > smaller to fill the spaces left by the grid (to keep the grid filled, some > images would scale non-proportionally). > > Any links you recall would be great or if you've seen something similar. > > 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
Re: [Flashcoders] Applying tween class to textfields
What are you trying to tween? I know I was trying to tween the alpha with the Zigo engin but couldn't get it to work until I embeded the fonts. Have you tried that? Have you tried MC tween2? http://hosted.zeh.com.br/mctween/index.html Or fuse kit: http://www.mosessupposes.com/Fuse/ They are related to Zigo but later versions. 2005/12/3, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Sorry its still early ;) This is the movieclip tweening prototype I am > using. > It says it works with textfields as well but no luck so far. > > http://laco.wz.cz/tween/ > > > 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
Re: [Flashcoders] warp dynamic text in flash 8 with filters or script
Check out the DisplacementMapFilter. With that you can make som "warping" 2005/11/30, rishi <[EMAIL PROTECTED]>: > Hi > > I want to warp dynamic text in flash 8 with filters or script > > Regards > Rishi > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ramon > Tayag > Sent: Wednesday, November 30, 2005 6:59 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] warp text in flash > > Best way I can think of it to break down the text into graphics then > play around with the different tools like warp. > > > On 11/30/05, rishi <[EMAIL PROTECTED]> wrote: > > Is there a way similar to photoshop to warp text in flash? > > > > > > > > Reards > > Rishi > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > -- > 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 > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders