RE: [Flashcoders] AS 2.0 Tweening libraries
I've used TweenLite and TweenFilterLite in a couple projects -- ease of use was an issue in the prototyping stages and small file size was a benefit in deployment. Works as advertised and well worth a look! regards, - jim armstrong www.algorithmist.net http://algorithmist.wordpress.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jack Doyle Sent: Wednesday, July 18, 2007 12:05 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] AS 2.0 Tweening libraries To each his own. I've got nothing against Fuse specifically (or any other tweening engine), but TweenLite might be worth looking at because: ___ 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] Simplify point collection
Not sure if this is what you want, but check out the JTS Topology Suite. Here is the user's guide - The Polygonizer class may be in the ballpark of what you desire http://www.vividsolutions.com/jts/bin/JTS%20Developer%20Guide.pdf This is not a Flash library (it's Java), but it is available for download. Might be possible to convert to AS. Yes, it's much easier said than done :) good luck! - jim www.algorithmist.net http://algorithmist.wordpress.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Smeets, Ben Sent: Wednesday, July 11, 2007 4:13 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Simplify point collection I might be pushing my luck here, but is there some similar magic piece of code which can transform a collection of lines to a single polygon line? (So i can use the linegeneralization code below) I have a large collection of random lines which have a lot of overlappig start/end points. The only dinkytoy way I can think of to combine these into polygons is to take point 1, look through the whole collection for matching points, take point 2..etc. The way too global searchterms i can think of to use for googling brings up everything but related stuff. ___ 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] Simplify point collection
Is this what you're after? http://motiondraw.com/md/as_samples/t/LineGeneralization/demo.html regards, - jim armstrong www.algorithmist.net http://algorithmist.wordpress.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Smeets, Ben Sent: Wednesday, July 11, 2007 9:16 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Simplify point collection I have a huge collection of point (x,y). Those points make up line (x1,y1 to x2,y2). Is there Some sort of well known function to smooth these points so that there is less to draw? ___ 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] Simplify point collection
Glad to help. good luck! - jim www.algorithmist.net http://algorithmist.wordpress.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Smeets, Ben Sent: Wednesday, July 11, 2007 10:26 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Simplify point collection Jim (and Ben also!) Thank you very much. The link below is as far as I can tell by using the demo *exactly* what I was looking for. You guys helped me get some sleep tonight ;) Cheers, Ben ___ 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] AS2: capturing link events?
sebastian wrote: Hello again, a more difficult question maybe... Is there any way for me to capture a user click on an href tag inside of a CSS formatted html text field? Have you looked at asfunction? good luck! - jim -- Jim Armstrong::Mathematician::Algorithmist::Programmer Singularity::www.algorithmist.net Blog::algorithmist.wordpress.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] amfphp.org?
http://www.5etdemi.com/blog/archives/2007/05/amfphporg-domain-name-debac le/ regards, - ji\m/ www.algorithmist.net algorithmist.wordpress.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dnk Sent: Tuesday, May 15, 2007 11:43 AM To: Flashcoders Subject: [Flashcoders] amfphp.org? looks like the domain has expired (May 7th). I am assuming the project is not dead, but it is rather just an over site by the owner. Does anyone have any info on this? How about a spot to download the latest? ___ 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] OT - Six-month contract opportunity in Dallas, TX area
A company I contract for has an opening for a Flash developer - AS 2/F8, OOP, the usual stuff. Must be in the Dallas, TX area and able to work on-site. Contract duration is approximately six months. If interested, contact me off-list with resume, url's etc. Thanks! - jim Armstrong ___ 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] As3 Reccomended Book
Merrill, Jason wrote: there just aren't a lot of AS3 specific books out there yet. There are several in the works though. Moock's EAS3 is available for preorder, http://www.amazon.com/exec/obidos/ASIN/0596526946/ref=nosim/moockorg regards, - jim -- Jim Armstrong::Mathematician::Algorithmist::Programmer Singularity::www.algorithmist.net Blog::algorithmist.wordpress.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] using mx.controls package in an Actionscript 3.0 Project
JOR wrote: Below is my test class of trying to pragmatically add a set of radio buttons to an ActionScript 3.0 project. Do you see anything I may have done incorrectly? When I run it, I don't get any compile errors but I also don't see any radio buttons. If memory serves, in Flex, the application root should be used as the parent container for UIComponent or its extensions and UIComponent or an extension should be used as the primary display container ... or something like that. Everything I say is true, modulo something :) I think there is a good blog post on this somewhere; I'll look it up. In the mean time, a quick and minimal hack (and I do mean hack), http://www.adobe.com/2006/mxml"; layout="absolute" width="400" height="300" creationComplete="TADemo.Main(this)"> package { import mx.controls.TextArea; // simple TextArea Demo public class TADemo { private var __textArea:TextArea; public function TADemo(_parent:Object) { __textArea= new TextArea(); __textArea.width = 200; __textArea.height = 20; __textArea.x = 10; __textArea.y = 10; __textArea.text = "This is a test"; _parent.addChild(__textArea); } public static function Main(_myRoot:Object):void { var instance:TADemo = new TADemo(_myRoot); } } } Here is an example using a custom CheckBox class that dynamically draws a check box thingy and uses a TextField for the label. http://www.adobe.com/2006/mxml"; layout="absolute" width="400" height="300" creationComplete="display()"> The CheckBox class extends Sprite. It contains an icon (instance of another class that draws the check box icon) and a label. After creating these elements, the constructor calls addChild(__icon); addChild(__label); Haven't had my afternoon coffee, so I hope this helps more than confuses! - jim -- Singularity >> Flash :: Flex :: Math :: www.2112fx.com/blog TechNotes >> Computational Geometry :: www.2112fx.com/technotes.html ___ 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] Boids algorithm in as2 or as3?
John Grden wrote: I've seen several entries about people who've toyed with it, but no posts with actual code. has anyone done the 3D conversion? any links to 2d or 3d source would be much appreciated ;) If memory serves, the Flash player team has a Boids test (written by Jethro Villegas) in both AS2 and AS3, used to test player performance. Perhaps they might be willing to release the source? Craig Reynolds (http://www.red3d.com/cwr/steer/gdc99/index.html) is well-known in the game industry for his Boids work. http://www.red3d.com/cwr/boids/ - no actionscript as I recall, but good info. and lots of other links. There are several C++ and Java sources online, but I've never looked at any of them so can't vouch for them. Hope this gives you a little more info. than you already have. good luck!! - ji\m/ -- Singularity >> Flash :: Flex :: Math :: www.2112fx.com/blog TechNotes >> Computational Geometry :: www.2112fx.com/technotes.html ___ 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] Letting go of AS2 for AS3
Rough cuts are available, http://www.moock.org/blog/archives/000203.html regards, - ji\m/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven Sent: Tuesday, November 14, 2006 2:00 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Letting go of AS2 for AS3 Is Essential AS3 book out yet? I cant see it on Amazon.co.uk ___ 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] OT CG textbook, was efficient line segment intersection algorithm
Millie Niss wrote: BTW (off-topic): What is the standard comprehensive computer graphics text these days? When I was in grad school, it was Foley-Van Dam (and some of my friends worked for Andy Van Dam so they considered no other book) but I have heard it is quite out-of-date. FVD is still a good survey text -- not sure if there is one definitive book as the field is so large. De Boor's 'A Practical Guide to Splines', Bartels, Beatty, and Barsky 'An Introduction to Splines for Use in Computer Graphics and Geometric Modeling' and Farin's 'Curves and Surfaces for Computer Aided Geometric Design' are a nice trio to have. I envy your friends :) good luck!! - jim -- Singularity >> Flash :: Flex :: Math :: www.2112fx.com/blog TechNotes >> Computational Geometry :: www.2112fx.com/technotes.html ___ 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] efficient line segment intersection algorithm?
Millie Niss wrote: I found a useful segment intersection algorithm in the book _Computational Geometry: Algorithms and Applications_, by Mark de Berg http://www.amazon.com/Computational-Geometry-Algorithms-Applications-Second/dp/3540656200/ref=pd_ys_qtk_rvi_img/102-1020427-4119337 The algorithm is quite understandable and efficient. It does use binary trees, so I have to code a binary tree class before I can implement the algorithm. Haven't read it, but this book has a good reputation. If memory serves, it's a sweep line algorithm which uses a priority queue -- you can get an AS 2 version from Arul's blog -- http://www.shockwave-india.com/blog/actionscript2/?asfile=PriorityQueue.as . good luck and enjoy the book! - jim -- Singularity >> Flash :: Flex :: Math :: www.2112fx.com/blog TechNotes >> Computational Geometry :: www.2112fx.com/technotes.html ___ 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] Has anyone had any experience with Bit Components?
Rich Rodecker wrote: for skinnability, they are great. there are some wierd issues you'll encounter here and there, I would check over the products forums for some examples. One such example is that I dont think you can change the animation of the accordion pane. The documentation is decent enough, I don't have any issues with it. agreed - very easy to skin. Used them in four different projects. Ran into a few issues in an e-commerce app., but nothing that could not be diagnosed and quickly worked around. good luck! - jim -- Singularity >> Flash :: Flex :: Math :: www.2112fx.com/blog TechNotes >> Computational Geometry :: www.2112fx.com/technotes.html ___ 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] Shared object not saving off cd-rom?
Karina Steffens wrote: Hi list, Does anyone know if there are any gotchas when trying to save a shared object from a flash application running off the cd-rom? The client has sent this cd-rom to a number of reviewers, and one of them has reported that the player's data isn't being saved. When they leave the game and go back to select a player, they don't have any saved players in the "select player" section. Kind of taking a stab in the dark here (and operating on far too little coffee today), but when I've run into problems like this in the past (with Zinc), the solution was to use localPath, var mySO:SharedObject = SharedObject.getLocal("soName", "/"); http://livedocs.macromedia.com/flash/8/main/2665.html good luck!! - jim -- 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ 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] createClassObject with List Class funky
Stefan Thurnherr wrote: and according to the AS2.0 Language Reference, MovieClip does not have any createClassObject() member...so now I don't understand why aMovieClip.createClassObject() works at all, eventhough I am successfully using it. Can someone else shed some light on this issue? If memory serves, MovieClip is a dynamic class and createClassObject() is added to the MovieClip prototype by the V2 framework at runtime. hth, - jim -- 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ 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] AS2.0 time/date Objects: Timer class?
lars wrote: yes, also nice, but how to avaid using "your" textfield? when i use timer.start( myownfield, timer.count_up) it's still displaying the one created by the class? You could rewrite the code to accept a reference to your own textfield or have the method that computes the timestamp return the string and display it however you want. I'll be happy to make these mods, but it may take a while with an important client demo looming in the next couple days. good luck! - jim -- 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ 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] AS2.0 time/date Objects: Timer class?
lars wrote: anyone has a timer class handy? something to display minutes and seconds counting, starting at 0:00... sorry, but i tried to calc a date/time difference using the date and time objects, but i can't make it :( tsk tsk http://www.2112fx.com/blog/pivot/entry.php?id=13 timestamp with count-up or count-down modes built in. hope that helps! - jim -- 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ 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] Set volume of flash video?
Mendelsohn, Michael wrote: Thanks for the feedback Jim...however, my video is embedded, and it looks like netstream only works with an external video. Any idea how this can be done with an embedded video? If memory serves, the argument to attachAudio() must be either a Microphone object or a NetStream object playing a video, so this approach won't work. Try initializing the Sound object with a reference to the MovieClip containing the embedded video. I just tried the following and it worked ok, var __myVideoContainer:MovieClip = this.attachMovie( "myVideo", "vid", 2 ); var __sound:Sound = new Sound(__myVideoContainer); __sound.setVolume(0); The "myVideo" clip contained a video (with sound) that I imported to the timeline. Send me e-mail if you want the .FLA good luck! - jim -- 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ 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] Set volume of flash video?
Mendelsohn, Michael wrote: Hi list... Is there a property to get/set the volume of a flash video on the stage? Here's a small snippet of code from a recent project -- create a Sound object to control the sound level in the video. __audioControl = __timeline.createEmptyMovieClip( "audio", __depth++ ); __sound= new Sound(__audioControl); . . . __player.attachVideo(__ns); __audioControl.attachAudio(__ns); __sound.setVolume(__volumeLevel); __player is a reference to a Flash video object (inside another clip). __ns is the NetStream reference. Hope this helps! - jim -- 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ 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] need: optimized particles
artur wrote: perferably flash 7 and above. something like this is prefered ( in terms of performance ): http://www.blprnt.com/swf/ParticleSwarm.htm Here are a couple to get you started, http://www.bit-101.com/Particles/ http://www.horsefish.net/ElementalFX/ good luck! - jim -- 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [FlashCoders] wave generator example
Dimitrios Bendilas wrote: Hello everyone, There was a tutorial/article about a wave generator engine in ActionScript, that produced pretty complex waves and had a boat which you could move ON the waves using the left and right arrow buttons. It was a very nice example and I think it was made by someone in this list. I can't find it. Does anyone know what I'm talking about? http://www.dembicki.org/path/index-eng.html . Is this what you wanted? regards, - jim -- 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Media Server
At 03:40 PM 1/18/2006 +0100, you wrote: Are there any great technical forums in which is for FMS questions? -I have tried the forum at flashcomguru.com, but that had low traffic and no help given from there. http://chattyfig.figleaf.com/mailman/listinfo/flashcomm hth! - jim 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] easy to implement a* flash classes?
At 12:07 PM 1/12/2006 -0500, you wrote: can any one toss me links to the latest and greatest a* pathfinding examples that are easy to implement? Much appreciated. If memory serves, Jobe Makar has an implementation in his 'Flash MX Game Design Demystified' book. I think this question may have been asked a couple times before, so you might find some more information in the archives. Also, try the FlashGameCoders list. good luck! - jim 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Bug in Macromedia's flash detection codewheninstalled player is either 6.0.22, 6.0.23 and 6.0.29 ?
At 02:58 PM 1/6/2006 +0200, you wrote: The simple solution is to make a small movie, with get url (to the main movie url) , and export it in player 8. This will detect if the viewer has flash 8 player (or not). How ever the main problem is that most people simply don't have it (yet?), Which detection will not solve. The old-school solution was to add a META Refresh tag to the page containing the detection .SWF, so that if the viewer does not have the correct version of Flash (or does not have it at all), they are directed to a 'get Flash' page. I seem to recall that there were still some issues with the Refresh tag, though. hth! - jim 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Book sequence...
At 01:08 PM 12/12/2005 -0800, you wrote: Read them online. Check out a subscription to Safari Online: http://safari.oreilly.com/ Very interesting -- thanks for the link. - jim 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] where and how can I learn actionscript bytecode
At 12:40 PM 12/3/2005 -0800, you wrote: Is there any tools or documentation out there that will aid in learning actionscript bytecode? Flasm is a good start, http://flasm.sourceforge.net/ have fun! - jim 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AI Personalities...
At 04:18 PM 11/30/2005 +, you wrote: should have mentioned that this is for a simple Chat Bot I had a client experiment with this one and he was pretty pleased. Don't have any personal experience with the product, though. http://www.personalityforge.com/ good luck! - jim 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Math.random()
At 10:21 AM 11/17/2005 -0500, you wrote: what you do with the random number to produce a dice roll is more important. It is easy to make a simple mistake in the mapping of a random number to an integer between 1 and 6 that results in a skewed distribution. Here is a link to get you started, http://www.gamesgrid.com/backgammon/faq-rng.html a Google search will probably turn up more info as well, although doing the right thing with poor input still produces substandard results in the end -- especially if you or your client is accountable for the quantitative aspects of the game, which includes the statistical qualities of a RNG, process for producing a shuffle/dice roll/etc., and the means for introducing entropy into the process. Back in the early days of F7, I ran a couple industry-standard tests on Math.random() and the results were sufficiently poor to convince me it was not worth running any more tests. Math.random() hides the seeding process from the programmer, meaning that you have no control over entropy. Even if you have a perfect algorithm for producing a dice roll or shuffle, you can not make an argument for the fairness of that game that is in line with standards currently in practice for online casinos. If you don't need to meet such a standard, that's fine, but consider your level of accountability before selecting a method of approach. Gamblers always complain about dice rolls even if you use real dice. How many times have I done that at the craps tables :) This is, of course, why the gaming commission insists on rigid tests for 'fairness' of casino dice. Also why online casinos go to such great lengths to reassure patrons of the statistical qualities of their shuffles/dice rolls/etc. good luck! - jim 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Math.random()
At 03:28 PM 11/17/2005 +0200, you wrote: So, my question is this: Should I use some other algorithms for generating the value of the dice? Or Math.random() is really good enough? What if this game was connected to prizes, tournaments etc? Would I have to find something better then? Do not use Flash's Math.random() for any serious gaming application. As an alternative, consider http://magicsnacks.com/shiftedpixels/?p=8 http://www.2112fx.com/blog/pivot/entry.php?id=36 for some links on RNG's and shuffling . good luck! - jim 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Another random number generator
At 05:32 PM 10/27/2005 -0400, you wrote: Not that any of you need something like this, but ya never know: This is always useful. http://magicsnacks.com/shiftedpixels/?p=8 thanks and good work! - jim 2112 FX :: Singularity [Business Intelligence][Custom Programming] Flash Math Blog :: www.2112fx.com/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders