# Need advice on slideshow

**URL:** <https://forum.kirupa.com/t/need-advice-on-slideshow/297161>\
**Category:** Uncategorized\
**Created:** [September 26, 2009, 3:25pm UTC](https://forum.kirupa.com/t/need-advice-on-slideshow/297161 "2009-09-26T15:25:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![regbolD](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@regbolD](https://forum.kirupa.com/u/regbolD)\
**Post date:** [September 26, 2009, 3:25pm UTC](https://forum.kirupa.com/t/need-advice-on-slideshow/297161/1 "2009-09-26T15:25:46Z")

</div>

I dont know wheather to create a new instance of a loader each time:

var loader:Loader;

someFunction(){  
loader = new Loader();  
loader.load(new URLRequest( url );  
}

or reuse the old one and just call load each time:

someFunction(){  
loader.load(new URLRequest( url );  
}

Second question is (if I use the second way) why do I need to unload the loader before calling load again?  
(otherwise I get an error)

it works either way as I figured by I dont know what is better…
