# Loading .swf (photos gallery)

**URL:** <https://forum.kirupa.com/t/loading-swf-photos-gallery/149323>\
**Category:** flash\
**Created:** [May 27, 2005, 8:32pm UTC](https://forum.kirupa.com/t/loading-swf-photos-gallery/149323 "2005-05-27T20:32:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gallo](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Gallo](https://forum.kirupa.com/u/Gallo)\
**Post date:** [May 27, 2005, 8:32pm UTC](https://forum.kirupa.com/t/loading-swf-photos-gallery/149323/1 "2005-05-27T20:32:17Z")

</div>

Hey yo peeps! I really need you r help

im creating a website with a flash section(flash mx 2004) and here is my prob.  
. the flash section have the menu (5 complex btns) and a photo gallery(3 compex btns) all buttons have an animation for roll over n roll out. the thing is that i cant do that when clicking on the gallery btn the selected swf loads.!

here the code im using on the gallery btns:

stop();

this.onEnterFrame = function(){  
if(rewind == true){  
prevFrame();  
}  
}

this.onRollOver = function(){  
rewind = false;  
play();  
}

this.onRollOut = function(){  
rewind = true;  
}

[color=black]this.onRelease = function(){  
[/color][color=black]if (\_root.currMovie == undefined) { [/color]  
[color=black]\_root.currMovie = “1”; [/color]  
[color=black]container.loadMovie(“1.swf”);[/color]  
[color=black]} else if (\_root.currMovie != “1”) { [/color]  
[color=black]if (container.\_currentframe \>= container.midframe) { [/color]  
[color=black]\_root.currMovie = “1”; [/color]  
[color=black]container.play(); [/color]  
[color=black]} [/color]  
[color=black]} [/color]  
[color=black]}[/color]  
}  
PLEASE IF SOME ONE CAN HELP ME ILL BE VERY THNKFUL!  
MESSENGER [GOGAZILLA@HOTMAIL.COM](mailto:GOGAZILLA@HOTMAIL.COM)

THNX!
