Lights ! Camera ! and… Actions !
Several actions and commands can be defined for each component.
These actions can be defined in the <actions> toolbox for all components . They can be also defined in the text editor of a text component.
Action have to be set as follows:
EVENT COMMAND:PARAMETER(S)
Example :
onRelease open:start/layout1/layer2
=> On mouse click release, opens the start/layout1/layer2 page of the website
Keep in mind syntax may vary depending on the type of parameters associated with the command and of the action containers.
Events
Events available for all components :
- Download of all XML datas : XMLLoaded
- Content display : showContent
- Hide content : hideContent
- Start of component loading : onLoad
- End of component loading : onUnload
- Return to a visited layer : onDeeplink
- Press of the mouse button : onPress
- Click on the mouse button : onRelease
- Component overview with the mouse cursor : onRollOver
- Exit of the component zone : onRollOut
Event specific to the image component :
- Start the image loading : onLoadStart
- Loading error : onLoadError
- Loading in progress : onLoadProgress
- Loading end : onLoadComplete
- Loading initialization : onLoadInit
Event specific to the audio component :
- Sound totally played : onSoundComplete
- Sound play : soundPlay
- Sound pause : soundPause
- Sound stop : soundStop
- Id3 metadatas available when MP3 audio file is loaded : soundId3
- End of sound loading : soundLoaded
Event specific to the text component :
- Text changes : onChanged
- Focus lost when enter text : onKillFocus
- Focus shooting when enter text : onSetFocus
- Text scrolling via the scrollbar : onScroller
Event specific to the video component :
- Loading or video error : onStatus
- Reception of an interleaved descritption of the video : onMetadata
- Fulled buffer : bufferFull
- Video that cannot be found : netStreamNotFound
- Video play : netStreamPlay
- Video pause : netStreamPause
- Video stop : netStreamStop
- Start video loading : netStreamStart
- End video loading : netStreamEnd
Commands
Commands available for all components :
- Open a publication layer : open
- Open a website in a new window : http
- Send a mail to : mailto
- Download a library document : download
- Give a Javascript instruction : javascript
- Change a property value (rather use “=”) : set
- Delete a variable : del
- Show a component : show
- Hide a component : hide
- Display a message : trace
- Open a pop-up with a message : alert
- Display a message in Silex : alertSimple
- Send an html text to a script (print or send an e-mail) : send_text
- Return to the previous stage : close
- Config the called tags : tag_config
Commands specific to the audio component :
- Start playing the audio track : PLAY
- Pause the audio track : PAUSE
- Stop the audio track : STOP
- Mute : MUTE
- Unmute : UNMUTE
Commands specific to the text component :
- Scroll the text up : SCROLL_UP
- Scroll the text down : SCROLL_DOWN
- Scroll the text to a specific line : SCROLL_TO
Commands specific to the video component :
- Start playing video : PLAY
- Pause the video : PAUSE
- Stop the video : STOP
- Mute : MUTE
- Unmute : UNMUTE
More informations about commands:
All the commands’ parameters are available here
Look at :





Or login with :
Enter your WordPress.com blog URL
http://.wordpress.com
Proceed