I know it's a problem with is with my JavaScript patch, but it has different results depending on which sprite it is connected to.<JS_Test.qtz>I have a situation where a javaScript patch when connected to one sprite is causing other, unrelated sprites to disappear. If I disconnect the JavaScript path, the other sprites reappear.Anyone have any ideas?Post a composition.
You're not paying attention to the warning in the javascript editor -- it's whining about using 1/0 instead of true/false for booleans (JS is really picky about that for some reason... perhaps a database nerd invented that part, because otherwise JS is pretty ok with on-the-fly type conversions)
And you're also using an index on a string (inputString[0] isn't the same as inputString -- when checking string equality, use the whole string. Perhaps you had an array input though, and just trimmed it down for demonstration purposes).
Fire this up, and see if it fixes things:
function (__boolean outputNumber) main (__string inputString)
{
var result = new Object();
if(inputString=="Amenities")
{
result.outputNumber = true;
}
else
{
result.outputNumber = false;
}
return result;
}
By the way, I wasn't able to see other sprites enable/disable
unexpectedly -- if that's what you're experiencing, can you describe
how to trigger it?
-- [ christopher wright ] [email protected] http://kineme.net/
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]

