Widget.bounce()

Availability

Flash Player 7 + TheSpringBox V1

Usage

Widget.bounce(toggle:Boolean 

[, width:Number, height:Number,topOffset:Number, leftOffset:Number]) : Void;

Parameters

toggle - Turn bounce On/Off.

width - The width of the area that will bounce. This parameter is optional.

height - The height of the area that will bounce. This parameter is optional.

topOffset - Number of pixels between the top bounce edge and the wrapper top edge. This parameter is optional.

leftOffset - Number of pixels between the left bounce edge and the wrapper left edge. This parameter is optional.

Returns

Nothing.

Description

Method; Bounces the widget from the edges of the screen.

Example

This example will bounce the widget using an imaginary 200x200 square at the coordinate 50,50 as bouncing edges.

myButton.onRelease = function() {
  Widget.bounce(true,200,200,50,50);
};