RE: [Flashcoders] Normalizing point

2005-10-20 Thread Andreas Weber
the good ol' hardcore Math/Trig sessions on flashcoders? :-) HTH -- Andreas Weber motiondraw.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] gradient fills based on temperature maps

2005-11-04 Thread Andreas Weber
-- Andreas Weber motiondraw.com temperatureValues = new Array(); // create some random temperature data for(var i= 0; i400; i++){ lastVal = i ? temperatureValues[i-1] : 50; if(lastVal 100){ c = -1; }else if(lastVal 0){ c = 1; }else

RE: [Flashcoders] Drawing gradients

2005-11-18 Thread Andreas Weber
/as_samples/t/gradientTween/gradientTweenEditor. html HTH -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Claudia Barnal Sent: Friday, November 18, 2005 3:15 PM To: flashcoders@chattyfig.figleaf.com Subject

RE:[Flashcoders] Q:Animating a gradient

2005-11-23 Thread Andreas Weber
Maybe describe the effect a bit? http://motiondraw.com/md/as_samples/t/gradientEye/ Probably not what you want, it's not even Flash 8... HTH -- Andreas Weber motiondraw.com Hi Has anyone seen examples of animating a gradient in flash8? Recall seeing something as part

[Flashcoders] universal toString() function

2005-12-07 Thread Andreas Weber
}} In my case the object will not contain any methods, just (deeply nested) 'vanilla' Objects, Arrays, Strings, Numbers and Booleans. Thanks for any pointers! -- Andreas Weber motiondraw.com ___ Flashcoders mailing list Flashcoders

RE: [Flashcoders] universal toString() function

2005-12-08 Thread Andreas Weber
) ? stringify(o[p], ) : (typeof(o[p]) == 'string' ? ''+o[p]+'' : o[p])); c = , ; } } s += isArray ? ']' : '}'; return s; } It's not much more readable though ;-) Thanks again! Andreas Weber -Original Message- From: [EMAIL

RE: [Flashcoders] onload(Success:Boolean) - what's it mean?

2005-12-15 Thread Andreas Weber
. It seems to be quite safe to assume that with asynchronous load operations the onData and onLoad events are dispatched with a delay of at least one frame. hth Andreas Weber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Donnerstag, 15

RE: [Flashcoders] onload(Success:Boolean) - what's it mean?

2005-12-15 Thread Andreas Weber
Good to know - thanks for the pointer! Andreas Weber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Donnerstag, 15. Dezember 2005 20:43 To: Flashcoders mailing list Subject: Re: [Flashcoders] onload(Success:Boolean) - what's it mean

RE: [Flashcoders] scribbling an oval

2005-12-28 Thread Andreas Weber
/CatmullRomSpline/tween.html Post again if you need more details/code! HTH -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Serge Jespers Sent: Wednesday, December 28, 2005 2:44 PM To: Flashcoders mailing list Subject

RE: [Flashcoders] scribbling an oval

2005-12-28 Thread Andreas Weber
is applied to its coordinates, it is smoothed again and finally it is rendered as Catmull Rom spline: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/tween.html Post again if you need more details/code! HTH -- Andreas Weber motiondraw.com

RE: [Flashcoders] Registration points

2005-12-29 Thread Andreas Weber
://livedocs.macromedia.com/flash/mx2004/main_7_2/0189.html A very expert Flash user who got confused by this once referred to this phenomenon as 'Who moved my fridge while I wasn't looking?'. It's in the bugbase - let's hope they'll fix this for Flash 9. HTH -- Andreas Weber motiondraw.com

[Flashcoders] TreeDataProvider - There is no method with the name 'addTreeNode'

2006-01-11 Thread Andreas Weber
have any luck with avoiding the compiler error through Array access syntax: no error, but no node is added). Cheers! -- Andreas Weber motiondraw.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com

RE: [Flashcoders] TreeDataProvider - There is no method with thename 'addTreeNode'

2006-01-11 Thread Andreas Weber
! -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Devendran I Sent: Mittwoch, 11. Januar 2006 17:24 To: Flashcoders mailing list Subject: Re: [Flashcoders] TreeDataProvider - There is no method with thename 'addTreeNode' Hi

