[Flashcoders] Hi all

2006-11-01 Thread Chris Benjaminsen

Hi all

Some of you people might know me from the OSFlash mailing list. But so 
fare I have not participated on this email list.
Anyway I just wanted to tell the world that I released my flash 8 webcam 
barcode scanner as a 100% free component.


A bit more boring info + a download link can be found here:
http://parentnode.org/uncategorized/free-webcam-based-barcode-scanner-component/

Regards,
Chris Benjaminsen
___
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 conver java code to flash

2006-11-03 Thread Chris Benjaminsen

Hi Paul

Actually Math.random always return a positive number between 0 and 1 so 
you can further simplify to:


if (Math.random()  .5) {
	bestXPos = i; 
}



/Chris


Paul Steven wrote:

Thanks Jim. I was curious as I have seen Math.rand() mentioned on various
flash forums and even on one of the macromedia / adobe live docs page. But I
guess these were just mistakes by people familiar with Java.

For my particular need, I have just simplified it to

if (Math.abs(Math.random())  (0.5)) {
	bestXPos = i; 
}


As I was not sure what exactly the Java code did but realised it simply
wanted to implement making a random choice.

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jim
Sent: 03 November 2006 13:17
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] OT conver java code to flash

It is Math.random() sorry. The Math.random() function returns a number
between 1  0. The Java function that you are using returns a random integer
or whole number, I don think there is an upper bound to it.

The rest of your function is getting the modulus of the random number which
in fact is setting the upper bound to 1.

So to get the same sort of function you will need to set what upper bound
you want, I will use 1 for now. I havnt tested this but it should give a
similar result.

var intUpperBound :Number = 1;

if(goodness == bestWorst)
{
numOfEqual++;

  if(Math.abs(Math.random()*intUpperBound)  (intUpperBound /
numOfEqual)) {

	bestXPos = i; 


}

}

Hth
Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: 02 November 2006 23:15
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] OT conver java code to flash

Thanks Jim

It is AS2, and the context is below. Btw what is the difference between
Math.rand() and Math.random()?

// ---
// If two moves are equally good, make a random choice
// ---

if (goodness == bestWorst) {

  numOfEqual++;

  if (Math.abs(rand.nextInt()) % 1  (1 / numOfEqual)) {

	bestXPos = i; 


}

}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jim
Sent: 02 November 2006 22:50
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] OT conver java code to flash

Which version of actionscript? And in whats the context? 


The only thing that dosnt look like it will directlty port over is the
rand.nextInt() but you can use Math.rand() the rest is basic maths stuff you
can do in actionscript.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: 02 November 2006 17:15
To: 'Flashcoders mailing list'
Subject: [Flashcoders] OT conver java code to flash

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()) % 1 
(1 / 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

___
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:

Re: [Flashcoders] preventing scientific notation

2006-11-06 Thread Chris Benjaminsen

Hi Hans

The numbers you are trying to store are way to large for Flash to handle 
as a number.

If you however just thread the numbers as strings it should work perfectly.

/Chris

Hans Wichman wrote:

Hi list,

i need to talk to webservices which pass me back very large db id's, 
which

im using again to request more info.
However when i do (for example):
var b:Number = 10;
trace (b);
it prints 1e+21

Now when I use this value as an argument to this webservice it seems to
fail.
When I use a tool like wsstudio2 and copy and paste the long version, it
works fine.

Any ideas on how to fix this?
greetz
JC
___
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] Showoff of Flash Isometric MORPG

2007-01-17 Thread Chris Benjaminsen

Hi all

Just wanted to showcase a game I have been working on.
Its an isometric multiplayer RPG game made for DR (Danish media company)

Sadley its in danish, but once past the login screen it should be fairly 
intuitive.


http://bardatest.clients.beit.dk/

For those of you who do not speak danish, you create a user under the 
section Opret Bruger

Vælg Figur - Choose charater
Brugernavn - Username
Email - (guess) we do not keep track of emails nor send emails, so feal 
free to throw anything in there

Kodeord - password
Opret (button) - create

Hope you like it
Chris Benjaminsen
___
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] Identifier expected

2007-02-09 Thread Chris Benjaminsen
As you have discovered you are not able to use numbers as keys in line 
objects.
Trying to do what you do will however not change this. Only way to do 
what you want would be to insert the indexes manually:


function createObj():Void {
this._data = new Object();
this._data[a] = new Object();
this._data[a][1] = new Number(0)

}




Mendelsohn, Michael wrote:

Hi list...

Simple question -- why doesn't the 2nd line work?  The identifier
expected error is traced at compile time.

Thanks,
- Michael M.


function createObj():Void {
this._data = new Object();
this._data[a] = {1:new Number(0), 2:new Number(0), 3:new
Number(0)}; 
}

___
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] [Show] Flash game community

2007-09-04 Thread Chris Benjaminsen

Hi guys!

First of all, sorry for just so blatantly posting our own site!

We just released http://nonoba.com/ and is in desperate need of content 
and beta testers :)
The site is as the subject implies a flash game community where 
developers can upload their games, and users can play and comment on these.


We think its rather cool, but I would be really really happy for some 
feedback from you developers;


   * What kind of features do you want?
   * How can we make the site the best developer community out there?
   * Anything we totally forgot about which is obvious?

I hope you will use a few mins to take a look!

Thanks alot,
Chris Benjaminsen
___
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