The MouseWheelZoomControl is a non-visible control included in the TilemapToolkit component.
It allows zooming in and out, via the user's mouse scroll wheel, in relation to the cursor location.
The MouseWheelZoomControl's constructor takes one parameter, a Boolean defining whether or not the control's target animation Sprite should be displayed.
By default, this value is set to true.
If this parameter is set to false, the control's zoom in and out functionality is utilized, but no target is displayed.
MouseWheelZoomControl(showTarget:Boolean=true)
The MouseWheelZoomControl's target sprite can be customized to specify various drawing properties including color, line thickness,
target height, target width, animation time, and other drawing properties mentioned above. To customize the MouseWheelZoomControl's
target, create an instance of the control, and set its public drawing properties as desired.
//create an instance of the mousewheelzoomcontrol
private var mwzc:MouseWheelZoomControl = new MouseWheelZoomControl();
//specify a custom duration for the target sprite's animation sequences to appear
this.mwzc.targetDelay = 200;
//spceify a custom color for the target sprite
this.mwzc.targetColor = 0xE40000;
//specify a custom line thickness for the target sprite
this.mwzc.targetThickness = 2;
//specify a custom line length for the targe sprite
this.mwzc.targetLength = 6;
//specify custom heights and width for the target sprite
this.mwzc.targetHeights = [20,30,50,70];
this.mwzc.targetWidths = [20,50,70,110];