# Roll out and Press problem

**URL:** <https://forum.kirupa.com/t/roll-out-and-press-problem/11042>\
**Category:** flash\
**Created:** [January 11, 2003, 1:51am UTC](https://forum.kirupa.com/t/roll-out-and-press-problem/11042 "2003-01-11T01:51:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wizkid](https://avatars.discourse-cdn.com/v4/letter/w/f17d59/32.png) [@Wizkid](https://forum.kirupa.com/u/Wizkid)\
**Post date:** [January 11, 2003, 1:51am UTC](https://forum.kirupa.com/t/roll-out-and-press-problem/11042/1 "2003-01-11T01:51:27Z")

</div>

I want to make a button where if you roll out it it loads a swf and a text, but once rollOut it disappears and then when you press it loads a different swf and txt. The problem is that the roll over cmd make the press button not work, so when you press the button and u move the mouse away it unloads it too. Any ideas?:q:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 11, 2003, 2:46am UTC](https://forum.kirupa.com/t/roll-out-and-press-problem/11042/2 "2003-01-11T02:46:34Z")

</div>

Well theres probably an issue with your code. This worked in my example.  
on (rollOver) {  
loadMovie(“export.swf”, “first\_mc”);  
}  
on (rollOut) {  
unloadMovie(“first\_mc”);  
}  
on (release) {  
loadMovie(“new.swf”,"new\_mc);  
myTextField.text = “Hello”;  
}  
Try this, hope it helps

Kyle

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 11, 2003, 11:45am UTC](https://forum.kirupa.com/t/roll-out-and-press-problem/11042/3 "2003-01-11T11:45:17Z")

</div>

But how do I unload the txt if I loaded it in RollOver?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 12, 2003, 1:27am UTC](https://forum.kirupa.com/t/roll-out-and-press-problem/11042/4 "2003-01-12T01:27:33Z")

</div>

This should work, your not loading an external .txt file are you? If so the code is different.

on(rollOver){  
myTextField.text = “Hello”;  
on(rollOut){  
myTextField.text = “”;  
}

Dont copy and paste the code but thats what it should look like.

Hope this helps

Kyle

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 12, 2003, 2:02am UTC](https://forum.kirupa.com/t/roll-out-and-press-problem/11042/5 "2003-01-12T02:02:43Z")

</div>

:beam: THXS I’ve worked out the code to load an external txt. Thx for the help
