Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
interaction:axure_functions [2014/02/13 04:04]
sam created
interaction:axure_functions [2014/07/09 15:04] (current)
Line 1: Line 1:
 ====== Functions ====== ====== Functions ======
  
-It is not possible to define and call a function in Axure. A hack is to create a hidden ​widget and assign an event handler ​to the OnShow event.+It is not possible to define and call a function in Axure. A hack is to create a widget and move the widget by 0,0 pixels. In the OnMove ​event handler ​on the widget perform the function.
  
 <​code>​ <​code>​
-OnShow: +OnMove:
-  Hide this widget.+
   Do more..   Do more..
 </​code>​ </​code>​
  
-To call the "​function" ​show the widget. ​The widget ​hide itself and then perform the other actions.+To call the "​function" ​move the widget ​by 0,0 pixelsIn the OnMove event hanlder on the widget perform the actions.