{"__v":26,"_id":"55567c08150ba30d00f4e24a","category":{"__v":34,"_id":"555627c5ea5e120d001884ff","pages":["555627c6ea5e120d00188501","55562fbdea5e120d00188526","5556368b150ba30d00f4e0b7","5556590e26e9bc0d0044eb61","55567be0150ba30d00f4e248","55567bf026e9bc0d0044ec55","55567c08150ba30d00f4e24a","55567c14150ba30d00f4e24c","55567c4426e9bc0d0044ec59","55567c501026001900d72abc","55567c5926e9bc0d0044ec5d","55567c9a1026001900d72abf","55567cd9150ba30d00f4e24f","55567ce4150ba30d00f4e251","55567ced26e9bc0d0044ec61","555698d62f6b480d0034d9a4","55e0c386dc6b2e170074f2e3","55e0c5e15087cb1900986c16","55e0f99926f51b0d009b1744","567b35067c40060d0056041d","567b3531ee052b1700dbd9da","56846a5a65976e0d00001c57","5684783bc11c7e0d00aaff71","56847cb55a66610d006eabbd","56848a0cf72e9e0d00e098e5","568ccdf38602880d001ce230","569431fcd8c04d1700e5ae05","569ebe1ad233620d007055fb","569edd718f6d4b0d00f13b91","56aa5c3d13a69a0d00a77a09","56aa6eda4d38401900199f7a","56c7a7d5f9aa3b0d00c8457b","56d0ab1440d36e1d00bc143b","56ec9c5a493ce620008ea4c8"],"project":"555627c4ea5e120d001884fb","version":"555627c4ea5e120d001884fe","reference":false,"createdAt":"2015-05-15T17:07:17.512Z","from_sync":false,"order":0,"slug":"design","title":"Design Studio"},"project":"555627c4ea5e120d001884fb","user":"55562799ea5e120d001884f8","version":{"__v":10,"_id":"555627c4ea5e120d001884fe","project":"555627c4ea5e120d001884fb","hasDoc":true,"hasReference":true,"createdAt":"2015-05-15T17:07:16.918Z","releaseDate":"2015-05-15T17:07:16.918Z","categories":["555627c5ea5e120d001884ff","55562a5526e9bc0d0044ea47","555653821026001900d72a3c","5556685c1026001900d72a85","5556687626e9bc0d0044ec04","555668821026001900d72a87","55566892150ba30d00f4e206","555668b826e9bc0d0044ec05","55e0fb6026f51b0d009b1746","567b3b3017368a0d009a6e54"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"createdAt":"2015-05-15T23:06:48.054Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"* [Actions Panel](#actions-panel)\n* [Action Triggers](#action-triggers)\n* [Action Events](#action-events) \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Actions Panel\"\n}\n[/block]\nThe Actions Panel is now available in Design Studio HTML5. This article will cover how and where the Actions functionality can be set up.\n\nThis new panel can be toggled from the toolbar.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/Fq612hVdSVWqHZjS5WQO\",\n        \"Screen+Shot+2014-07-24+at+10.04.28+AM.png\",\n        \"416\",\n        \"135\",\n        \"#22435e\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**Triggers** - Triggers are inputs that can be used to trigger the occurrence of an event.\n**Events** - These are the standard events that are available for all layers. Underneath each event type is a list of additional settings that need to be filled in for each event type.\n**Triggers column** - This column appears on the left side of the Actions inspector and will display all Triggers for the Selected Layer or for All Layers.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/bEuer96aSJaI1LzhOopB\",\n        \"Screen+Shot+2014-07-24+at+9.52.02+AM.png\",\n        \"174\",\n        \"127\",\n        \"#5a90c1\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**Events column** - This column appears on the right side of the Actions inspector and will display Events for the Selected Layer or for All Layers.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/Rk6pjPNpQduTnyAV6QMh\",\n        \"Screen+Shot+2014-07-24+at+9.52.18+AM.png\",\n        \"238\",\n        \"125\",\n        \"#416fa4\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**Action Rows** - Action rows are horizontal groups in the Actions inspector. An action row will display a pairing of Trigger(s) and Event(s) associated with a particular Layer.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/wqLcKI3TqCtwphJzcHGw\",\n        \"Screen+Shot+2014-07-24+at+9.52.37+AM.png\",\n        \"536\",\n        \"185\",\n        \"#d85349\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**Event sequencing** - You can chain events together by using the New Event Left / New Event Right. This allows Events to happen in sequence from left to right based on Trigger or group of Triggers. The leftmost Event will fire, once completed, the next Event to the right will fire.\n\n  * **New Event Right** - Adds an Event to the right of the selected Event in the same sequence. This event will take place next in the Event sequence.\n  * **New Event Left** - Adds an Event to the left of the selected Event in the same sequence. This Event will take place prior to the selected Event.\n  * **New Event Below** - Adds an Event below the selected Event and creates a new Event sequence (chain of Events).\n  * **New Event Above** - Adds an Event above the selected Event and creates a new Event sequence (chain of Events).\n  * **Duplicate Event Right** - Creates a duplicate of an Event including all its settings and adds it to the right of the selected Event in the Event sequence.\n  * **Duplicate Event Left** - Creates a duplicate of an Event including all its settings and adds it to the left of the selected Event in the Event sequence. \n\n**Multiple Triggers** - You can add multiple Triggers in an Action row to trigger the same Event sequence. For example you can trigger a sequence of Events based on a click on 2 or more buttons.\n\n  * **New Trigger Above** - Adds a new Trigger above the selected Trigger within the same Action row.\n  * **New Trigger Below** - Adds a new Trigger below the selected Trigger within the same Action row. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/dKLGszFMRNWJdlH5FY64\",\n        \"Screen+Shot+2014-07-24+at+9.52.47+AM.png\",\n        \"533\",\n        \"138\",\n        \"#214569\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**Context Menu** - A right-click on a Trigger or Event will bring up the Context Menu. This convenient menu will allow you to:\n  * add a New Event Right\n  * add a New Event Left\n  * add a New Event Below\n  * add a New Event Above\n  * Duplicate Event Right\n  * Duplicate Event Left \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/bk82w6aCTR2betW4iw0A\",\n        \"Screen+Shot+2014-07-24+at+9.52.58+AM.png\",\n        \"235\",\n        \"216\",\n        \"#65afe2\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**Target Self** - When configuring an event, you will be able to set a target layer for that event which will bring up a layer selection menu. Clicking on a specific layer will set that as the target for your event. Selecting “Target Self” will target the same layer that the trigger has been set on.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/eP6vDuxNTzulCYPAsMvu\",\n        \"Screen+Shot+2014-07-24+at+9.53.07+AM.png\",\n        \"228\",\n        \"76\",\n        \"#1c3c54\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**Layer Filter Dropdown** - This dropdown allows you to see Triggers and Event set on a specific Layer or for all Layers contained within your ad.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/ulWV8x6YTBKgTxmt5RRV\",\n        \"Screen+Shot+2014-07-24+at+9.53.19+AM.png\",\n        \"292\",\n        \"121\",\n        \"#3f7ebb\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**Add/Delete Action row** - To add or remove an Action row in your panel, click the “+” or “-” symbols located at the top right of the Actions panel.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/bQbxPzx7TAePlfEgCxDm\",\n        \"Screen+Shot+2014-07-24+at+9.53.29+AM.png\",\n        \"502\",\n        \"133\",\n        \"#36506b\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**Adding Actions to the Stage** - It is now possible to set an Action on the Stage, rather than a specific layer. This allows you to trigger Events when the stage is shown or receives a message, and removes the need for unecessary layers to send and receive messages when the ad loads. Actions on the Stage level are limited to two triggers: \n  * On Show: Triggers an Event when the Stage loads.\n  * Message: Triggers an Event when the Stage receives a message from another layer. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/MkF1DeQjQbOfANb1H6Ck\",\n        \"O2vQcuRtnM-3000x3000.png\",\n        \"574\",\n        \"214\",\n        \"#1c3e5c\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n## Video Tutorial\nHere is a video tutorial that walks through how to use the Actions & Animations panel. \n\nClick here to open the example ad used in this training within your own Flite account: [http://bit.ly/1qATArl](http://bit.ly/1qATArl) \n[block:embed]\n{\n  \"html\": \"<iframe class=\\\"embedly-embed\\\" src=\\\"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsfupDz9AqN4%3Ffeature%3Doembed&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsfupDz9AqN4&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsfupDz9AqN4%2Fhqdefault.jpg&key=02466f963b9b4bb8845a05b53d3235d7&type=text%2Fhtml&schema=youtube\\\" width=\\\"854\\\" height=\\\"480\\\" scrolling=\\\"no\\\" frameborder=\\\"0\\\" allowfullscreen></iframe>\",\n  \"url\": \"https://www.youtube.com/watch?v=sfupDz9AqN4\",\n  \"title\": \"Flite Ad Design part 6: Actions and Animations (HTML5)\",\n  \"favicon\": \"https://s.ytimg.com/yts/img/favicon-vflz7uhzw.ico\",\n  \"image\": \"https://i.ytimg.com/vi/sfupDz9AqN4/hqdefault.jpg\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Action Triggers\"\n}\n[/block]\nActions allow you to manipulate layers to affect the ad throughout the user's experience. All actions begin with a trigger which defines what event will cause the defined actions to happen. *Triggers* are applied to specific layers and  Here are the available triggers in Design Studio HTML5:\n\n  * **Tap/Click** - When the user clicks or taps the layer\n  * **On Show** - When the layer is shown\n  * **On Hide** - When the layer is hidden\n  * **Mouse Over** - When the user's mouse cursor passes over the layer\n    * **Threshold** - Defines how long the user's mouse must remain on the layer before the trigger fires\n  * **Mouse Out** - When the user's mouse cursor passes off the layer\n  * **Tap** - When the user taps the layer on a mobile device *(mobile only)*\n  * **Swipe** - When the user swipes the layer on a mobile device *(mobile only)*\n    * **Direction** - Defines which direction of swipe will fire the trigger\n  * **Pinch** - When the user pinches their fingers together within the layer *(mobile only)*\n  * **Zoom** - When the user spreads their fingers apart within the layer *(mobile only)*\n  * **Shake Device** - When the user shakes the device *(mobile only)*\n  * **Message** - When a message is broadcast by the ad or from global messaging \n  * **On Close Expansion** - When an expanded stage is closed\n  * **Orientation Change** - When a device's orientation is changed *(mobile only)*\n    * **Orientation** - Which orientation will fire the trigger\n   \nIn addition to these trigger, many Components have their own custom triggers which are specific to their behavior. These are covered in the documentation for the particular components.\n\nThere are also two stage specific triggers which need to be assigned to the Stage itself in the Layers panel:\n  * **In View** - Fired when the stage comes into view\n  * **Out of View** - Fired when the stage goes out of view after being in view\n    * **Threshold** - Define in percentage or pixels how much of the ad must be in view or out of view and for how long in order to fire this trigger \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Action Events\"\n}\n[/block]\nActions allow you to manipulate layers to affect the ad throughout the user's experience. Flite contains many different general actions which can be used, as well as actions which are specific to particular components. The general actions are explained below:\n  * **Show Layer** - Show a targeted layer\n  * **Hide Layer** - Hide a targeted layer\n  * **Animate Layer** - This feature allows you to animate a targeted layer to a specific x/y location within a Stage while setting various properties during the animation. \n  * **Animate To** - Specific x/y coordinates to which the layer will move\n    * **Animate To & From** - Defines both the starting and ending point of the layer during the animation. This is the specific x/y coordinates the layer will start animating from and where it ends the animation\n    * **Set Current Position and Opacity** - This button allows you to move a layer to a particular part of the stage and define its current position and opacity as the Animate To or Animate From value\n    * **Opacity** - The desired opacity on the targeted layer after the animation\n    * **Scale** - The desired size relative to the layers original size after the animation\n    * **Blur** - Adds a blur effect to layers as they animate (in pixels). Note this will not work in Firefox or IE10 due to browser limitations.\n    * **Rotation** - The angle of rotation (in degrees) to which the layer should animate\n    * **Duration** -  The time it will take the animation to happen\n    * **Easing** - Sets easing for the animation \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/nh3c8tRtq90osliuK4ww\",\n        \"animations.png\",\n        \"643\",\n        \"347\",\n        \"#5694bf\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n  * **Layer Defined** - Target a layer to access the actions which are specific to that component\n    * For example, the YouTube component has actions specific only to that component which allow you to play, pause, mute, unmet, and rewind the video. \n  * **Open URL** - Direct the user to a new page\n    * **URL** - The page to which the user should be redirected\n    * **Open links in** - How the page should be opened\n  * **Open App URL** - Open an application to a specific page with an app URI\n  * **Share URL** - Share a specified link with specified text to an available social service\n  * **Open Expansion** - Open a new stage expansion\n    * **Target** - The stage to be opened\n    * **Type** - The style of the expansion\n      * **Expand** - A traditional expansion which opens a new layer on top of the current ad\n\n        * **Hide Close Button** - Hide the default close button\n        * **Expansion Origin** - Define the frame to which the anchor point will attach. If viewport, you can set it to have a Fixed Position on the screen\n        * **Anchor Offset** - The x/y offset in pixels of the position of the expansion\n        * **Anchor Point** - Defines to which corners the expansion will attach\n      * **Lightbox** - An expansion which fills the viewport with an interstitial execution\n        * **Fill Color** - The color of the background mask for the Lightbox\n        * **Fill Opacity** - The opacity of the background mask\n        * **Hide Close Button** - Hide the default close button\n        * **Close on background tap/click** - Allow the expansion to be closed by tapping on the background mask\n      * **Slide** - An expansion which pushes page content horizontally leftward, revealing the expanded stage\n        * **Hide Close Button** - Hide the default close button\n        * **Use Entire Viewport** - The expansion will push the page completely off the viewport\n        * **Align Stages** - Defines how the expansion and the default stage will align\n        * **Duration** - How long the slide animation will take\n      * **Pushdown** - An expansion in which the content of a page is pushed down to reveal the second stage of an ad. See the [Pushdown FAQ](http://help.fliteinc.com/ad-studio/pushdown-faq.html).\n        * **Resize to selected stage** - Instantly resize the container to the target stage rather than managing through actions\n        * **Hide Default Stage** - Remove the default stage from the ad execution\n  * **Close All Expansions** - Used on the default stage to close any open expansions\n  * **Go To Stage** - Change the current stage to a different stage. Note that this should not be used for expansions\n  * **Close This Stage** - Used on stages which are expansions in order to close the expansion\n  * **Fit Container to Stage** - Resize the container of the ad unit in order to give room for a pushdown expansion\n  * **Add a Delay** - Create a delay between actions\n  * **Add a Loop** - Loop a string of action for the designated number of loops\n  * **Broadcast Message** - Send a message to be used with Flite's messaging system\n  * **Execute JavaScript** - Run the JavaScript function that you have placed in the Code field\n  * **Fire Pixel** - Ping a third party tracking pixel\n  * **Send Email** - Open the user's email client with a repopulated email\n  * **Call Phone Number** - Dial a specified phone number\n  * **Create Calendar Event** - Create an event for a mobile device's calendar\n \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/sGsL0ulhSr23Hb7npRNC\",\n        \"Screen+Shot+2015-07-28+at+1.40.59+PM.png\",\n        \"604\",\n        \"506\",\n        \"#04374b\",\n        \"\"\n      ],\n      \"caption\": \"Open Expansion Action Event\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"design-studio-working-with-actions","type":"basic","title":"Working with Actions"}

Working with Actions


* [Actions Panel](#actions-panel) * [Action Triggers](#action-triggers) * [Action Events](#action-events) [block:api-header] { "type": "basic", "title": "Actions Panel" } [/block] The Actions Panel is now available in Design Studio HTML5. This article will cover how and where the Actions functionality can be set up. This new panel can be toggled from the toolbar. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/Fq612hVdSVWqHZjS5WQO", "Screen+Shot+2014-07-24+at+10.04.28+AM.png", "416", "135", "#22435e", "" ] } ] } [/block] **Triggers** - Triggers are inputs that can be used to trigger the occurrence of an event. **Events** - These are the standard events that are available for all layers. Underneath each event type is a list of additional settings that need to be filled in for each event type. **Triggers column** - This column appears on the left side of the Actions inspector and will display all Triggers for the Selected Layer or for All Layers. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/bEuer96aSJaI1LzhOopB", "Screen+Shot+2014-07-24+at+9.52.02+AM.png", "174", "127", "#5a90c1", "" ] } ] } [/block] **Events column** - This column appears on the right side of the Actions inspector and will display Events for the Selected Layer or for All Layers. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/Rk6pjPNpQduTnyAV6QMh", "Screen+Shot+2014-07-24+at+9.52.18+AM.png", "238", "125", "#416fa4", "" ] } ] } [/block] **Action Rows** - Action rows are horizontal groups in the Actions inspector. An action row will display a pairing of Trigger(s) and Event(s) associated with a particular Layer. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/wqLcKI3TqCtwphJzcHGw", "Screen+Shot+2014-07-24+at+9.52.37+AM.png", "536", "185", "#d85349", "" ] } ] } [/block] **Event sequencing** - You can chain events together by using the New Event Left / New Event Right. This allows Events to happen in sequence from left to right based on Trigger or group of Triggers. The leftmost Event will fire, once completed, the next Event to the right will fire. * **New Event Right** - Adds an Event to the right of the selected Event in the same sequence. This event will take place next in the Event sequence. * **New Event Left** - Adds an Event to the left of the selected Event in the same sequence. This Event will take place prior to the selected Event. * **New Event Below** - Adds an Event below the selected Event and creates a new Event sequence (chain of Events). * **New Event Above** - Adds an Event above the selected Event and creates a new Event sequence (chain of Events). * **Duplicate Event Right** - Creates a duplicate of an Event including all its settings and adds it to the right of the selected Event in the Event sequence. * **Duplicate Event Left** - Creates a duplicate of an Event including all its settings and adds it to the left of the selected Event in the Event sequence. **Multiple Triggers** - You can add multiple Triggers in an Action row to trigger the same Event sequence. For example you can trigger a sequence of Events based on a click on 2 or more buttons. * **New Trigger Above** - Adds a new Trigger above the selected Trigger within the same Action row. * **New Trigger Below** - Adds a new Trigger below the selected Trigger within the same Action row. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/dKLGszFMRNWJdlH5FY64", "Screen+Shot+2014-07-24+at+9.52.47+AM.png", "533", "138", "#214569", "" ] } ] } [/block] **Context Menu** - A right-click on a Trigger or Event will bring up the Context Menu. This convenient menu will allow you to: * add a New Event Right * add a New Event Left * add a New Event Below * add a New Event Above * Duplicate Event Right * Duplicate Event Left [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/bk82w6aCTR2betW4iw0A", "Screen+Shot+2014-07-24+at+9.52.58+AM.png", "235", "216", "#65afe2", "" ] } ] } [/block] **Target Self** - When configuring an event, you will be able to set a target layer for that event which will bring up a layer selection menu. Clicking on a specific layer will set that as the target for your event. Selecting “Target Self” will target the same layer that the trigger has been set on. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/eP6vDuxNTzulCYPAsMvu", "Screen+Shot+2014-07-24+at+9.53.07+AM.png", "228", "76", "#1c3c54", "" ] } ] } [/block] **Layer Filter Dropdown** - This dropdown allows you to see Triggers and Event set on a specific Layer or for all Layers contained within your ad. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/ulWV8x6YTBKgTxmt5RRV", "Screen+Shot+2014-07-24+at+9.53.19+AM.png", "292", "121", "#3f7ebb", "" ] } ] } [/block] **Add/Delete Action row** - To add or remove an Action row in your panel, click the “+” or “-” symbols located at the top right of the Actions panel. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/bQbxPzx7TAePlfEgCxDm", "Screen+Shot+2014-07-24+at+9.53.29+AM.png", "502", "133", "#36506b", "" ] } ] } [/block] **Adding Actions to the Stage** - It is now possible to set an Action on the Stage, rather than a specific layer. This allows you to trigger Events when the stage is shown or receives a message, and removes the need for unecessary layers to send and receive messages when the ad loads. Actions on the Stage level are limited to two triggers: * On Show: Triggers an Event when the Stage loads. * Message: Triggers an Event when the Stage receives a message from another layer. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/MkF1DeQjQbOfANb1H6Ck", "O2vQcuRtnM-3000x3000.png", "574", "214", "#1c3e5c", "" ] } ] } [/block] ## Video Tutorial Here is a video tutorial that walks through how to use the Actions & Animations panel. Click here to open the example ad used in this training within your own Flite account: [http://bit.ly/1qATArl](http://bit.ly/1qATArl) [block:embed] { "html": "<iframe class=\"embedly-embed\" src=\"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsfupDz9AqN4%3Ffeature%3Doembed&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsfupDz9AqN4&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsfupDz9AqN4%2Fhqdefault.jpg&key=02466f963b9b4bb8845a05b53d3235d7&type=text%2Fhtml&schema=youtube\" width=\"854\" height=\"480\" scrolling=\"no\" frameborder=\"0\" allowfullscreen></iframe>", "url": "https://www.youtube.com/watch?v=sfupDz9AqN4", "title": "Flite Ad Design part 6: Actions and Animations (HTML5)", "favicon": "https://s.ytimg.com/yts/img/favicon-vflz7uhzw.ico", "image": "https://i.ytimg.com/vi/sfupDz9AqN4/hqdefault.jpg" } [/block] [block:api-header] { "type": "basic", "title": "Action Triggers" } [/block] Actions allow you to manipulate layers to affect the ad throughout the user's experience. All actions begin with a trigger which defines what event will cause the defined actions to happen. *Triggers* are applied to specific layers and Here are the available triggers in Design Studio HTML5: * **Tap/Click** - When the user clicks or taps the layer * **On Show** - When the layer is shown * **On Hide** - When the layer is hidden * **Mouse Over** - When the user's mouse cursor passes over the layer * **Threshold** - Defines how long the user's mouse must remain on the layer before the trigger fires * **Mouse Out** - When the user's mouse cursor passes off the layer * **Tap** - When the user taps the layer on a mobile device *(mobile only)* * **Swipe** - When the user swipes the layer on a mobile device *(mobile only)* * **Direction** - Defines which direction of swipe will fire the trigger * **Pinch** - When the user pinches their fingers together within the layer *(mobile only)* * **Zoom** - When the user spreads their fingers apart within the layer *(mobile only)* * **Shake Device** - When the user shakes the device *(mobile only)* * **Message** - When a message is broadcast by the ad or from global messaging * **On Close Expansion** - When an expanded stage is closed * **Orientation Change** - When a device's orientation is changed *(mobile only)* * **Orientation** - Which orientation will fire the trigger In addition to these trigger, many Components have their own custom triggers which are specific to their behavior. These are covered in the documentation for the particular components. There are also two stage specific triggers which need to be assigned to the Stage itself in the Layers panel: * **In View** - Fired when the stage comes into view * **Out of View** - Fired when the stage goes out of view after being in view * **Threshold** - Define in percentage or pixels how much of the ad must be in view or out of view and for how long in order to fire this trigger [block:api-header] { "type": "basic", "title": "Action Events" } [/block] Actions allow you to manipulate layers to affect the ad throughout the user's experience. Flite contains many different general actions which can be used, as well as actions which are specific to particular components. The general actions are explained below: * **Show Layer** - Show a targeted layer * **Hide Layer** - Hide a targeted layer * **Animate Layer** - This feature allows you to animate a targeted layer to a specific x/y location within a Stage while setting various properties during the animation. * **Animate To** - Specific x/y coordinates to which the layer will move * **Animate To & From** - Defines both the starting and ending point of the layer during the animation. This is the specific x/y coordinates the layer will start animating from and where it ends the animation * **Set Current Position and Opacity** - This button allows you to move a layer to a particular part of the stage and define its current position and opacity as the Animate To or Animate From value * **Opacity** - The desired opacity on the targeted layer after the animation * **Scale** - The desired size relative to the layers original size after the animation * **Blur** - Adds a blur effect to layers as they animate (in pixels). Note this will not work in Firefox or IE10 due to browser limitations. * **Rotation** - The angle of rotation (in degrees) to which the layer should animate * **Duration** - The time it will take the animation to happen * **Easing** - Sets easing for the animation [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/nh3c8tRtq90osliuK4ww", "animations.png", "643", "347", "#5694bf", "" ] } ] } [/block] * **Layer Defined** - Target a layer to access the actions which are specific to that component * For example, the YouTube component has actions specific only to that component which allow you to play, pause, mute, unmet, and rewind the video. * **Open URL** - Direct the user to a new page * **URL** - The page to which the user should be redirected * **Open links in** - How the page should be opened * **Open App URL** - Open an application to a specific page with an app URI * **Share URL** - Share a specified link with specified text to an available social service * **Open Expansion** - Open a new stage expansion * **Target** - The stage to be opened * **Type** - The style of the expansion * **Expand** - A traditional expansion which opens a new layer on top of the current ad * **Hide Close Button** - Hide the default close button * **Expansion Origin** - Define the frame to which the anchor point will attach. If viewport, you can set it to have a Fixed Position on the screen * **Anchor Offset** - The x/y offset in pixels of the position of the expansion * **Anchor Point** - Defines to which corners the expansion will attach * **Lightbox** - An expansion which fills the viewport with an interstitial execution * **Fill Color** - The color of the background mask for the Lightbox * **Fill Opacity** - The opacity of the background mask * **Hide Close Button** - Hide the default close button * **Close on background tap/click** - Allow the expansion to be closed by tapping on the background mask * **Slide** - An expansion which pushes page content horizontally leftward, revealing the expanded stage * **Hide Close Button** - Hide the default close button * **Use Entire Viewport** - The expansion will push the page completely off the viewport * **Align Stages** - Defines how the expansion and the default stage will align * **Duration** - How long the slide animation will take * **Pushdown** - An expansion in which the content of a page is pushed down to reveal the second stage of an ad. See the [Pushdown FAQ](http://help.fliteinc.com/ad-studio/pushdown-faq.html). * **Resize to selected stage** - Instantly resize the container to the target stage rather than managing through actions * **Hide Default Stage** - Remove the default stage from the ad execution * **Close All Expansions** - Used on the default stage to close any open expansions * **Go To Stage** - Change the current stage to a different stage. Note that this should not be used for expansions * **Close This Stage** - Used on stages which are expansions in order to close the expansion * **Fit Container to Stage** - Resize the container of the ad unit in order to give room for a pushdown expansion * **Add a Delay** - Create a delay between actions * **Add a Loop** - Loop a string of action for the designated number of loops * **Broadcast Message** - Send a message to be used with Flite's messaging system * **Execute JavaScript** - Run the JavaScript function that you have placed in the Code field * **Fire Pixel** - Ping a third party tracking pixel * **Send Email** - Open the user's email client with a repopulated email * **Call Phone Number** - Dial a specified phone number * **Create Calendar Event** - Create an event for a mobile device's calendar [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/sGsL0ulhSr23Hb7npRNC", "Screen+Shot+2015-07-28+at+1.40.59+PM.png", "604", "506", "#04374b", "" ], "caption": "Open Expansion Action Event" } ] } [/block]