HTML    CSS    PHP    Bootstrap    JavaScript    Flash    Dev Tools      

Events - Mouse Events - Part 2

Current Time:   00:00 / Total Time:   00:00

Seek Bar Volume

Do you have a question or comment on this, or any tutorial Contact Support

We are always looking for input on our tutorial content. If you have a suggestion, comment, additional information on this topic that you feel should be added, drop us a line. We appreciate your input.

Title: Events - Mouse Events - Part 2

Category: Flash
Topic: Essential Training Series
Publish Date: 2015-01-08
Views: 37
Author: Mike King

Description

This is Part 2 of a 3 Part series. We continue to explore the Mouse Events in ActionScript. Several events are fired from the event dispatcher when the mouse passes over or out of an object. The ROLL_OVER and ROLL_OUT events have been developed in ActionScript to address objects that have children inside of our Flash file. In this tutorial we take our first look at Sprites, adding Sprites dynamically to the stage and utilize Mouse Events to communicate with those Sprites. We examine the code for the CLICK event and also discuss the DOUBLE_CLICK event and how using the DOUBLE_CLICK event can trigger unexpected results in our application. We also discuss the double Click Enabled property of our objects. We also cover changing the position and size of an Object on our stage using a combination of Mouse Events and properties. We wrap up the tutorial by demonstrating how to assiging multiple events to an Object.