http://easeljs.com/docs/Container.html

³µÍ×

  • DisplayObject¤ò¤Þ¤È¤á¤ë¤¿¤á¤Î¥¯¥é¥¹¡£
  • Container¤Î¥×¥í¥Ñ¥Æ¥£¤¬»Ò¤ÎDisplayObject¤Ë¤â±Æ¶Á¤òÍ¿¤¨¤ë¡£
    • Îã¡Ëx=100¡¢alpha=0.5¤ÎDisplayObject¤ò¡¢ x=50¡¢alpha=0.7¤ÎContainer¤Ë³ÊǼ¤¹¤ë
      • ¢ªDisplayObject¤ÎCanvas¾å¤Ç¤Îɽ¼¨°ÌÃÖ¤¬x=150¡¢alpha=0.35¤Ë¤Ê¤ë¡£
      • ¢¨DisplayObject¤Î¥×¥í¥Ñ¥Æ¥£Ãͤ¬ÊѤï¤Ã¤¿¤ï¤±¤Ç¤Ï¤Ê¤¯¡¢Container¤Î¥×¥í¥Ñ¥Æ¥£¤È¤Î¹çÀ®·ë²Ì¤¬¤½¤¦¸«¤¨¤ë¤è¤¦¤Ë¤Ê¤ë¡¢¤È¤¤¤¦¤À¤±¡£
  • Container¼«¿È¤âContainer¤Ë³ÊǼ¤Ç¤­¤ë¡£DisplayObject¤Î¥µ¥Ö¥¯¥é¥¹¤À¤â¤Î¡£
  • Stage¤¬¤³¤Î¥¯¥é¥¹¤ò·Ñ¾µ¤·¤Æ¤Þ¤¹¡£

¥³¥ó¥¹¥È¥é¥¯¥¿

  • °ú¿ô¤Ê¤·¡£

¥×¥í¥Ñ¥Æ¥£

children - Array[DisplayObject]


¥á¥½¥Ã¥É

addChild( child ) - DisplayObject

  • DisplayObject¤òÄɲ乤롣¥«¥ó¥Þ¤Ç¶èÀڤäƤ¤¤¯¤é¤Ç¤âÄɲäǤ­¤ë¡£
container.addChild(shape1, shape2, ¡¦¡¦¡¦);
  • ÊÖ¤êÃͤÏÄɲä·¤¿DisplayObject¡£Ê£¿ôÄɲä·¤¿¤È¤­¤ÏºÇ¸å¤Î¤ä¤Ä¡£

addChildAt( child , index ) - DisplayObject

  • »ØÄꤷ¤¿¥¤¥ó¥Ç¥Ã¥¯¥¹°ÌÃ֤ˡ¢DisplayObject¤òÁÞÆþ¤¹¤ë¡£»ØÄꤷ¤¿°ÌÃְʹߤÎDisplayObject¤Ï¸å¤í¤Ë¤º¤é¤µ¤ì¤ë¡£
  • Àè¤ËÄɲä·¤¿DisplayObject¤«¤éɽ¼¨¤µ¤ì¤ë¤Î¤Ç¡¢É½¼¨½çÀ©¸æ¤Ë»È¤¨¤ë¤Í¡£
  • ¤¢¤ëÆÃÄê¤ÎDisplayObject¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹°ÌÃÖ¤¬ÃΤꤿ¤¤¤È¤­¤Ï¡¢getChildIndex¥á¥½¥Ã¥É¤ò»È¤¦¤Ù¤·¡£
var container = new Container();
container.addChild(shape1);
container.addChild(shape2);
container.addChildAt(shape3,container.getChildIndex(shape2)); // shape3¤òshape2¤Î1¤ÄÁ°¤ËÆͤùþ¤à
  • ¤³¤ì¤âaddChild¤ÈƱ¤¸¤è¤¦¤Ë¡¢Ê£¿ô¤ÎDisplayObject¤òÆͤùþ¤á¤ë¡£ºÇ¸å¤Î°ú¿ô¤¬¥¤¥ó¥Ç¥Ã¥¯¥¹°ÌÃÖ¡£
  • ÊÖ¤êÃͤÏÄɲä·¤¿DisplayObject¡£Ê£¿ôÄɲä·¤¿¤È¤­¤ÏºÇ¸å¤Î¤ä¤Ä¡£

