flash help

  • Started
  • Last post
  • 1 Response
  • donal

    i'm brutal at flash.

    I'm trying to change the z index of a movie clip through an 'on click' event.

    ???

  • gun0

    you can do it by depth number or switch with another mc. if switching with another mc its just
    some_mc.swapDepths(other_mc);
    with a depth number it be
    some_mc.swapDepths(a number between -16384 to 1048575);

    for your click or whatever you choose it will be like this is script applied 'on' the button or clip

    on(release){
    //whatever you end up doing
    //with swapDepths
    }

    else if on the frame

    some_bu.onRelease=function(){
    //whatever you end up doing
    //with swapDepths
    };