Actions will execute on one of the following events:
Mouse Click (when the user clicks an item)
Mouse Over (when the mouse cursor is moved over the item)
Mouse Out (when the mouse cursor leaves the item area)
Mouse Up (when the button is released after mouse click occurs)
Creating web links
Select the item and choose "Action" > "Edit Actions" or press Ctrl+K.
Select GetURL option and type the link.
The link should start with http://
You can not use \ instead of /
To popup the link in a new window
Change the target to "_blank". If the link is blocked by pop-up blocker use On Up action (On Click may trigger the pop-up blocker).
To open the link in the same window
Change the target to "_self"
To create an email button
Draw or create a button (you can choose "Insert" > "Symbol" and select the envelope symbol),
choose "Action" > "On Click". Select GetURL option, delete "http://" and type the link:
mailto:support@selteco.com
To open the link in a HTML frameset
Type the name of the HTML frame under the Target: field
To define an action when the user clicks and releases the button, select the item and choose Action" > "On Up"
OnClick Action
To define an action when the user clicks the button,
select the item and choose "Action" > "On Click".
OnOver Color
To define how the color should change when the user moves the mouse over the button,
select "Action" > "On Over Color". Uncheck "No Color" box and select the new color.
OnOver and OnOut Actions
OnOver and OnOut actions will execute when the mouse enters and leaves the item respectively.
4-example-button.sfd
More Actions
Click More Actions to add more actions to On Over, On Click, On Up and On Out handlers:
Show Sprite to make a Sprite or Group visible
Hide Sprite to make a Sprite or Group invisible
Toggle Sprite to show and hide a Sprite or Group like a check box
Stop Sprite to end playing a sprite
Play Sprite to start playing a sprite
Rewind Sprite to move the sprite to the first frame
Stop Sounds to mute all playing sounds
Message to write a text in an edit field
Set to initialize a variable
Move Sprite to change Sprite or Group position
Jump & Stop to scroll a sprite to desired frame
Jump & Play to start a sprite from desired frame
ActionScripts
To control the main movie from a sprite select the item inside the sprite, choose "Action" > "On Click",
choose ActionSript and type for example:
_root.gotoAndPlay("Frame 2");
To jump to Frame 2 of the main movie.
The following actions are ActionScript equivalents:
On Mouse Click = on(press) { ... }
On Mouse Over = on(rollover) { ... }
On Mouse Out = on(rollout) { ... }
On Mouse Up = on(release) { ... }
When copying other scripts you don't have to enter on(press) definition, enter the content of the event only, for example instead of:
on(press)
{
movieclip1._visible = true;
}
enter
movieclip1._visible = true;
To create a clickTag action
The clickTag action is necessary to prepare
the banner for ad tracking system. Add a master frame with Movie > Add Master Frame.
Choose Insert > Clickable Area, select ActionScript option and enter the code:
getURL(clickTag,"_blank");
Resize the area to fill entire frame with Edit > Align > Fit to Frame.