By terence410
via shinedraw.com
Published: Sep 19 2008 / 16:58
Here we got the second application request (submitted by Maciek). He asked if it is possible to implement a general application which can show a mathematical equation like y = x^3 + x^2 + 2 + 5. I think this is a very difficult topic and what I have done is to illustrate the idea by a simple example. Hope this application will give you some inspiration.
In this sample, the red dot is constantly moving fore and back. However, the y position is determined by an internal function locusFunction. However, the locusFunction is a function pointer only and it points to some functions defined by me. In the Silverlight, I have implemented 4 different locus function. You may also use this framework and implement your own locus easily.
Difference: Passing Function as parameter: var functionPointer:Function [AS3] vs delegate void functionPointer() [C#]
Tweet
SaveShareSend
Tags: .net, flash-flex, frameworks, open source



Add your comment