# Check if Movie is Loaded

**URL:** <https://forum.kirupa.com/t/check-if-movie-is-loaded/152052>\
**Category:** flash\
**Created:** [June 20, 2005, 9:33pm UTC](https://forum.kirupa.com/t/check-if-movie-is-loaded/152052 "2005-06-20T21:33:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![medo82](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@medo82](https://forum.kirupa.com/u/medo82)\
**Post date:** [June 20, 2005, 9:33pm UTC](https://forum.kirupa.com/t/check-if-movie-is-loaded/152052/1 "2005-06-20T21:33:13Z")

</div>

Hi All

can you please help me in validating the following

i have a button when it’s being pressed a clip1.swf will be loaded on the \_root.screen, and when the mouse rolls out from the button the clip0.swf should be loaded, [color=red]NOW my question[/color]  
[color=#ff0000][/color]  
[color=#ff0000]if the button is NOT pressed (clip1.swf) is not loaded , how can i tell the rollOut action not to load clip0.swf.[/color]  
[color=#ff0000][/color]  
[color=#ff0000]i think it should be something like[/color]  
[color=#ff0000][/color]  
[color=#ff0000]check if(clip1.swf) is loaded [/color]  
[color=#ff0000]do ( load(clip0.swf) ) else[/color]  
[color=#ff0000]do (nothing)[/color]  
[color=#ff0000][/color]  
[color=#ff0000]Please help me out in this, it would be the third time i post a question here and no one answers me . [/color][color=#000000]:crying: :crying:[/color]  
[color=#ff0000][/color]  
[color=#ff0000][/color]

on (press) {  
loadMovie (“clips/clip1.swf”, “\_root.screen”);  
}  
on (rollOut) {  
loadMovie (“clips/clip0.swf”, “\_root.screen”);  
}

many thanks in advance
