Actions
From KickApps API Reference
Actions enable you to add behavior or change components' properties in response to events initiated by the user or issued by widget components.
Add an action via the Actions window
- Select a component.
- Open the Actions panel by clicking the Actions option under the Window menu.
- Click the Add Action button.
- The add/edit action window will appear.
- Select the Event that you'd like to trigger your desired action from the Event dropdown. (Tip: type into the dropdown; it auto-completes. Click enter when you see the event you're looking for.)
- Select the Action that you'd like to be executed when the event occurs.
- If the action you chose requires a value, enter the value directly or click Select to choose the value of a component property.
- Click Add.
Remove an action
- Select a component.
- Open the Actions panel.
- Click on the action that you'd like to remove.
- Click the garbage can icon.
Setting values for actions
There are 5 ways to set values for actions:
- Enter a number (you can use up to 2 decimal places).
- Use the value of any property on any component in your widget, including nested properties.
- Syntax:
#{componentName.propertyName}- Example:
#{List1.height}- Access properties of a component's parent using this syntax:
#{Text Area 1.parent.height}- The Advanced List component has a property called contentSource. contentSource returns the raw source of the Advanced List's content, e.g., its RSS, Atom, or XML feed. You can drill into nodes and properties of the contentSource by chaining their names onto contentSource, like so:
#{Advanced List 1.contentSource.channel.item.0.link}- The Advanced List also has a selectedItem property that represents its current item. This property can be chained with another property called xmlSource to retrieve and drill into the raw XML content of the selected item. In the example below, the Advanced List's content is an XML feed from Yes.com containing songs nodes that contain cover nodes containing URLs to cover art.
#{Advanced List.selectedItem.xmlSource.cover}
- Use JavaScript to compute a value from the values of one or more component properties.
- Syntax:
javascript:eval(componentName1.propertyName + componentName2.propertyName)
- Example:
javascript:eval(List1.height + Button1.height)
- You can also abbreviate "javascript" like this:
js:eval(List1.height + Button1.height)
- Call a JavaScript function on the page that the widget is installed on.
- Syntax:
javascript:functionName(optionalVariable)
- Example:
javascript:incrementViewCount(#{VideoPlayer.selectedMedia.title})
- Use relative values to increment or decrement from the current value of a property.
- Syntax:
A number preceded by a plus or minus sign
- Example:
+ 10
Events Reference
Standard Events
- Click
- Component hidden
- Component loaded
- Component shown
- Double click
- Mouse down
- Mouse up
- Roll out
- Roll over
3d Carousel Component
- #Standard Events
- Media Change
3d Gallery Component
- #Standard Events
- Media Change
AppContainer
- Child components loaded
- Click
- Component loaded
- Double click
- Log in user failure
- Log in user success
- Log out user success
- Mouse down
- Mouse move
- Mouse up
- Roll out
- Roll over
- User login status logged in
- User login status not logged in
Audio Component
- #Standard Events
- Media Paused
- Media Playing
- Media Start
- Media End
- Media Percent Complete
- Specify the percentage of playback at which this event should be fired
- Media Time Elapsed
- Specify how many seconds of playback should occur before firing the event (whole seconds only; no decimals)
- Media Change
Auto List Component
- #Standard Events
- Media Change
- Media list loaded
- Fires when the component's feed, playlist, or content URL has loaded
- Useful when you need a component to fetch its content from a list component. Without this event there's no way for you to be sure that the list component's content has actually loaded, which could result in your component attempting to retrieve its content value from the list before the list's content has loaded, resulting in your component's property being set to null. By using the Media list loaded event you can ensure that the list's content has loaded and that your component will be able to access it.
Button Component
- #Standard Events
- Toggled On
- Issued whenever the button's "toggled" property changes from false to true. By default, this event is issued when the user clicks a button for the first, third, fifth, etc., time.
- Toggled Off
- Issued whenever the button's "toggled" property changes from true to false. By default, this event is issued when the user clicks a button for the second, fourth, sixth, etc., time.
Container Component
- #Standard Events
- Child Components Loaded
List Component
- #Standard Events
- Media Change
- Media list loaded
- Fires when the component's feed, playlist, or content URL has loaded
- Useful when you need a component to fetch its content from a list component. Without this event there's no way for you to be sure that the list component's content has actually loaded, which could result in your component attempting to retrieve its content value from the list before the list's content has loaded, resulting in your component's property being set to null. By using the Media list loaded event you can ensure that the list's content has loaded and that your component will be able to access it.
Image/.swf Component
Rating Component
Rectangle Component
Scrubber Component
Slide Component
- #Standard Events
- Media Paused
- Media Playing
- Media Change
Text Component
Text Input Component
- #Standard Events
- Keyboard Enter
- Value Changed
Timer Component
- #Standard Events
- Timer
- This event fires every time the Timer component finishes a cycle.
- Timer Complete
- This event only fires when the timer has completed all of its cycles.
Video Component
- #Standard Events
- Media change
- Media end
- Media list loaded
- Media paused
- Media percent complete
- Specify the percentage of playback at which this event should be fired
- Media playing
- Media start
- Media time elapsed
- Specify how many seconds of playback should occur before firing the event (whole seconds only; no decimals)
- Mouse over
- Request failed georestriction policy
- Request passed georestriction policy
- Video ad end
- Video ad start
Video Player (basic, all-in-one player)
- #Standard Events
- Media change
- Media end
- Media list loaded
- Media paused
- Media percent complete
- Specify the percentage of playback at which this event should be fired
- Media playing
- Media start
- Media time elapsed
- Specify how many seconds of playback should occur before firing the event (whole seconds only; no decimals)
- Mouse over
- Request failed georestriction policy
- Request passed georestriction policy
- Video ad end
- Video ad start
Volume Control Component
Actions Reference
Standard Actions
- Drag/Stop Drag
- Set depth
- Show/Hide
- Tween Blur
- Tween Color
- Tween Drop Shadow
- Tween Glow
- Tween Property
- Update Property
- For a listing of all properties on KickApps components, see our Properties Reference.
3d Carousel Component
- #Standard Actions
- Change Selection
- Set Media URL
- Toggle auto-rotate
- Off/On/Toggle
- Delay: specify number of seconds to wait between the event and executing this action
3d Gallery Component
- #Standard Actions
- Change Selection
- Set Media URL
App Container
Audio Component
- #Standard Actions
- Play/Pause
- Set Media URL
- Change Selection
- Mute
Auto List Component
- #Standard Actions
- Change Selection
- Scroll
- Direction: Forward or Backward
- Specify number of pixels to scroll
- Page Items
- Direction: Forward or Backward
- Option to page by just one media item (default pages by the number of visible list items in the list)
- Set Media URL
- This action lets you set or update the URL from which a component pulls its content
- Select a feed from the dropdown of saved feeds or enter a feed/media URL in the input box
Button Component
Container Component
- Update Property
Image/.swf Component
List Component
- #Standard Actions
- Change Selection
- Scroll
- Direction: Forward or Backward
- Specify number of pixels to scroll
- Page Items
- Direction: Forward or Backward
- Option to page by just one media item (default pages by the number of visible list items in the list)
- Set Media URL
- This action lets you set or update the URL from which a component pulls its content
- Select a feed from the dropdown of saved feeds or enter a feed/media URL in the input box
Rating Component
Rectangle Component
Scrubber Component
Slide Component
- #Standard Actions
- Change Selection
- Fullscreen
- Play/Pause
- Set Media URL
Text Component
Text Input Component
Timer Component
- #Standard Actions
- Toggle Timer
- On/Off/Toggle
- Delay: number of seconds to wait between the event and executing this action
- Reset Timer
- Makes the timer begin cycling as if it had just been loaded for the first time
Video Component
- #Standard Actions
- Change Selection
- Fullscreen
- Mute
- Play/Pause
- Set Media URL
- Video ad end
- Video ad start
Video Player (basic, all-in-one player)
- #Standard Actions
- Change Selection
- Fullscreen
- Mute
- Play/Pause
- Set Media URL
- Video ad end
- Video ad start
Volume Control Component
KickApps Documentation
- Advertising
- Asset Manager
- Audio Sharing
- Blogs
- Categories
- Comments & Ratings
- Customize URLs (DNS Masking)
- Email Marketing
- Events
- Feed Builder
- Flagging Content
- Groups
- Home Page
- Insight
- IP Address Black List
- JanRain's RPX Service
- Language Editor
- Message Boards
- Member Management
- Member To Member Messaging
- Member Summary Emails
- Page Customization (using CSS & JavaScript in the Global Page Template)
- Pages (Custom Pages, Content)
- Photo Sharing
- Points & Levels
- Private Sites
- Private Media
- Private Profiles
- Privacy & Security
- REST API Reference
- RSS API
- Search
- Sets
- Site Styler
- Site Security
- Spam
- Social Networking
- SSO Reference
- Subscription Plans
- System-Generated Emails
- Userplane Chat & IM
- Video Sharing
- Widgets & Video Players



