Thanks Mark I did see that but it involves installing Eclipse and a few other things and I have a rather tight deadline of tomorrow so didn't want to spend a few hours working out how to use a new app. Will look into it after I finish this though
Paul -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Winterhalder Sent: 02 November 2006 20:57 To: Flashcoders mailing list Subject: Re: [Flashcoders] OT conver java code to flash 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 _______________________________________________ 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