Olá pessoal.
Estou utilizando a última versão do Ginga e está ocorrendo um erro ao encerrar a aplicação.
O que acontece é o seguinte: quando a aplicação deveria ser encerrada, o Ginga para sua execução (aparece até aquela bolinha vermelha no canto superior direito da tela), mas alguns segundos depois a aplicação é reiniciada (em partes, pois apenas as medias aparecem na tela, mas os eventos de interação não funcionam).
Abaixo o código NCL.
<?xml version="1.0" encoding="ISO-8859-1"?>
<ncl id="teste_ff">
<head>
<regionBase>
<region id="rgTV">
<region id="rgFundo" height="100%" width="100%" zIndex="1"/>
<region id="rgBorda" height="17.5%" width="17.5%" top="5%" left="41%" zIndex="2"/>
<region id="rgModelo" height="15%" width="15%" top="6.5%" left="42%" zIndex="3"/>
<region id="rgOpcao1" height="15%" width="15%" top="43%" left="5%" zIndex="2"/>
<region id="rgOpcao2" height="15%" width="15%" top="43%" right="5%" zIndex="2"/>
<region id="rgOpcao3" height="15%" width="15%" top="80%" left="42%" zIndex="2"/>
</region>
</regionBase>
<descriptorBase>
<descriptor id="dFundo" region="rgFundo"/>
<descriptor id="dBorda" region="rgBorda"/>
<descriptor id="dModelo" region="rgModelo"/>
<descriptor id="dOpcao1" region="rgOpcao1" focusIndex="1" moveUp="2" moveDown="4" focusBorderWidth="3" focusBorderColor="red"/>
<descriptor id="dOpcao2" region="rgOpcao2" focusIndex="2" moveUp="3" moveDown="2" focusBorderWidth="3" focusBorderColor="red"/>
<descriptor id="dOpcao3" region="rgOpcao3" focusIndex="3" moveUp="1" moveDown="3" focusBorderWidth="3" focusBorderColor="red"/>
</descriptorBase>
<connectorBase>
<causalConnector id="onBegin1StartN">
<simpleCondition role="onBegin"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</causalConnector>
<causalConnector id="onEnd1StartN">
<simpleCondition role="onEnd"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</causalConnector>
<causalConnector id="onEnd1StopN">
<simpleCondition role="onEnd"/>
<simpleAction role="stop" max="unbounded" qualifier="par"/>
</causalConnector>
<causalConnector id="onSelection1SetNAbortNStartN">
<connectorParam name="var"/>
<simpleCondition role="onSelection"/>
<compoundAction operator="seq">
<simpleAction role="set" value="$var" max="unbounded" qualifier="par"/>
<simpleAction role="abort" max="unbounded" qualifier="par"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</compoundAction>
</causalConnector>
<causalConnector id="onSelection1SetNAbortNStopNStartN">
<connectorParam name="var"/>
<simpleCondition role="onSelection"/>
<compoundAction operator="seq">
<simpleAction role="set" value="$var" max="unbounded" qualifier="par"/>
<simpleAction role="abort" max="unbounded" qualifier="par"/>
<simpleAction role="stop" max="unbounded" qualifier="par"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</compoundAction>
</causalConnector>
</connectorBase>
</head>
<body>
<port id="pInicio" component="fundo"/>
<media id="fundo" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/fundo_br.gif" descriptor="dFundo"/>
<media id="modelo" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/tatu_f.JPG" descriptor="dModelo"/>
<media id="borda" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/borda_fina.png" descriptor="dBorda"/>
<media id="opcao1" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/bolo_f.JPG" descriptor="dOpcao1"/>
<media id="opcao2" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/tatu_f.JPG" descriptor="dOpcao2"/>
<media id="opcao3" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/selo_f.JPG" descriptor="dOpcao3"/>
<media id="audioIgual" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/audio/Msg_Aponte a Igual.wav"/>
<media id="errado" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/audio/Msg_Nao nao e.wav"/>
<media id="certo" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/audio/Msg_Muito bem.wav"/>
<media type="application/x-ginga-settings" id="nodeSettings">
<property name="opcao"/>
</media>
<link xconnector="onBegin1StartN">
<bind component="fundo" role="onBegin"/>
<bind component="modelo" role="start"/>
<bind component="borda" role="start"/>
<bind component="opcao1" role="start"/>
<bind component="opcao2" role="start"/>
<bind component="opcao3" role="start"/>
</link>
<link xconnector="onEnd1StartN">
<bind component="audioIgual" role="onEnd"/>
<bind component="audioIgual" role="start"/>
</link>
<link xconnector="onSelection1SetNAbortNStopNStartN">
<bind component="opcao1" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="bolo"/>
</bind>
<bind component="audioIgual" role="abort"/>
<bind component="opcao1" role="stop"/>
<bind component="errado" role="start"/>
<bind component="opcao1" role="start"/>
</link>
<link xconnector="onSelection1SetNAbortNStartN">
<bind component="opcao2" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="tatu"/>
</bind>
<bind component="audioIgual" role="abort"/>
<bind component="certo" role="start"/>
</link>
<link xconnector="onSelection1SetNAbortNStopNStartN">
<bind component="opcao3" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="selo"/>
</bind>
<bind component="audioIgual" role="abort"/>
<bind component="opcao3" role="stop"/>
<bind component="errado" role="start"/>
<bind component="opcao3" role="start"/>
</link>
<link xconnector="onEnd1StartN">
<bind component="errado" role="onEnd"/>
<bind component="audioIgual" role="start"/>
</link>
<link xconnector="onEnd1StopN">
<bind component="certo" role="onEnd"/>
<bind component="modelo" role="stop"/>
<bind component="borda" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="fundo" role="stop"/>
</link>
</body>
</ncl>
Se algum puder me ajudar.
Att.
Autor: Aline Manera
33 comentários
<media id="fundo" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/fundo_br.gif" descriptor="dFundo"/>
<media id="modelo" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/tatu_f.JPG" descriptor="dModelo"/>
<media id="borda" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/borda_fina.png" descriptor="dBorda"/>
<media id="opcao1" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/bolo_f.JPG" descriptor="dOpcao1"/>
<media id="opcao2" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/tatu_f.JPG" descriptor="dOpcao2"/>
<media id="opcao3" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/media/selo_f.JPG" descriptor="dOpcao3"/>
<media id="audioIgual" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/audio/Msg_Aponte a Igual.wav"/>
<media id="errado" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/audio/Msg_Nao nao e.wav"/>
<media id="certo" src="http://www.softwarepublico.gov.br/dotlrn/clubs/ginga/audio/Msg_Muito bem.wav"/>
Obrigada pela atenção. Aline Manera