RSS

Disable Yellow Tab in AS3

Actionscript 3 | Posted on Mar 30 2011

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;

AS3 Control the Tab Order

Actionscript 3 | Posted on Mar 15 2011

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)

Duplicate MovieClip with BitmapData

Actionscript 3 | Posted on Mar 10 2011

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)