macros:example:toggletopage1andback
This is an old revision of the document!
Table of Contents
Example
Toggle to page 1 and back
by: | Sebastian Beutel, February 2019 |
---|---|
published: | here |
description: | toggle to playback page 1, and back again |
remarks: | idea see https://www.facebook.com/groups/Avolites/permalink/1455887577876805 |
functions
affected properties
control structures
- nested if conditions, see Control Structures
Code
- TogglePbPage1.xml
<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <!-- idea see https://www.facebook.com/groups/Avolites/permalink/1455887577876805/ --> <!-- Sebastian Beutel, February 2019 --> <macro id="Macros.TogglePlaybackPage" name="Toggle PB Page 1 and back"> <sequence> <step> { if(UserMacros.CurrentUserNumber == 1000) { ActionScript.SetProperty("UserMacros.CurrentUserNumber", Handles.Playbacks.Page.Index); Handles.Playbacks.ChangePage(0); } else { if (Handles.Playbacks.Page.Index == 0){ Handles.Playbacks.ChangePage(UserMacros.CurrentUserNumber); } ActionScript.SetProperty("UserMacros.CurrentUserNumber", 1000); } } </step> </sequence> </macro> </avolites.macros>
Explanation
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
tbd
How to use it
You could leave a comment if you were logged in.
macros/example/toggletopage1andback.1549546925.txt.gz · Last modified: 2019/02/07 13:42 (external edit)