[Flashcoders] isseu with a custom function in AS2

2009-04-03 Thread jimmi
Good morning, I have made a function that adds interpunction marks to a value, for example the value 1 gets changed to 10.000, 10 to 100.000 and so forth. The function work fine, but I'm trying to make it reusable so that i can use it in a large scale project. That's where the problem

Re: [Flashcoders] isseu with a custom function in AS2

2009-04-03 Thread Hans Wichman
Hi Jimmi, your parameter is being passed by value not object since it's a literal value. In your previous situation the function applied itself to a global variable so this problem didn't occur. Add a return statement to your function at the end: function interpunk (par1):Void { . return

Re: [Flashcoders] isseu with a custom function in AS2

2009-04-03 Thread Geografiek
Hi Jimmi, I made a class that does just that (and a little bit more). I can send it to you off list if you wish. HTH, Willem van den Goorbergh Op 3-apr-2009, om 10:19 heeft jimmi het volgende geschreven: Good morning, I have made a function that adds interpunction marks to a value, for example

Re: [Flashcoders] isseu with a custom function in AS2

2009-04-03 Thread jimmi
Hey guys thanks for the feedback. Willem i would love to have that class of yours. On Fri, Apr 3, 2009 at 12:58 PM, Geografiek geograf...@geografiek.nl wrote: Hi Jimmi, I made a class that does just that (and a little bit more). I can send it to you off list if you wish. HTH, Willem van den