# Call function on screen load

**URL:** <https://forum.kirupa.com/t/call-function-on-screen-load/245404>\
**Category:** Uncategorized\
**Created:** [November 29, 2007, 1:14pm UTC](https://forum.kirupa.com/t/call-function-on-screen-load/245404 "2007-11-29T13:14:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssn\_striker](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@ssn\_striker](https://forum.kirupa.com/u/ssn_striker)\
**Post date:** [November 29, 2007, 1:14pm UTC](https://forum.kirupa.com/t/call-function-on-screen-load/245404/1 "2007-11-29T13:14:48Z")

</div>

I am working on flash application that uses Slideshow screen, now i am trying to call a function when a screen loads; what this function does is it create a focus on one the movie clip.

I tried using the 'onClipEvent(onload) ’ - it does call the function but does not set the focus on it; however if i code setfoucs ( selection.setfoucs) on key handler it sets the focus.

Any help would be appreciated

Thanks  
Harish
