Exemplo n.º 1
0
void CFlashUIGotoAndPlayBaseNode::GotoAndStop( IUIElement* pElement, int frameId, const char* frameName )
{
	IFlashVariableObject* pMc = pElement->GetMovieClip( GetObjectDesc(), GetTmplDesc());
	if (pMc)
	{
		if (frameId > -1)
			pMc->GotoAndStop( frameId );
		else
			pMc->GotoAndStop( frameName );
	}
}
Exemplo n.º 2
0
//------------------------------------------------------------------------
int CScriptBind_UIAction::GotoAndStopFrameName( IFunctionHandler *pH, const char * elementName, int instanceID, const char * mcName, const char * frameName )
{
	IUIElement* pElement = GetElement( elementName, instanceID );
	if ( pElement )
	{
		IFlashVariableObject* pMC = pElement->GetMovieClip( mcName );
		if ( pMC )
		{
			pMC->GotoAndStop( frameName );
			return pH->EndFunction( true );
		}
		UIACTION_WARNING( "LUA: Element %s has no movieclip %s", elementName, mcName );
	}
	else
	{
		UIACTION_WARNING( "LUA: UIElement %s does not exist", elementName );
	}
	return pH->EndFunction( false );

}