Hello Jerry,
it seems, your JS produces an empty structure, because you don't have a
connection from your input variables "X/Y/Z" to your pushed ones "_X/_Y/_Z"
(which are declared as global empty arrays).
Is this of any help?
best,
Achim Breidenbach
Boinx Software
On 18.05.2011, at 07:05, Jerry Smith wrote:
> Hello and thanks for listening.
> What javascript method should I use to create a queue of structures?
>
> [javascript]
> _Queue = []
> _X = []
> _Y = []
> _Z = []
> _W = []
>
> function (__structure Queue) main (__structure X, __structure Y, __structure
> Z, __structure W, __index Size)
> {
> var result = new Object();
> //X = new Array();
> //Y = new Array();
> //Z = new Array();
> //W = new Array();
> _Queue.push([_X, _Y, _Z, _W])
> if (_Queue.length > Size) _Queue.shift()
> result.Queue = _Queue;
> return result;
> }
> [/javascript]
>
>
> _______________________________________________
> 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/achim%40boinx.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]