Variable Dynamic Object

Hey,

I’m trying to reference a dynamic variable for PayPal but can’t seem to find the right function for it. Here’s an example:

_global.paypalObj = new Object();
paypalObj.item_name_1 = 'Book';
paypalObj.amount_1 = '7.99';
paypalObj.quantity_1 = txtBookQ.text;
paypalObj.shipping_1 = '1.95';

The problem is I need to replace the "1"s after .item_name_ , amount_ etc. with a variable such as “i”.

Normally, I’d mess with this[] or eval() but I’m not sure how to do it.

Anyone have any ideas?

Thanks,
Nick