Events

An event is something that occurs at run time while the user is using your application. This includes things like moving the mouse over an object (an "On Mouse Over" event), clicking on an object (an "On Mouse Click" event) or opening a different page (the "On Initialize" and "On Show" events).

Each event has a name that describes what it represents. For example, the event triggered when a Media Player Object starts playing is named the "On Play" event.

AutoPlay Media Studio has four basic kinds of events: project events, page events, object events, and MP3 events.

Project Events

Project events cover project-wide things that apply to the AutoPlay application as a whole, and include things like "On Initialize" for when your AutoPlay application is run, and "On Close" for when the application is exited.

Page Events

Page events represent page-related things like opening and closing pages. Each page has its own "set" of page events. For example, if you have two pages in your project, each one will have its own "On Show" event.

Object Events

Object events deal with object-related things. Some events are common to all objects, like the user clicking on an object (the "On Mouse Click" event) or moving the mouse pointer off of an object's area on the page (the "On Mouse Leave" event). Other events are object-specific, such as the Web Browser object's "On Navigate Complete" event. Like pages, each object has its own set of object events. So, for example, if you have four different Image objects on a page, each one will have its own "On Mouse Click" event.

Note that events can "cascade" through objects whenever objects overlap. For example, if you have a Text Object that overlaps an Image Object, and the user clicks on a spot where the two objects overlap, the On Mouse Click event will be triggered for both objects.

MP3 Events

MP3 events are triggered by AutoPlay's built-in MP3 player. They represent the various song-related things that can occur at run time, such as playing the current song ("On Play"), pausing the current song ("On Pause"), or reaching the end of a song ("On Song End"). There is even an event that fires whenever the MP3 player's progress changes ("On Progress"), which makes it possible to add a custom "track counter" to your application.

Actions are always triggered by events. If you want an action to be performed at run time, you must first choose the event that you want the action to be performed on, and then add the action to the action list for that event.

NOTE

 

 

 

Events can "cascade" through objects whenever objects overlap. For example, if you have a Text Object that overlaps an Image Object, and the user clicks on a spot where the two objects overlap, the On Mouse Click event will be triggered for both objects.

Next: Action Lists