And we should guess the error I suppose?
Not sure what all the commented dashes are for, since they definitely don't contribute to readability. Furthermore, try making sure you use correct indentation and keep your brackets matched up.
My guess is that your function can't be found, which is not surprising, considering where it's located
You're also using the outdated 'Spark' rather than the current 'Particle', as well as the old variable notation.
A quick look at the docs would go a long way.