this is a strange one for asfunction

i'm constructing my <a> function call like this

productVariations += "<p><a href='asfunction:_parent.itemOverlay,"+product+","+i+"'>I'd like to view this</a></p>";

to pass 2 dynamic variables - product and i - to the itemOverlay function but if i run

function itemOverlay(product:Number, variation:Number) {
        trace ("product: "+product+"   variation: "+variation);
}

i get a trace of

product: 0,0   variation: undefined

so the asfunction call is passing 0,0 to the first (Number) variable leaving no more arguements for the second one

what did i do wrong?

hope you can help
obie
_______________________________________________
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