Flash tip of the day
Flash tip of the day
Out of context: Reply #42
- Started
- Last post
- 47 Responses
- Cptn_Uncanny0
//Quick & Dirty way to disable all button handlers for a level and/or movieclip
for (var prop in mcInstance_mc) {
if (typeof (mcInstance_mc[prop]) == "movieclip") {
mcInstance_mc[prop].enabled = false;
}
}--
flipping an mc:
whatever.onPress = function():Void{
this._xscale *= -1
};--
Random Positive or Negative Value
to get -50 -> 50 :
var x:Number = (Math.random() * 100) - 50;
or
function generateRandomBiPolar(range:Numb...
{
return ((Math.random() * range) - (range / 2));
}--