Question: How can I make a slider bar update a plot's properties?

I am having a problem working with a slider and a plot component in Maple 14. The slider specifies the domain of an animation I am trying to show. Whenever the slider's value is changed, I have code that should change the plot property "play" to "true" so that the animation begins. However, it fails to play the animation. After some troubleshooting, I found that the exact same code works in a Toggle Button component, and I also discovered that the Slider can change the property of any other component. The animations are formed properly because I can click the plot and press play on the animation tool bar. I simply cannot get the slider to change plot properties. Any thoughts? My slider's code is posted below.

use DocumentTools in

Do(time_end=%Slider0);
Do(Animate=%CheckBox0);
brake[speed]:=rhs(sol(time_end)[3]);

if Animate=false then
Do(%Plot0=odeplot(sol, [t, T[shaft]], 0..time_end, view=[0..10, 0..275]));

Do(%Plot1=odeplot(sol, [diff(theta[brake](t), t), T[shaft]], 0..brake[speed], view=[0..30, 0..280], numpoints=1000));

else

Do(%Plot0=odeplot(sol, [t, T[shaft]], 0..time_end, view=[0..10, 0..275], frames=50));

Do(%Plot1=odeplot(sol, [diff(theta[brake](t), t), T[shaft]], 0..brake[speed], view=[0..30, 0..280], numpoints=1000, frames = 50));

SetProperty('Plot0', 'toStart', true);
SetProperty('Plot0', 'continuous', true);
SetProperty('Plot0', 'play', true);

SetProperty('Plot1', 'toStart', true);
SetProperty('Plot1', 'continuous', true);
SetProperty('Plot1', 'play', true);

end if;
end use;

Please Wait...