Loading the amount of items in folder?

Lets say I specify a folder, “/Pictures” - is there anyway for flash to return a value of all the items (which will be only .jpgs) in this folder?