# Actionscript Reload by Frame

**URL:** <https://forum.kirupa.com/t/actionscript-reload-by-frame/281188>\
**Category:** flash\
**Created:** [February 5, 2009, 9:44pm UTC](https://forum.kirupa.com/t/actionscript-reload-by-frame/281188 "2009-02-05T21:44:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![justlearning](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@justlearning](https://forum.kirupa.com/u/justlearning)\
**Post date:** [February 5, 2009, 9:44pm UTC](https://forum.kirupa.com/t/actionscript-reload-by-frame/281188/1 "2009-02-05T21:44:51Z")

</div>

My flash site has buttons to go to the next frame. the Buttons are Home, Print, Videos. So clicking each brings you to the appropriate frame. I have a bunch of actionscript on the first frame to load thumbnails and larger images through XML. Can i just keyframe the Actionscript on each frame and just change the XML attributes it calls? is that the same as reloading it?

Or is there some code i need to insert that specifcally wipes out any previous code and loads the code on the specific frame?
