So you're trying to dynamically call a target path right? The right way to do this i think is like this:

eval("_root.px"+variable).canvas._alpha = 50;

Hope this works and helps you out.

Greetz

Bart