What steps will reproduce the problem?
1. call watch()
2. call unwatch()
3. call watch()
What is the expected output? What do you see instead?
I expected the code to still monitor the file and throw the
FileMonitorEvent.CHANGE event, however, the listener is removed, therefore
the event is never called.
In the file, FileMonitor.as just remove:
timer.removeEventListener(TimerEvent.TIMER, onTimerEvent);
in the function unwatch(). Since you already called timer.stop() there is
no reason to remove the listener.
Thanks,
James Hartig
@fastest963
Original issue reported on code.google.com by fastest...@gmail.com on 1 May 2010 at 7:49
Original issue reported on code.google.com by
fastest...@gmail.com
on 1 May 2010 at 7:49