é åããªãã¸ã§ã¯ããã³ãã¼ãããã¨ãæ®éã®å¤æ°ã®ããã« A = B ã¨ä»£å ¥ããã¨åç §ãä»£å ¥ããããããçæ¹ã®å¤ãå¤æ´ããã¨ä¸¡æ¹å¤ãã£ã¦ãã¾ãã¾ãããmx.utils.ObjectCopyã¯ã©ã¹ ã使ãã¨ãªãã¸ã§ã¯ããè¤è£½ã§ããããã§ãã é常ã®ä»£å ¥var A = new Object(); A.test = "ãã¹ã1"; // ãªãã¸ã§ã¯ãAããªãã¸ã§ã¯ãBã«ä»£å ¥ var B = A; // Bãå¤æ´ B.test = "ãã¹ã2"; // Aãå¤æ´ããã¦ãã¾ã trace(A.test); // ãã¹ã2 trace(B.test); // ãã¹ã2 mx.utils.ObjectCopyã¯ã©ã¹ ã§ä»£å ¥var A = new Object(); A.test = "ãã¹ã1"; // ãªãã¸ã§ã¯ãAããªãã¸ã§ã¯ãBã«ä»£å ¥ var B = mx.utils.ObjectCopy.copy
{{#tags}}- {{label}}
{{/tags}}