clone( recursive ) - Container

  • ¥³¥ó¥Æ¥Ê¤Î¥¯¥í¡¼¥ó¤òºî¤ë¡£
  • °ú¿ô¤Ëtrue¤ò»ØÄꤹ¤ë¤È¡¢»Ò¤ÎDisplayObject¤â¥³¥Ô¡¼¤µ¤ì¤ë¡£

contains( child ) - Boolean

  • »ØÄꤷ¤¿DisplayObject¤¬»Ò¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¤«¤òÊÖ¤¹¡£
  • »Ò¤À¤±¤Ç¤Ï¤Ê¤¯¡¢Â¹°Ê¹ß¤ÎDisplayObject¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Æ¤âtrue¡£
var container1 = new Container();
var container2 = new Container();
container1.addChild(container2); // ¥³¥ó¥Æ¥Ê2¤ò¥³¥ó¥Æ¥Ê1¤Î»Ò¤Ë¤¹¤ë
container2.addChild(shape1);     // shape1¤ò¥³¥ó¥Æ¥Ê2¤Î»Ò¤Ë¤¹¤ë
var flag = container.contains(shape2);  // true

draw( ctx, ignoreCache ) - void

  • Stage¤Ë´Þ¤Þ¤ì¤Ê¤¤¾õÂ֤Ǥ⥳¥ó¥Æ¥Ê¤Ë´Þ¤Þ¤ì¤ë»Ò¤ÎDisplayObject¤òÉÁ²è¤Ç¤­¤ë¡£
  • DisplayObject¤ÎƱ̾¥á¥½¥Ã¥É¤È¤ä¤Ã¤Æ¤ë¤³¤È¤ÏƱ¤¸¡£

getChildAt( index ) - DisplayObject

  • »ØÄꤷ¤¿¥¤¥ó¥Ç¥Ã¥¯¥¹°ÌÃ֤ˤ¢¤ëDisplayObject¤òÊÖ¤¹¡£

getChildIndex( child ) - Number

  • »ØÄꤷ¤¿DisplayObject¤¬¤É¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹°ÌÃ֤ˤ¢¤ë¤«¤òÊÖ¤¹¡£
  • »È¤¤Êý¤ÏaddChildAt¥á¥½¥Ã¥É¤Î¤È¤³¤í¤Ç½ñ¤¤¤¿¥µ¥ó¥×¥ë¤Ç¡£

getNumChildren( ) - Number

  • »Ò¤ÎDisplayObject¤Î¿ô¡£

getObjectsUnderPoint( x, y ) - Array[DisplayObject]

  • »ØÄꤷ¤¿ºÂɸ¤Î°ÌÃ֤ˤ¢¤ë¡¢»Ò¤ÎDisplayObject¤ÎÇÛÎó¤òÊÖ¤¹¡£¤³¤ÎºÂɸ¤Ï¥³¥ó¥Æ¥Ê¤Îº¸¾åºÂɸ¤¬¸¶ÅÀ¡£
  • ÇÛÎó¤Î½çÈ֤ϡ¢¾å¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ë½ç¡£
  • »Ò¤ÎDisplayObject¤ÎmouseEnabled¥×¥í¥Ñ¥Æ¥£¤¬false¤Ê¤éÇÛÎó¤Ë´Þ¤Þ¤ì¤Ê¤¤¡£
  • Éé²Ù¤¬¹â¤¤¤½¤¦¤Ê¤Î¤Ç¼è°·Ãí°Õ¡£

getObjectUnderPoint( x, y ) - DisplayObject

  • getObjectsUnderPoint¥á¥½¥Ã¥É¤Ë»÷¤Æ¤¤¤ë¤¬¡¢¤³¤ì¤Ï°ìÈÖ¾å¤ÎDisplayObject¤Î¤ßÊÖ¤¹¡£

hitTest( x, y ) - Boolean

  • DisplayObject¤ÈƱ¤¸¡£¥Á¥§¥Ã¥¯Âоݤ¬»Ò¤ÎDisplayObject¤Ë¤Ê¤ë¡£

