# Getting image path from a loader object

**URL:** https://forum.kirupa.com/t/getting-image-path-from-a-loader-object/329056
**Category:** flash
**Created:** [July 17, 2012, 10:15am UTC](https://forum.kirupa.com/t/getting-image-path-from-a-loader-object/329056 "2012-07-17T10:15:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![black\_pearl](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@black\_pearl](https://forum.kirupa.com/u/black_pearl)
#### Post date: [July 17, 2012, 10:15am UTC](https://forum.kirupa.com/t/getting-image-path-from-a-loader-object/329056/1 "2012-07-17T10:15:20Z")

</div>

Hi  
I have a loader object in a movieclip where I am loading images using loop and fetching data from XML file. Finally, when all the images are loaded, I want to save the loaded images path in an array.

I tried to get the images path using loader.contentLoaderInfo.url.This is working but it returns me the entire path like (file:///D|/salim/…png). Is there any way by which, I could get the image name only and not the entire path.

Regards,  
Salim
