| Package | net.guttershark.util |
| Class | public final class SetterUtils |
All methods can be used in two ways.
var su:SetterUtils=SetterUtils.gi(); var mc1,mc2,mc3:MovieClip; var mcref:Array=[mc1,mc2,mc3]; su.visible(true,mc1,mc2,mc3); //rest style. //array style - this is nice when you want to group //display objects to you can quickly toggle a property. su.visible(false,mcref);
There are a ton of other methods in here that offer the same benefts.
| Method | Defined by | ||
|---|---|---|---|
|
alpha(value:Number, ... objs):void
Set the alpha property on all objects provided.
| SetterUtils | ||
|
autoSize(value:String, ... fields):void
Set the autoSize property on multiple textfields.
| SetterUtils | ||
|
buttonMode(value:Boolean, ... objs):void
Set the buttonMode property on all objects provided.
| SetterUtils | ||
|
cacheAsBitmap(value:Boolean, ... objs):void
Set the cacheAsBitmap property on all objects provided.
| SetterUtils | ||
|
flipAlpha(val1:Number, val2:Number, ... objs):void
Flip the alpha property on all objects provide, if the
alpha on an object is equal to either val1 or val2, the
values are flipped.
| SetterUtils | ||
|
flipBoolean(prop:String, ... objs):void
Toggles the value of a boolean property to the opposite value
for all objects provided.
| SetterUtils | ||
|
flipProp(prop:String, ... value1, value2:*, objs:*):void
Toggle any property on any object - if the current value
of the property is value1, it will be set to value2, as
well as the reverse.
| SetterUtils | ||
|
[static]
Singleton access.
| SetterUtils | ||
|
mouseChildren(value:Boolean, ... objs):void
Set the mouseChildren property on all objects provided.
| SetterUtils | ||
|
mouseEnabled(value:Boolean, ... objs):void
Set the mouseEnabled property on all objects provided.
| SetterUtils | ||
|
prop(prop:String, ... value, objs:*):void
Set any property to the specified value, on all objects.
| SetterUtils | ||
|
propsFromModel(obj:*, propsId:String):void
Set properties on an object, the properties come from
the model in a <propset></propset>
node.
| SetterUtils | ||
|
tabChildren(value:Boolean, ... objs):void
Set the tabChildren property on all objects passed.
| SetterUtils | ||
|
tabEnabled(value:Boolean, ... objs):void
Set the tabEnabled property on all objects passed.
| SetterUtils | ||
|
tabIndex(... fields):void
Set tab index's on multiple textfields.
| SetterUtils | ||
|
toggleVisible(... objs):void
Toggles the visible property on all objects provided.
| SetterUtils | ||
|
useHandCursor(value:Boolean, ... objs):void
Set the useHandCursor property on all objects provided.
| SetterUtils | ||
|
visible(value:Boolean, ... objs):void
Set the visible property on all objects provided.
| SetterUtils | ||
|
x(value:Number, ... objs):void
Set the x property on multiple object.
| SetterUtils | ||
|
y(value:Number, ... objs):void
Set the y property on multiple object.
| SetterUtils | ||
| alpha | () | method |
public function alpha(value:Number, ... objs):voidSet the alpha property on all objects provided.
Parametersvalue:Number — The value to set the alpha to.
|
|
... objs — An array of objects with an alpha property.
|
| autoSize | () | method |
public function autoSize(value:String, ... fields):voidSet the autoSize property on multiple textfields.
Parametersvalue:String — The autoSize value.
|
|
... fields — The textfields to set the autoSize property on.
|
| buttonMode | () | method |
public function buttonMode(value:Boolean, ... objs):voidSet the buttonMode property on all objects provided.
Parametersvalue:Boolean — The value to set the buttonMode property to.
|
|
... objs — An array of objects that have the buttonMode property.
|
| cacheAsBitmap | () | method |
public function cacheAsBitmap(value:Boolean, ... objs):voidSet the cacheAsBitmap property on all objects provided.
Parametersvalue:Boolean — The value to set the cacheAsBitmap property to.
|
|
... objs — An array of objects with the cacheAsBitmap property.
|
| flipAlpha | () | method |
public function flipAlpha(val1:Number, val2:Number, ... objs):voidFlip the alpha property on all objects provide, if the alpha on an object is equal to either val1 or val2, the values are flipped.
Parametersval1:Number — The first alpha value.
|
|
val2:Number — The second alpha value.
|
|
... objs — The objects to toggle the visible property on.
|
| flipBoolean | () | method |
public function flipBoolean(prop:String, ... objs):voidToggles the value of a boolean property to the opposite value for all objects provided.
Parametersprop:String — The property to toggle.
|
|
... objs — All objects whose property will be flipped.
|
| flipProp | () | method |
public function flipProp(prop:String, ... value1, value2:*, objs:*):voidToggle any property on any object - if the current value of the property is value1, it will be set to value2, as well as the reverse.
Parametersprop:String — The property to toggle.
|
|
... value1 — The first value.
|
|
value2:* — The second value.
|
|
objs:* — The objects whose property will be toggled.
|
| gi | () | method |
| mouseChildren | () | method |
public function mouseChildren(value:Boolean, ... objs):voidSet the mouseChildren property on all objects provided.
Parametersvalue:Boolean — The value to set the mouseChildren property to on all objects.
|
|
... objs — An array of objects with the mouseChildren property.
|
| mouseEnabled | () | method |
public function mouseEnabled(value:Boolean, ... objs):voidSet the mouseEnabled property on all objects provided.
Parametersvalue:Boolean — The value to set the mouseEnabled property to on all objects.
|
|
... objs — An array of objects with the mouseEnabled property.
|
| prop | () | method |
public function prop(prop:String, ... value, objs:*):voidSet any property to the specified value, on all objects.
Parametersprop:String — The objects to toggle the visible property on.
|
|
... value |
|
objs:* |
| propsFromModel | () | method |
public function propsFromModel(obj:*, propsId:String):voidSet properties on an object, the properties come from the model in a <propset></propset> node.
Parametersobj:* — The object whose properties will be updated.
|
|
propsId:String — The id of the <propset> node in the model.
|
| tabChildren | () | method |
public function tabChildren(value:Boolean, ... objs):voidSet the tabChildren property on all objects passed.
Parametersvalue:Boolean — value to set the tabChildren property to on all objects.
|
|
... objs — An array of objects with the tabChildren property.
|
| tabEnabled | () | method |
public function tabEnabled(value:Boolean, ... objs):voidSet the tabEnabled property on all objects passed.
Parametersvalue:Boolean — value to set the tabChildren property to on all objects.
|
|
... objs — An array of objects with the tabEnabled property.
|
| tabIndex | () | method |
public function tabIndex(... fields):voidSet tab index's on multiple textfields.
Parameters... fields — The textfields to set tabIndex on.
|
| toggleVisible | () | method |
public function toggleVisible(... objs):voidToggles the visible property on all objects provided.
Parameters... objs — The objects to toggle the visible property on.
|
| useHandCursor | () | method |
public function useHandCursor(value:Boolean, ... objs):voidSet the useHandCursor property on all objects provided.
Parametersvalue:Boolean — The value to set the useHandCursor property to.
|
|
... objs — An array of objects with the useHandCursor property.
|
| visible | () | method |
public function visible(value:Boolean, ... objs):voidSet the visible property on all objects provided.
Parametersvalue:Boolean — The value to set the visible property to.
|
|
... objs — An array of objects with the visible property.
|
| x | () | method |
public function x(value:Number, ... objs):voidSet the x property on multiple object.
Parametersvalue:Number — The x value.
|
|
... objs — An array of objects with the x property.
|
| y | () | method |
public function y(value:Number, ... objs):voidSet the y property on multiple object.
Parametersvalue:Number — The y value.
|
|
... objs — An array of objects with the x property.
|