Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Javascript and Arrays



Hi All,

Is there a problem with Javascript patch and Arrays?

Please take  a look at the following code. It crashes 
my quartz composer app.

I just put this code in a Javascript patch and print the output[0]
with patches Image with String and Billboard. 

My inputs[0] is a Patch Timer just to have multiple calls
at javascript patch.

var x = outputs[0];

if ((x == null) || (x == undefined)) {
	x = new Array(10);
}

x[0] = 5;

outputs[0] = x;

I have done that to store an array of values that can be used
after in another calls.

Thanks in advance,

William Maluf Loureiro
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.