Hi folks. I have a curious problem re re-starting a behavior. Its the old story of "it used to work and now it doesnt and I dont know what I did to make it stop working" problem.
I have a play/pause button which is supposed to do what it says to a behavior. the code is: private void pausePlayButtonActionPerformed(java.awt.event.ActionEvent evt) { if(pausePlayButton.getLabel().equals("Pause")) { pausePlayButton.setLabel("Play"); presetMovementBehavior.pauseActive = true; }else { pausePlayButton.setLabel("Pause"); presetMovementBehavior.pauseActive = false; presetMovementBehavior.setEnable(true); System.out.println("presetMovementBehavior enabled Flag = " + presetMovementBehavior.getEnable()); >>>>>>returns "true" when run } in the behavior processStimulus the code is: if(!pauseActive) { wakeupOn(WakeUpCriteriorWakeupOr); // chuggs along happily }else { this.setEnable(false); wakeupOn(new WakeupOnElapsedTime(1)); } The symptoms are the behavior just doesnt wake up. The behavior sheduler doesnt get the message or is ignoring it I am not removing the behavior from the sceenGraph etc etc etc. Effectively all Im doing is stopping it and trying to restart it. Like I say "it used to work. "standard programmers reply? "Ive never seen it do that before":?) Any Ideas ? Kind Regards Adrian =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".