isVisible( ) - Boolean

  • ¥³¥ó¥Æ¥Ê¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¡£visible¥×¥í¥Ñ¥Æ¥£¤¬false¤À¤Ã¤¿¤ê¡¢alpha¤¬0¤À¤Ã¤¿¤ê¤¹¤ë¤Èfalse¤¬Ê֤롣
  • »Ò¤Îɽ¼¨¾õÂ֤ϴط¸¤Ê¤¤¤è¤¦¤Ç¤¹¡£

removeAllChildren( ) - void

  • Á´¤Æ¤Î»Ò¤òºï½ü¤¹¤ë¡£

removeChild( child ) - Boolean

  • ¥³¥ó¥Æ¥Ê¤«¤é°ú¿ô¤Î»ÒDisplayObject¤òºï½ü¤¹¤ë¡£
  • ¥«¥ó¥Þ¤Ç¶èÀڤäƤ¤¤¯¤Ä¤Ç¤â»ØÄê²Äǽ¡£addChild¥á¥½¥Ã¥É¤ÎÎ㻲¾È¡£
  • °ú¿ô¤ÎDisplayObject¤¬Á´¤Æ¸ºß¤¹¤ì¤Ðtrue¡¢Â¸ºß¤·¤Ê¤¤child¤¬£±¤Ä¤Ç¤â»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ðfalse¤òÊÖ¤¹¡£

removeChildAt( index ) - Boolean

  • ¥³¥ó¥Æ¥Ê¤«¤é°ú¿ô¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤Î»ÒDisplayObject¤òºï½ü¤¹¤ë¡£
  • ¤³¤ì¤âremoveChild¤ÈƱ¤¸¤¯¡¢¥«¥ó¥Þ¤Ç¶èÀڤäƤ¤¤¯¤Ä¤Ç¤â»ØÄê²Äǽ¡£ÊÖ¤êÃͤâremoveChild¤ÈƱ¤¸´¶¤¸¡£

sortChildren ( sortFunction ) - void

  • »ÒDisplayObject¤ò¡¢°ú¿ô¤Î´Ø¿ô¤ÎÊýË¡¤Ç¥½¡¼¥È¤¹¤ë¡£
  • Array.sort¥á¥½¥Ã¥É¤ËÅϤ¹´Ø¿ô¤ÈƱ¤¸¤è¤¦¤Ê½ñ¤­Êý¤ÇOK¡£
container1.sortChildren(function(obj1, obj2){
    return obj2.x - obj1.x; // XºÂɸ¤¬Â礭¤¤½ç¤Ë¥½¡¼¥È
});

toString( ) - String

  • ʸ»úÎ󲽤¹¤ë¡£DisplayObject¤ÎƱ̾¥á¥½¥Ã¥É¤ÈƱ¤¸

¥¤¥Ù¥ó¥È

¤³¤Î¥Ú¡¼¥¸¤Ø¤Î¥³¥á¥ó¥È

Lixt5s <a href="http://tcjqigttaslz.com/">tcjqigttaslz</a>, [url=http://yosfhxreuuyw.com/]yosfhxreuuyw[/url], [link=http://bormwjobyjwb.com/]bormwjobyjwb[/link], http://fgsqltwczbmp.com/

0
Posted by fdlmadlnu 2013ǯ11·î14Æü(ÌÚ) 12:07:20 ÊÖ¿®

T4AW9R This is one awesome blog post.Really thank you! Cool.

0
Posted by smashing top seo 2013ǯ10·î26Æü(ÅÚ) 02:32:18 ÊÖ¿®

Thanks for your write-up on the vacation industry. We would also like to add that if your senior taking into account traveling, its absolutely crucial to buy travel cover for older persons. When traveling, elderly people are at high risk being in need of a health-related emergency. Receiving the right insurance coverage package for one’s age group can look after your health and give you peace of mind. insoles http://www.deelsonheels.com/$3699_Orthotic_Shoe_Insoles_Arch_Support_Inserts/p133745_317584.aspx

0
Posted by insoles 2013ǯ05·î24Æü(¶â) 19:30:44 ÊÖ¿®

¥³¥á¥ó¥È¤ò¤«¤¯


¡Öhttp://¡×¤ò´Þ¤àÅê¹Æ¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

ÍøÍѵ¬Ìó¤ò¤´³Îǧ¤Î¤¦¤¨¤´µ­Æþ²¼¤µ¤¤

¥á¥ó¥Ð¡¼¤Î¤ßÊÔ½¸¤Ç¤­¤Þ¤¹