Mouse-enabled

From Frontal Wiki

Jump to: navigation, search

Contents

Purpose

This style determines whether or not the mouse actions, events and interactions are enabled for a visual element.


Value

Either "true" (enabled) or "false" (not enabled). The default value is not set.

mouse-enabled: undefined;


Remarks

Disabling mouse events for a visual element is a Flash feature. See the Flash reference for InteractiveObject.mouseEnabled for more details.


Example

Here is an example using text that shows the mouse enabled:

<style>
text 
{
    mouse-enabled: true;
 
    @onRollOver
    {
	text = "yes";
    }
}
</style>
 
<text class="frLink" style="font-size: 40px;">roll over?</text>


Here is the same example, but with the mouse disabled.

<style>
text 
{
    mouse-enabled: false;
 
    @onRollOver
    {
	text = "no";
    }
}
</style>
 
<text class="frLink" style="font-size: 40px;">roll over?</text>


Can Be Applied To

This style can be applied to any visual element:

Personal tools
Get Adobe Flash player