on another note (so grateful for your help)

i seem to be losing part of my array from one function to another

var productArray:Array = []; //<--contains 8 items, each of which has a variations parameter with 4 items in

function createVariationColumn(product:Number) {
        var productVariations:String;
        
for (var i:Number = 0; i < productArray[product].variations.length; i ++) { productVariations = "<p><a href='asfunction:_parent.itemOverlay,"+product+","+i+"'>I'd like to view this</a></p>";

//traces 8
                trace (productArray.length);

//traces 4
                trace (productArray[product].variations.length);
        }
}

function itemOverlay() {
//thanks Muzak :D
        var args:Array = arguments[0].split(",");
        var product:Number = args[0];
        var variation:Number = args[1];

//traces 8
                trace (productArray.length);

//traces undefined
                trace (productArray[product].variations.length);
}

so from one function call to the next function call, my variations parameter of productArray has disappeared (although productArray is still there)

Xo
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to