The problem is that you are re-initializing the array every time this
is executed. Move its declaration outside of main.
.xX
On Dec 18, 2007, at 5:38 AM, Christopher Wright <[EMAIL PROTECTED]>
wrote:
It doesn't work, however.
I'm sure it's to do with the way I initialise the
'presets' Array. I haven't used Arrays a lot in
JavaScript, so I'm a bit confused. If someone could
point me in the right direction, I'd be really
grateful.
I'm no JS expert, so I may be totally wrong. That said, you're
allocating result every time it runs (var result = new Object();)
JS by default isn't persistent; meaning, it doesn't retain values
across frames. You need to do some trickery to get it to store
values across frames. Such trickery is documented here: http://www.quartzcompositions.com/phpBB2/mediawiki/index.php/JavaScript#Persistent_Memory
(That's for Tiger, but I've had success using similar constructs
in Leopard).
Hopefully this is the issue....
--
[ christopher wright ]
[EMAIL PROTECTED]
http://kineme.net/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected]
)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/asabatelli%40apple.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]