- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
// RangeError: Error #2006: The supplied index is out of bounds.
// at flash.display::DisplayObjectContainer/getChildAt()
// at com.pt.utils::CustomSWFLoaderUtil$/isCorrectCustomSWF()[/var/lib/jenkins/workspace/<secret>/src/com/pt/utils/CustomSWFLoaderUtil.as:23]
private static function isCorrectCustomSWF(swf:SWFLoader):Boolean
{
if (swf &&
swf.content &&
swf.content is ContentDisplay &&
(swf.content as ContentDisplay).getChildAt(0) &&
(swf.content as ContentDisplay).getChildAt(0) is MovieClip &&
((swf.content as ContentDisplay).getChildAt(0) as MovieClip).numChildren == 1)
return (swf.content.getChildAt(0) is MovieClip);
else
return false;
}
gost 22.08.2014 07:23 # +4
(Чем-то (неуловимо (напомнило (лисп.))))
kyzi007 23.08.2014 21:49 # 0