# Unloading previous frame / component

**URL:** <https://forum.kirupa.com/t/unloading-previous-frame-component/269825>\
**Category:** flash\
**Created:** [September 2, 2008, 3:16am UTC](https://forum.kirupa.com/t/unloading-previous-frame-component/269825 "2008-09-02T03:16:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![youwh](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@youwh](https://forum.kirupa.com/u/youwh)\
**Post date:** [September 2, 2008, 3:16am UTC](https://forum.kirupa.com/t/unloading-previous-frame-component/269825/1 "2008-09-02T03:16:06Z")

</div>

I’m loading in some pictures from the xml file with some script. And I wanted to unload it at the next few frames cause its lagging. How can I do that?  
ActionScript Code:  
[LEFT][COLOR=#0000FF]import[/COLOR] com.[COLOR=#000080]unic8[/COLOR].[COLOR=#000080]media[/COLOR].[COLOR=#000080]Scaena[/COLOR];

[COLOR=#000000] **var** [/COLOR] mySlideShow:Scaena = [COLOR=#000000] **new** [/COLOR] ScaenaCOLOR=#000000[/COLOR];  
mySlideShow.[COLOR=#0000FF]load[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000FF]this[/COLOR], [COLOR=#FF0000]“slide1.xml”[/COLOR], [COLOR=#FF0000]“effects.xml”[/COLOR][COLOR=#000000])[/COLOR];  
[/LEFT]
