Paul, maybe this will make your work easier: <http://osflash.org/j2as>
As for the code snippet, I have no idea what 'rand' is. Other than that, it's exactly the same in ActionScript. Mark On 11/2/06, Paul Steven <[EMAIL PROTECTED]> wrote:
Not familiar with Java code but trying to rewrite some code in Flash. Anyone convert this line to flash actionscript please if (Math.abs(rand.nextInt()) % 10000 < (10000 / numOfEqual)) bestXPos = i; Thanks Paul _______________________________________________ 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