RE: [Flashcoders] TreeDataProvider - There is no method with thename'addTreeNode'

2006-01-11 Thread Andreas Weber
cast it. how? Could you elaborate a bit? Thanks! -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel Sent: Mittwoch, 11. Januar 2006 21:57 To: Flashcoders mailing list Subject: Re: [Flashcoders

RE: [Flashcoders] TreeDataProvider - There is no method withthename'addTreeNode'

2006-01-11 Thread Andreas Weber
()); myTreeDP.addTreeNode(node, 0); } } gives the error The class or interface 'TreeDataProvider' could not be loaded. In which package is the TreeDataProvider (the docs don't tell)? -- Andreas Weber motiondraw.com -Original Message

RE: [Flashcoders] TreeDataProvider - There is no method with thename'addTreeNode' - SOLVED

2006-01-11 Thread Andreas Weber
= new XML(); // Compiles fine when not typed as XML var myTreeDP = new XML(); myTreeDP.addTreeNode(node, 0); } } Cheers! -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [Flashcoders] TreeDataProvider - There is no method with thename'addTreeNode'

2006-01-12 Thread Andreas Weber
('untyped '+myTreeDP); } } Output: cast to TreeDataProvider null untypednode data=0 label=node / Cheers! -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Johannes Nel

RE: [Flashcoders] photo mosaics

2006-01-17 Thread Andreas Weber
-- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Dienstag, 17. Januar 2006 22:32 To: Flashcoders mailing list Subject: RE: [Flashcoders] photo mosaics No one has replied to this post of mine so I am

RE: [Flashcoders] Q:Tracing out objects in an array

2006-01-18 Thread Andreas Weber
Very convenient: mx.data.binding.ObjectDumper http://weblogs.macromedia.com/dehaan/archives/2005/04/hidden_componen.cf m hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Donnerstag

RE: [Flashcoders] expanding a second array given values of the firstarray

2006-01-19 Thread Andreas Weber
[k]; } } taskSetExpanded.push(res); } } trace(taskSetExpanded); // output: 2,2,3,8,8,8,8,8,9,12,12,12 hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: [Flashcoders] getting the name of an object

2006-01-23 Thread Andreas Weber
]) == 'object'){ if(o2[p] != o){ getObjName(o, o2[p]); }else{ names.push(p); } } } return names; } hth -- Andreas Weber

RE: [Flashcoders] getting the name of an object

2006-01-23 Thread Andreas Weber
and the strict oprator will always return the same result. -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Montag, 23. Januar 2006 16:38 To: Flashcoders mailing list Subject: Re: [Flashcoders] getting

RE: [Flashcoders] checking combinations

2006-01-25 Thread Andreas Weber
++; } combos.sort(); trace(combos); trace(combos.length); -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin Wood Sent: Wednesday, January 25, 2006 8:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders

RE: [Flashcoders] checking combinations

2006-01-25 Thread Andreas Weber
; i++){ trace('\n case '+combos[i]+':'); trace(' //do stuff here'); trace(' break;'); } trace('}'); Just overwrite the 'events' Array to accommodate your needs. hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED

RE: [Flashcoders] Line optimization

2006-01-25 Thread Andreas Weber
An implementation of Lang Simplification and McMaster's Slide Averaging Algorithm: http://motiondraw.com/md/as_samples/t/LineGeneralization/demo.html hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill

RE: [Flashcoders] checking combinations

2006-01-25 Thread Andreas Weber
the immediately readable 'string-based' switch still has its merits in terms of readability/managability, but I won't insist - up to Eric to pick the one that best matches the needs of his project. Cheers! -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL

RE: [Flashcoders] checking combinations

2006-01-26 Thread Andreas Weber
'; if(a.selected){ state += 'A'}; if(b.selected){ state += 'B'}; // etc. handlers[state](); } What's the benefit of encoding/decoding numbers? Please enlighten me! Cheers! -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL

RE: [Flashcoders] Simulating a rope

2006-02-21 Thread Andreas Weber
-- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Seb L Sent: Tuesday, February 21, 2006 4:50 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Simulating a rope Thanks Josh, it was pretty much the same

RE: [Flashcoders] Smoothing lines using bezier

2006-03-04 Thread Andreas Weber
http://motiondraw.com/md/as_samples/t/LineGeneralization/demo.html hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ramon Miguel M. Tayag Sent: Samstag, 4. März 2006 03:02 To: FlashCoders Programming

RE: [Flashcoders] Shape tweens through AS?

2006-03-06 Thread Andreas Weber
-forward as it would be if we could access the drawing data at runtime, but still possible. hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Montag, 6. März 2006 22:08 To: Flashcoders

[Flashcoders] Re: diagonal slices of a grid (was: Displaying objects)

2006-03-30 Thread Andreas Weber
); } m++; } } hth -- Andreas Weber motiondraw.com Hehe, all good. Thanks John. I'm sitting here trying to write something mathematically that works. Turns out I am the suck at math, so it's making this complicated. Hand coding the array would be laborsome

RE: [Flashcoders] optimize lineTo algorithm

2006-04-17 Thread Andreas Weber
Say I have 500 points all fairly close that I'd like to reduce to fewer points. I guess what I'm really after is an algorithm similar to the Modify Shape Optimize command in the Flash API. http://www.motiondraw.com/md/as_samples/t/LineGeneralization/demo.html hth -- Andreas

RE: [Flashcoders] Plot Graph / Spline (was: Help needed)

2006-06-29 Thread Andreas Weber
Sounds like you are looking for a Spline class; http://motiondraw.com/md/as_samples/t/CatmullRomSpline/tween.html And don't miss Jim Armstrong's series of about 8 technotes on different splines: http://www.2112fx.com/blog/ hth -- Andreas Weber motiondraw.com -Original Message

RE: [Flashcoders] Rubiks Cube

2006-06-29 Thread Andreas Weber
Eric Lin, neuro surgeon and brilliant Flash hobbyist, has one: http://www.geocities.com/~dr_ericlin/flash/indexgeo.html hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: Donnerstag, 29

RE: [Flashcoders] strange scope behaviour

2006-08-20 Thread Andreas Weber
is on). The output of above sample in AS3 is therefore: function Function() {} Some more info: http://livedocs.macromedia.com/labs/as3preview/docs/0032.html hth -- Andreas Weber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Weiser

RE: [Flashcoders] geometry // oval around text

2006-10-05 Thread Andreas Weber
-- Andreas Weber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Dittgen Sent: Donnerstag, 5. Oktober 2006 09:41 To: Flashcoders mailing list Subject: [Flashcoders] geometry // oval around text Hello, I need a tipp for drawing an oval

RE: [Flashcoders] Weak bounce easing equation

2006-10-05 Thread Andreas Weber
the easing curve: http://timotheegroleau.com/Flash/experiments/easing_function_generator.htm hth -- Andreas Weber ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com

RE: [Flashcoders] geometry // oval around text

2006-10-06 Thread Andreas Weber
Sorry, wasn't aware that you were looking for a real ellipse, I thought something nicely ovalish, kind-of-roundish would do :-) You'll find a bit more on CatmullRom here: http://www.mvps.org/directx/articles/catmull/ hth -- Andreas Weber -Original Message- From: [EMAIL

RE: [Flashcoders] FLASC problem

2006-10-16 Thread Andreas Weber
hours - thanks a bunch for your great tool, John (and Nicolas of course) -- Andreas Weber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Grden Sent: Dienstag, 17. Oktober 2006 03:54 To: Flashcoders mailing list Subject: Re: [Flashcoders

AW: [Flashcoders] Algo's to change the ordering of arrays

2007-01-17 Thread Andreas Weber
Something like a spiral-sort? http://chattyfig.figleaf.com/pipermail/flashcoders/2005-March/134713.html hth - Andreas Weber -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Mike Mountain Gesendet: Mittwoch, 17. Januar 2007 16:37