<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Emily,<div class="">See this attached world, and the explanation I sent in my previous message…</div><div class=""><br class=""></div><div class="">If you set the boolean variable to false in the main method, it will become false when the run button is pushed, regardless of when you try to trigger the event listener… You have to change the state (or value) of isActive as part of some other event, or procedure call</div><div class=""><br class=""></div><div class="">One example of using isActive</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">      </span>mouse click on some thing</div><div class=""><span class="Apple-tab-span" style="white-space:pre">         </span>if isActive</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                       </span>call procedure</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                    </span>set isActive to false  // here the event will happen only once, unless isActive is reset to true in some other event or procedure</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">     </span>another event mouse-click or keypress or some other procedure is called</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                   </span>set isActive to true</div><div class=""><br class=""></div><div class="">Another example</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span>mouse click on some thing</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">               </span>if isActive</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                     </span>call procedure  // here the event will happen until isActive is set to false in some other event or procedure call</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                 </span></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>another event mouse-click or keypress or some other procedure is called</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                 </span>set isActive to false </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Let me know if you have any other questions…</div><div class=""><br class=""></div><div class="">All the best,</div><div class="">Don Slater</div><div class=""><br class=""></div><div class=""></div></div></div></body></html>