패널 » Api

getinstancefirst

Description

패널 안에서 생성된 첫번재 오브젝트를 반환하는 API이다.

Return Value

Type Description
INSTANCE 맨 위에 놓여진 오브젝트

Remark

1차 자식 컴포넌트만들 대상으로 하고 싶은 경우에는, getchildinstancefirst API를 사용한다.

Example

function btnGetinstancefirst_on_mouseup() { var FirstObj = panel.getinstancefirst(); screen.alert(FirstObj.getname()); // FirstObj 라는 변수에 맨 위 오브젝트를 받아서 이름을 alert로 띄운다. }

See Also

getinstancenext

Viewer Ver.

9.1.1.1

Update Date

20190708