Dakular's profile打哭了的拨烙锅PhotosBlogLists Tools Help

Blog


    4/6/2006

    [笔记]删除场景中所有mc

    var leve:Number = 0;
     for (var j in this)
     {
      if (typeof (this[j]) == "movieclip")
      {
       this[j].swapDepths(leve++);
       this[j].removeMovieClip();
      }
     }
    关键是多了个swapDepths,以前也是只知道这样用
    那么他与removeMovieClip到底有什么关系???
     
    Luar的书里说,Flash深度共分为三个区域:
    • 时间轴区(-16284到-1)
      主要用于放置Flash IDE编辑时的图像,Movie Clip等,这区域的Movie Clip不可以用ActionScript删除,但可以用ActionScript动态建立Movie Clip到这里.
    • 动态区(0到1048575)
      容许执行时用ActionScript动态建立或删除Movie Clip.
    • 保留区(1048576到2130690045)
      这里没有涉及到保留区的问题.

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://dakular.spaces.live.com/blog/cns!8668FFEC49BC51CE!343.trak
    Weblogs that reference this entry
    • None