Re: [Flashcoders] Compound interest formula
Sorry, on second thought, it's quite different. With amortization, you have a longer period with a larger amount, with saving, a longer period with a smaller amount. So the compound interest changes the picture entirely. But maybe the derivation of the formula is of some help. Mark On 9/15/07, Mark Winterhalder [EMAIL PROTECTED] wrote: Hello Kerry, On 9/15/07, Kerry Thompson [EMAIL PROTECTED] wrote: I'm ok with math, but it's not my strong suite. Does somebody have the compound interest formula, preferably in AS2 form? It comes in various forms. The one I need is, given an interest rate, a period of time, and an end goal, what monthly payments do you need to make. In other words, assuming 8% annual return, and you want $1,000,000 in 25 years, how much do you need to set aside each month? Isn't this the same as amortization of debt? http://en.wikipedia.org/wiki/Amortization_calculator But please don't rely on me with this. Double check with existing examples, and be careful about how interest is payed (monthly? yearly? quarterly?). All I'm saying is, the formula /should/ be (roughly) identical. Best give it a shot, fill in your own numbers, and then ask your bank and see if they come up with the same result. It might be a month off, or a month's worth of interest, or I might be completely wrong... Mark ___ 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] how are they doing this? Papervision3d or pre-rendered 3d?
Hi All, Does any one know how this site achieved its card flipping effect? Papervision3d or pre-rendered 3d? http://www.tripleslanguage.com/?CMP=BAC-1TO1Q3TP7042 Judging from the animation, it's a combination of both: a 3d distortion class (like PV3D, or others similar classes like Sandy or homebrew ones) is used on the card content (text and images), but the card itself is a pre-rendered animation that gets the color changed for each card (it's of high quality, employs some real motion blurring, etc). Zeh ___ 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] Re: Setting percentage to circular preloader
is anyone here??? On 9/12/07, Omar Fouad [EMAIL PROTECTED] wrote: Alright, I wrote some code that draws a circle and I added an easing effect using Tweener as follows: var Circle:MovieClip = _root.createEmptyMovieClip(Circle, 2); function drawC(centerX, centerY, radius, sides){ Circle.per = 0; Circle.lineStyle(4,0xFF,100); Circle.moveTo(centerX + radius, centerY); var to = {per:100, time:1, transition:easeOutQuad,onUpdate:function() { var pointRatio = (this.per/sides); var xSteps = Math.cos(pointRatio*2*Math.PI); var ySteps = Math.sin(pointRatio*2* Math.PI); var pointX = centerX + xSteps * radius; var pointY = centerY + ySteps * radius; Circle.lineTo(pointX, pointY); } } Tweener.addTween(Circle, to); } I tried than to use it as a preloader by adding the Preload function and ading a parameter to the drawC function as follows:: function drawC(centerX, centerY, radius, sides, percent){ *// here i added the percent par* Circle.per = 0; Circle.lineStyle(4,0xFF,100); Circle.moveTo(centerX + radius, centerY); var to = {per:percent, time:1, transition:easeOutQuad,onUpdate:function() {// *here i assigned the per property to the variable passed by the percent parameter* var pointRatio = ( this.per/sides); var xSteps = Math.cos(pointRatio*2*Math.PI); var ySteps = Math.sin(pointRatio*2*Math.PI); var pointX = centerX + xSteps * radius; var pointY = centerY + ySteps * radius; Circle.lineTo(pointX, pointY); } } Tweener.addTween(Circle, to); } Preload = function () { total = _root.getBytesTotal(); onEnterFrame = function () { loaded = _root.getBytesLoaded(); percentage = Math.floor(loaded/total * 100); if(percentage !== 100) { _root.drawC(250, 200, 15, 100, percentage); *// the percentage is passed to the drawC* }else if (percentage==100){ delete this.onEnterFrame; }; }; }; Preload(); It doesn't work when theoretically it should.. I tried it without Tweener, using a loop and it worked but without easing. like this: function drawC(centerX, centerY, radius, sides, percent){ *// here i added the percent par* Circle.lineStyle(4,0xFF,100); Circle.moveTo(centerX + radius, centerY); for (i=0;i=percent;i++); *// used a loop here - passed the var percent* var pointRatio = (i/sides);// *Used I instead of this.per* var xSteps = Math.cos(pointRatio*2* Math.PI); var ySteps = Math.sin(pointRatio*2*Math.PI); var pointX = centerX + xSteps * radius; var pointY = centerY + ySteps * radius; Circle.lineTo(pointX, pointY); } Tweener.addTween(Circle, to); } Now how can I relate the percentage that is returned to the drawing circle process with Tweener? Is there something wrong or something i miss? Regards -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ 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] Compound interest formula
Hello Kerry, On 9/15/07, Kerry Thompson [EMAIL PROTECTED] wrote: I'm ok with math, but it's not my strong suite. Does somebody have the compound interest formula, preferably in AS2 form? It comes in various forms. The one I need is, given an interest rate, a period of time, and an end goal, what monthly payments do you need to make. In other words, assuming 8% annual return, and you want $1,000,000 in 25 years, how much do you need to set aside each month? Isn't this the same as amortization of debt? http://en.wikipedia.org/wiki/Amortization_calculator But please don't rely on me with this. Double check with existing examples, and be careful about how interest is payed (monthly? yearly? quarterly?). All I'm saying is, the formula /should/ be (roughly) identical. Best give it a shot, fill in your own numbers, and then ask your bank and see if they come up with the same result. It might be a month off, or a month's worth of interest, or I might be completely wrong... Mark ___ 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] protecting graphics
Some excellent ideas here. Thanks! I am not so worried about the screen shots. However, I AM worried about people extracting my very complex vector graphics, scaling them anyway they choose and printing any dimensions etc that they want and maybe reselling in a market I would never think to check. I had considered something along the way of the SVG solution you suggest Michael, but yes its WAY to much extra work as far as I can imagine. If anyone else is inspired to give me his 2 cents worth as to how to construct the loading of a maps graphical elements to make it difficult to reconstruct, I'm all ears. All the best, L. Stanford Vinson www.wegame.dk On 9/14/07, Stanford Vinson [EMAIL PROTECTED] wrote: I am looking for a way to make it very difficult for a user who downloads my flash APP to extract the graphics. Can anyone help? Here is my situation: Do all you want, but you'll never prevent anyone from taking screenshots. I've heard (and I don't know if this is true or not) that mapmaking companies will actually occasionally make up a street (like an out-of-the way cul-de-sac or something). That way, if someone copies them (as opposed to doing the actual legwork), they can prove it. One safeguard I can think of would be to create a proprietary format (preferably binary) for vectors and then render it in Flash using Graphics objects. You could save out the vector maps as SVG files, write some code to translate SVG to your format, and then have your live app use the proprietary format. That would be a lot of work, though. Again, ti wouldn't prevent anyone from taking screenshots, but it would make stealing the vector source much much harder. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 http://exopolis.com/ -- http://tmkeesey.net/ ___ 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] how are they doing this? Papervision3d or pre-rendered 3d?
It's video. On Sep 15, 2007, at 1:27 AM, Carl Welch wrote: Hi All, Does any one know how this site achieved its card flipping effect? Papervision3d or pre-rendered 3d? http://www.tripleslanguage.com/?CMP=BAC-1TO1Q3TP7042 Thanks. -- Carl Welch [EMAIL PROTECTED] 805.403.4819 ___ 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] protecting graphics
true, but I assume these maps, being vector, have some nice scaling abilities within flash that would be lost in a screen capture. On 9/14/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: i can always do a screen capture... -- count_schemula ___ 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] Compound interest formula
- Original Message - From: Kerry Thompson [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Saturday, September 15, 2007 7:48 AM Subject: [Flashcoders] Compound interest formula I'm ok with math, but it's not my strong suite. Does somebody have the compound interest formula, preferably in AS2 form? It comes in various forms. The one I need is, given an interest rate, a period of time, and an end goal, what monthly payments do you need to make. In other words, assuming 8% annual return, and you want $1,000,000 in 25 years, how much do you need to set aside each month? Here it is in Lingo (from my book - sorry some line breaks have come in, I'm on a computer with no Director so I had to cut and paste from the documentation). The second function is the one you're looking for (but it calls the first one). Danny on mortgage am, pc, pay, tp --! ARGUMENTS: am (loan amount), pc (APR), pay (monthly payment), --! tp (#monthly, #mixed or #yearly (default), the detail required for output) --! RETURNS: a string giving the rate of repayment on a (capital and repayment) mortgage set the floatprecision to 2 -- (ensures two decimal place output) -- set the monthly interest, as a fraction 1+APR/1200 pc=1+pc/(1200.0) i=0 oldam=am ret= repeat while am0 i=i+1 -- each month, increase the loan by the monthly interest, and decrease it by the fixed payment am=pc*am - pay if am=0 then -- if the amount is less than or equal to zero then the loan has been repayed put At the end of monthithe loan is $0return after ret -- we can also calculate the total money paid in interest put You have paid $(i*pay-oldam+am)in interest. after ret am=0 else if (i mod 12) = 0 then tx=yeari/12 else tx=monthi if tp=#monthly or (tp=#mixed and i12) or ((i mod 12) =0) then put At the end oftxthe loan is $amreturn after ret end if end if end repeat return ret end on mortgagecalc am, pc, yr --! ARGUMENTS: am (loan amount), pc (APR), yr (number of years), --! RETURNS: a string giving the monthly payment for a (capital and repayment) mortgage at the given APR i = 1+pc/1200.0 mth=yr*12 pow=power(i,mth) pay=am*pow*(i-1)/(pow-1) put Monthly payment ispay mortgage(am,pc,pay,#year) end ___ 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] Reliable way to split a string into an array oflines?
I find this fast and reliable... var lines:Array = str.split (\r\n).join(\n).split(\r).join(\n).split(\n); That's pretty much exactly what I ended up doing, thanks. Danny ___ 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] [Script_in_Action] Re: My problem...
Coding questions should be discussed on flashcoders. This is a forum for ActionsScript resources only. It is not intended to be a place to discuss code. Flashcoders has a much more active community and you will get a lot of help there. If you come across a component, framework, book or tutorial that you think is worth sharing, add a link here. Ron ___ 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] Re: [Script_in_Action] Re: My problem...
I started gathering sites/articles/etc.. of interest here: http://del.icio.us/FlashCoder - Original Message - From: Ron Wheeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 09, 2007 2:26 PM Subject: [Script_in_Action] Re: My problem... Coding questions should be discussed on flashcoders. This is a forum for ActionsScript resources only. It is not intended to be a place to discuss code. Flashcoders has a much more active community and you will get a lot of help there. If you come across a component, framework, book or tutorial that you think is worth sharing, add a link here. Ron ___ 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] protecting graphics
You could try and save your vector data, or SVG, in a database (SQL) and retrieve your map through remoting. you would then only need to parse back the vector data in Flash. But then I guess this could be tough on the user's CPU ! Alain Stanford Vinson wrote: Some excellent ideas here. Thanks! I am not so worried about the screen shots. However, I AM worried about people extracting my very complex vector graphics, scaling them anyway they choose and printing any dimensions etc that they want and maybe reselling in a market I would never think to check. I had considered something along the way of the SVG solution you suggest Michael, but yes its WAY to much extra work as far as I can imagine. If anyone else is inspired to give me his 2 cents worth as to how to construct the loading of a maps graphical elements to make it difficult to reconstruct, I'm all ears. All the best, L. Stanford Vinson www.wegame.dk On 9/14/07, Stanford Vinson [EMAIL PROTECTED] wrote: I am looking for a way to make it very difficult for a user who downloads my flash APP to extract the graphics. Can anyone help? Here is my situation: Do all you want, but you'll never prevent anyone from taking screenshots. I've heard (and I don't know if this is true or not) that mapmaking companies will actually occasionally make up a street (like an out-of-the way cul-de-sac or something). That way, if someone copies them (as opposed to doing the actual legwork), they can prove it. One safeguard I can think of would be to create a proprietary format (preferably binary) for vectors and then render it in Flash using Graphics objects. You could save out the vector maps as SVG files, write some code to translate SVG to your format, and then have your live app use the proprietary format. That would be a lot of work, though. Again, ti wouldn't prevent anyone from taking screenshots, but it would make stealing the vector source much much harder. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 http://exopolis.com/ -- http://tmkeesey.net/ ___ 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
Re: [Flashcoders] how are they doing this? Papervision3d or pre-rendered 3d?
I disagree, IMO tthe only video involved would be the initial sequence of the cards falling though that could easily be an image sequence. It is more likely that just the card turning effect is pre-rendered and the card content is composited at runtime. When the card turns you can see a slight crease in the middle of the content. It appears as though they are blitting the content to two bitmap objects (one left and one right side) then using a distortion technique to make the content conform to the card flipping animation. I would imagine that they have a single pre-rendered animation that they are applying a hue difference to in order to reuse it for all cards. They developers also seem to be doing some clever stuff to make each card unique... so perhaps the static cards are pre-rendered for each and only the flip animation is re-used. Arse www.snepo.com www.arseiam.com On 17/09/2007, at 7:50 AM, Jon Bradley wrote: It's video. On Sep 15, 2007, at 1:27 AM, Carl Welch wrote: Hi All, Does any one know how this site achieved its card flipping effect? Papervision3d or pre-rendered 3d? http://www.tripleslanguage.com/?CMP=BAC-1TO1Q3TP7042 Thanks. -- Carl Welch [EMAIL PROTECTED] 805.403.4819 ___ 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
Re: [Flashcoders] how are they doing this? Papervision3d or pre-rendered 3d?
I noticed that distortion also, which is why I was confused. I thought maybe that was a signature of papervision. On 9/16/07, Snepo - Arse [EMAIL PROTECTED] wrote: I disagree, IMO tthe only video involved would be the initial sequence of the cards falling though that could easily be an image sequence. It is more likely that just the card turning effect is pre-rendered and the card content is composited at runtime. When the card turns you can see a slight crease in the middle of the content. It appears as though they are blitting the content to two bitmap objects (one left and one right side) then using a distortion technique to make the content conform to the card flipping animation. I would imagine that they have a single pre-rendered animation that they are applying a hue difference to in order to reuse it for all cards. They developers also seem to be doing some clever stuff to make each card unique... so perhaps the static cards are pre-rendered for each and only the flip animation is re-used. Arse www.snepo.com www.arseiam.com On 17/09/2007, at 7:50 AM, Jon Bradley wrote: It's video. On Sep 15, 2007, at 1:27 AM, Carl Welch wrote: Hi All, Does any one know how this site achieved its card flipping effect? Papervision3d or pre-rendered 3d? http://www.tripleslanguage.com/?CMP=BAC-1TO1Q3TP7042 Thanks. -- Carl Welch [EMAIL PROTECTED] 805.403.4819 ___ 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 -- Carl Welch [EMAIL PROTECTED] 805.403.4819 ___ 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] Compound interest formula
Thanks, Danny. I should be able to convert it to ActionScript. Cordially, Kerry Thompson Here it is in Lingo (from my book - sorry some line breaks have come in, I'm on a computer with no Director so I had to cut and paste from the documentation). The second function is the one you're looking for (but it calls the first one). Danny on mortgage am, pc, pay, tp --! ARGUMENTS: am (loan amount), pc (APR), pay (monthly payment), --! tp (#monthly, #mixed or #yearly (default), the detail required for output) --! RETURNS: a string giving the rate of repayment on a (capital and repayment) mortgage set the floatprecision to 2 -- (ensures two decimal place output) -- set the monthly interest, as a fraction 1+APR/1200 pc=1+pc/(1200.0) i=0 oldam=am ret= repeat while am0 i=i+1 -- each month, increase the loan by the monthly interest, and decrease it by the fixed payment am=pc*am - pay if am=0 then -- if the amount is less than or equal to zero then the loan has been repayed put At the end of monthithe loan is $0return after ret -- we can also calculate the total money paid in interest put You have paid $(i*pay-oldam+am)in interest. after ret am=0 else if (i mod 12) = 0 then tx=yeari/12 else tx=monthi if tp=#monthly or (tp=#mixed and i12) or ((i mod 12) =0) then put At the end oftxthe loan is $amreturn after ret end if end if end repeat return ret end on mortgagecalc am, pc, yr --! ARGUMENTS: am (loan amount), pc (APR), yr (number of years), --! RETURNS: a string giving the monthly payment for a (capital and repayment) mortgage at the given APR i = 1+pc/1200.0 mth=yr*12 pow=power(i,mth) pay=am*pow*(i-1)/(pow-1) put Monthly payment ispay mortgage(am,pc,pay,#year) end ___ 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] Compound interest formula
Mark Winterhalder wrote: I wrote: In other words, assuming 8% annual return, and you want $1,000,000 in 25 years, how much do you need to set aside each month? Isn't this the same as amortization of debt? http://en.wikipedia.org/wiki/Amortization_calculator Not quite the same. Amortization of debt is a little different from an annuity. You're decreasing the debt by your payment, minus the interest the bank charges you. As the principal gets smaller, a larger amount of your payment goes to paying the principal. I think you pointed me in the right direction, though. I found a set of formulas in Wikipedia under Time value of money. I think this is the one I want: http://en.wikipedia.org/wiki/Time_value_of_money#Example_5:_Calculate_the_v alue_of_a_regular_savings_deposit_in_the_future. I'll convert that to ActionScript and post it for the archives. Cordially, Kerry Thompson ___ 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