Archive for March, 2011:
Disable Yellow Tab in AS3
This is very useful if you want to disable the ugly yellow rectangles when you hit tab in your flash. Here’s how to disable them:
MC_Container.tabEnabled = false;
0 Comments
AS3 Control the Tab Order
You can set edit the elements tabIndex values with the function at any time you want.
function tabOrder(obj:Object, num:Number) {
obj.tabIndex = num
}
//set text field order
tabOrder(mc_name, 1)
tabOrder(mc_email, 2)
//reset tab order
tabOrder(mc_name, -1)
tabOrder(mc_email, -1)
obj.tabIndex = num
}
//set text field order
tabOrder(mc_name, 1)
tabOrder(mc_email, 2)
//reset tab order
tabOrder(mc_name, -1)
tabOrder(mc_email, -1)
Duplicate MovieClip with BitmapData
Simple and usefull function to get you going with duplicating mc.
function duplicateMov(clone:MovieClip, obj:MovieClip) {
var bmd:BitmapData=new BitmapData(clone.width, clone.height,false);
bmd.draw(clone);
var holder:Bitmap = new Bitmap();
holder.bitmapData = bmd
holder.smoothing = true;
obj.addChild(holder)
}
duplicateMov(mc_clone, mc_empty)
var bmd:BitmapData=new BitmapData(clone.width, clone.height,false);
bmd.draw(clone);
var holder:Bitmap = new Bitmap();
holder.bitmapData = bmd
holder.smoothing = true;
obj.addChild(holder)
}
duplicateMov(mc_clone, mc_empty)
