Hello,
Is it possible to get the remaining time for baton after setting timeOut, or do I have to maintain a separate Timer for that?
Been following this excellent tutorial here http://tv.adobe.com/watch/adc-presents/create-shared-forms-in-livecycle-collaboration-service/
Solved! Go to Solution.
Views
Replies
Total Likes
That's no big deal - just extend BatonProperty and replace instantiation of
the Baton with your extended Baton, then add a getter which returns that new
getter you added to Baton..
nigel
Views
Replies
Total Likes
I think I will have to try and get _autoPutDownTimer , perhaps through some inheritance. Have to brush up on my OOP skillset
Views
Replies
Total Likes
Yeah, I'd definitely extend the existing class, and add a timestamp variable (flash.utils.getTimer() can work) every time the _autoPutDownTimer is started or extended. Then you can add a public getter :
public function get timeOutTimeLeft():int
{
return (_autoPutDownTimer.delay - getTimer()-timestamp);
}
hope that helps
nigel
Thanks Nigel, before reading your reply, I came up with something like this, but it seems extending the Baton class is not enough, as I would need my own BatonProperty as well that uses this extended Baton class...
Also attempted to get some help here http://stackoverflow.com/questions/7116814/actionscript3-lccs-how-to-access-property-parent-class-pr...
Could this be made into a feature request for Baton and BatonProperty, se we could easily get the remaining time please? I guess I can wait for a future release.
/custom as file /
Views
Replies
Total Likes
That's no big deal - just extend BatonProperty and replace instantiation of
the Baton with your extended Baton, then add a getter which returns that new
getter you added to Baton..
nigel
Views
Replies
Total Likes
Thanks Nigel, will do that.
Views
Replies
Total Likes
Views
Likes
Replies