# Call buttons actions intelligent

**URL:** https://forum.kirupa.com/t/call-buttons-actions-intelligent/54243
**Category:** Uncategorized
**Created:** [June 12, 2004, 9:27am UTC](https://forum.kirupa.com/t/call-buttons-actions-intelligent/54243 "2004-06-12T09:27:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jankratochvil](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jankratochvil/32/566_2.png) [@jankratochvil](https://forum.kirupa.com/u/jankratochvil)
#### Post date: [June 12, 2004, 9:27am UTC](https://forum.kirupa.com/t/call-buttons-actions-intelligent/54243/1 "2004-06-12T09:27:53Z")

</div>

have lot of buttons (50) is possible to call this buttons in other way or must i use this actions?

this is example on 1. frame for 3 buttons

of course in the future ara buttons different actions

code:

// action for 1. button  
\_root.mainMap.map.pan.jewish\_point\_01.onRollOver = function ()  
{  
trace (“jewish\_point\_01 works!”);  
mainMap.map.pan.description\_01.\_visible = true;  
};  
\_root.mainMap.map.pan.jewish\_point\_01.onRollOut = function ()  
{  
trace (“jewish\_point\_01 works!”);  
mainMap.map.pan.description\_01.\_visible = false;  
};  
// action for 2. button  
\_root.mainMap.map.pan.jewish\_point\_02.onRollOver = function ()  
{  
trace (“jewish\_point\_02 works!”);  
mainMap.map.pan.description\_02.\_visible = true;  
};  
\_root.mainMap.map.pan.jewish\_point\_02.onRollOut = function ()  
{  
trace (“jewish\_point\_02 works!”);  
mainMap.map.pan.description\_02.\_visible = false;  
};  
// action for 3. button  
\_root.mainMap.map.pan.jewish\_point\_03.onRollOver = function ()  
{  
trace (“jewish\_point\_03 works!”);  
mainMap.map.pan.description\_03.\_visible = true;  
};  
\_root.mainMap.map.pan.jewish\_point\_03.onRollOut = function ()  
{  
trace (“jewish\_point\_03 works!”);  
mainMap.map.pan.description\_03.\_visible = false;  
};

jan
