hey every body... im working with a picture viewer... and like what i want to happen when you click one of the pictures is for it to load the same picture number from a different source...

so what i have now is when you press one of the pics, it traces which pic it is.... for example

Code:
_level0.images.pic15.pic
or
Code:
_level0.images.pic2.pic
now i just need the part where it says pic# so i thought i would try to rid it from every thing else but that part...

here is my feeble attempt

Code:
trace(this.pic.substring(16, myLOC.length-4))
but its not working for some reason... do i have to make this.pic a string before this is done or something?

thank you for any responses...