Hello,
for this purpose first access the Application component, then access the Timer object in this component. To access the Application component exist two approaches GetRoot() method and since version 12 rootthis variable (see also Access the root object). Note, GetRoot() is available in visual components only and it returns a valid value if the component in which context the method is invoked already belongs to the view tree. rootthis is more flexible.
Additionally, during the prototyping, when you test a single component separately, there is no instance of your Application component existing. In such case GetRoot() and rootthis will return a generic Application instance used during the prototyping only. Such generic instance does not contain your Timer. Knowing this, following could be the code to access and enable a timer:
// Access the root object and try to cast it to your expected Application component
var Example::Application yourApplication = (Example::Application)rootthis;
// If the cast was successful, you can access the members of the Application and e.g.
// start a timer existing in the application:
if ( yourApplication )
yourApplication.Timer.Enabled = true;
Best regards
Paul Banach