# Swf going to frame 1 after i load another swf in it

**URL:** <https://forum.kirupa.com/t/swf-going-to-frame-1-after-i-load-another-swf-in-it/222410>\
**Category:** Uncategorized\
**Created:** [April 13, 2007, 5:59am UTC](https://forum.kirupa.com/t/swf-going-to-frame-1-after-i-load-another-swf-in-it/222410 "2007-04-13T05:59:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![c0dx](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@c0dx](https://forum.kirupa.com/u/c0dx)\
**Post date:** [April 13, 2007, 5:59am UTC](https://forum.kirupa.com/t/swf-going-to-frame-1-after-i-load-another-swf-in-it/222410/1 "2007-04-13T05:59:36Z")

</div>

Ok, this is what i did.

I made a small thumbnail, made it a mc and put  
on(rollOver){  
loadMovie(“test.swf”,\_root.drag\_mov);  
};  
on(rollOut){  
unloadMovie(\_root.drag\_mov);  
};

// I wanted to load a swf inside a mc so i can move that mc (drag\_mov) where i want (follow my mouse as long as i hover over the thumbnail. When i roll out it should unload the swf.

test.swf has two frames, a loader (frame1) and on frame2 a picture, converted to a mc, and on frame 2 the following script:  
xxl.\_x = \_xmouse;  
xxl.\_y = \_ymouse;  
xxl.startDrag();

//xxl is what i named the mc with the picture iside.

If i open my main swf file, roll over the thumbnail, i can get a glympse at the loader and then my swf goes to frame 1(my main swf). I did not get this error on my browsers (i used IE 6 and Mozilla FIrefox2) but when other people tried to look at the swf (i uploaded it) they got the error mentioned above.

I really need to get this to work because i have a deadline.

I am using Flash8 and AS2.

If you know another way of loading a swf and making it follow the mouse as long as i hover a button then unload it when i rollout, please tell me.

Thank you.

P.s. i haven’t tried to put the following script on my thumbnail mc:  
on(rollOver){  
loadMovieNum(“test.swf”,10);  
};  
on(rollOut){  
unloadMovieNum(10);  
};
