Drag and drop with a button

Thank you really, I understood the point. Just one last question, I have been trying to access all the imported objects by assets manager bcz I need to arrange their isPickable property but I am not able to do that since there are a lot of meshes and not assigned to variable. I tried to add all the items into an array called library with :
loader.onSuccess = function (task) {
for(var n in task.loadedMeshes) {
library.push(task.loadedMeshes[n]); } }

but I couldnt access all meshes on the function. Or should I use task.loadedMeshes[] ? I would appreciate if you give me an idea to access all the objects imported ?