Your code looks fine, (other than a lot of redundancy that could be reduced), so it's time to throw some traces in there to be sure the right values are both being set, as well as tripping at different points in the switch statement. I think if you make liberal use of some traces, you will find your problem.
Jason Merrill Bank of America Learning & Organizational Effectiveness _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com