Ola a todos,
eu havia postado em outro forum, mas acho que esse seja o mais correto, desculpe a bagunça!
Bom sou vinícius e desenvolvi um projeto no composer, porém, não domino nenhuma linguagem de programação apenas muito pouco de VB e o poco que aprendi do composer, tentei fazer um menu principal com 4 opções que quando selecionadas exibiriam outras opções, esta feito e funcionando em partes, porém não tenho conhecimento muito grande, descobri sobre o <switchPort> agora a pouco que teria me ajudado muito!
Basicamente esta tudo feito por switch por isso usei uma quantidade boa deles, porém quando clico em uma seleção ao inves de ela rodar apenas a música, vídeo, ou imagem que deveria ou ela não roda, ou ela roda a imagem, vídeo ou música junto com outra imagem, vídeo ou música!
O código segue abaixo:
(Caso alguém queira ultilizar o código sinta-se avontade)
<?xml version="1.0" encoding="ISO-8859-1"?>
<ncl id="ProjetoFinal" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
<head>
<regionBase>
<region id="rgTV" width="1080" height="768">
<region id="rgVideo1" left="195" top="152" width="640" height="358" zIndex="1"/>
<region id="rgimagem" left="195" top="152" width="640" height="358" zIndex="1"/>
<region id="rgvideos" left="195" top="152" width="640" height="358" zIndex="1"/>
<region id="rgtexto" left="195" top="152" width="640" height="358" zIndex="1"/>
<region id="rgOpcao1" top="100" width="200" height="50" zIndex="2"/>
<region id="rgOpcao2" top="150" width="200" height="50" zIndex="2"/>
<region id="rgOpcao3" top="200" width="200" height="50" zIndex="2"/>
<region id="rgOpcao4" top="250" width="200" height="50" zIndex="2"/>
<region id="rgResultado" left="150" top="100" width="200" height="100" zIndex="2"/>
<region id="rgopcao1-1" left="200" top="160" width="310" height="125"/>
<region id="rgopcao1-2" left="520" top="160" width="310" height="125"/>
<region id="rgopcao1-3" left="200" top="310" width="310" height="125"/>
<region id="rgopcao1-4" left="520" top="310" width="310" height="125"/>
<region id="rgopcao2-1" left="200" top="157" width="200" height="50"/>
<region id="rgopcao2-2" left="200" top="217" width="200" height="50"/>
<region id="rgopcao2-3" left="200" top="267" width="200" height="50"/>
<region id="rgopcao2-4" left="200" top="317" width="200" height="50"/>
<region id="rgopcao2-5" left="200" top="367" width="200" height="50"/>
<region id="rgopcao2-6" left="200" top="417" width="200" height="50"/>
<region id="rgopcao3-1" left="195" top="157" width="640" height="62"/>
<region id="rgopcao3-2" left="195" top="219" width="640" height="62"/>
<region id="rgopcao3-3" left="195" top="281" width="640" height="62"/>
<region id="rgopcao3-4" left="195" top="343" width="640" height="62"/>
<region id="rgopcaovolta1" left="195" top="700" width="200" height="50"/>
<region id="rgopcaovolta2" left="195" top="700" width="200" height="50"/>
<region id="rgopcaovolta3" left="195" top="700" width="200" height="50"/>
<region id="rgopcaovolta4" left="195" top="700" width="200" height="50"/>
<region id="rgopcao4-1" left="195" top="157" width="100" height="100"/>
<region id="rgopcao4-2" left="300" top="157" width="100" height="100"/>
<region id="rgopcao4-3" left="400" top="157" width="100" height="100"/>
<region id="rgopcao4-4" left="500" top="157" width="100" height="100"/>
<region id="rgopcao4-5" left="600" top="157" width="100" height="100"/>
<region id="rgopcao4-6" left="195" top="257" width="100" height="100"/>
<region id="rgopcao4-7" left="300" top="257" width="100" height="100"/>
<region id="rgopcao4-8" left="400" top="257" width="100" height="100"/>
<region id="rgopcao4-9" left="500" top="257" width="100" height="100"/>
<region id="rgopcao4-10" left="600" top="257" width="100" height="100"/>
<region width="1024" height="768" id="rgmenu"/>
</region>
</regionBase>
<ruleBase>
<rule id="r1" var="opcao" comparator="eq" value="1"/>
<rule id="r2" var="opcao" comparator="eq" value="2"/>
<rule id="r3" var="opcao" comparator="eq" value="3"/>
<rule id="r4" var="opcao" comparator="eq" value="4"/>
<rule id="r4-1" var="opcao" comparator="eq" value="4-1"/>
<rule id="r4-2" var="opcao" comparator="eq" value="4-2"/>
<rule id="r4-3" var="opcao" comparator="eq" value="4-3"/>
<rule id="r4-4" var="opcao" comparator="eq" value="4-4"/>
<rule id="r4-5" var="opcao" comparator="eq" value="4-5"/>
<rule id="r4-6" var="opcao" comparator="eq" value="4-6"/>
<rule id="r4-7" var="opcao" comparator="eq" value="4-7"/>
<rule id="r4-8" var="opcao" comparator="eq" value="4-8"/>
<rule id="r4-9" var="opcao" comparator="eq" value="4-9"/>
<rule id="r4-10" var="opcao" comparator="eq" value="4-10"/>
<rule id="r1-1" var="opcao" comparator="eq" value="1-1"/>
<rule id="r1-2" var="opcao" comparator="eq" value="1-2"/>
<rule id="r1-3" var="opcao" comparator="eq" value="1-3"/>
<rule id="r1-4" var="opcao" comparator="eq" value="1-4"/>
<rule id="r2-1" var="opcao" comparator="eq" value="2-1"/>
<rule id="r2-2" var="opcao" comparator="eq" value="2-2"/>
<rule id="r2-3" var="opcao" comparator="eq" value="2-3"/>
<rule id="r2-4" var="opcao" comparator="eq" value="2-4"/>
<rule id="r2-5" var="opcao" comparator="eq" value="2-5"/>
<rule id="r2-6" var="opcao" comparator="eq" value="2-6"/>
<rule id="r3-1" var="opcao" comparator="eq" value="3-1"/>
<rule id="r3-2" var="opcao" comparator="eq" value="3-2"/>
<rule id="r3-3" var="opcao" comparator="eq" value="3-3"/>
<rule id="r3-4" var="opcao" comparator="eq" value="3-4"/>
</ruleBase>
<descriptorBase>
<descriptor id="dopcao1-1" region="rgopcao1-1" focusIndex="1-1" moveDown="1-3" moveRight="1-2" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dopcao1-2" region="rgopcao1-2" focusIndex="1-2" moveDown="1-4" moveLeft="1-1" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dopcao1-3" region="rgopcao1-3" focusIndex="1-3" moveDown="100" moveUp="1-1" moveRight="1-4" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dopcao1-4" region="rgopcao1-4" focusIndex="1-4" moveDown="100" moveUp="1-2" moveLeft="1-3" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dopcao2-1" region="rgopcao2-1" focusIndex="2-1" moveDown="2-2" focusBorderWidth="-2" focusBorderColor="green"/>
<descriptor id="dopcao2-2" region="rgopcao2-2" focusIndex="2-2" moveDown="2-3" moveUp="2-1" focusBorderWidth="-2" focusBorderColor="green"/>
<descriptor id="dopcao2-3" region="rgopcao2-3" focusIndex="2-3" moveDown="2-4" moveUp="2-2" focusBorderWidth="-2" focusBorderColor="green"/>
<descriptor id="dopcao2-4" region="rgopcao2-4" focusIndex="2-4" moveDown="2-5" moveUp="2-3" focusBorderWidth="-2" focusBorderColor="green"/>
<descriptor id="dopcao2-5" region="rgopcao2-5" focusIndex="2-5" moveDown="2-6" moveUp="2-4" focusBorderWidth="-2" focusBorderColor="green"/>
<descriptor id="dopcao2-6" region="rgopcao2-6" focusIndex="2-6" moveDown="101" moveUp="2-5" focusBorderWidth="-2" focusBorderColor="green"/>
<descriptor id="dopcao3-1" region="rgopcao3-1" focusIndex="3-1" moveDown="3-2" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao3-2" region="rgopcao3-2" focusIndex="3-2" moveDown="3-3" moveUp="3-1" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao3-3" region="rgopcao3-3" focusIndex="3-3" moveDown="3-4" moveUp="3-2" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao3-4" region="rgopcao3-4" focusIndex="3-4" moveDown="102" moveUp="3-3" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcaovolta1" region="rgopcaovolta1" focusIndex="100" moveUp="1-4" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dopcaovolta2" region="rgopcaovolta2" focusIndex="101" moveUp="2-6" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dopcaovolta3" region="rgopcaovolta3" focusIndex="102" moveUp="3-2" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dopcaovolta4" region="rgopcaovolta4" focusIndex="103" moveUp="4-2" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dopcao4-1" region="rgopcao4-1" focusIndex="4-1" moveDown="4-6" moveRight="4-2" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao4-2" region="rgopcao4-2" focusIndex="4-2" moveDown="4-7" moveRight="4-3" moveLeft="4-1" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao4-3" region="rgopcao4-3" focusIndex="4-3" moveDown="4-8" moveRight="4-4" moveLeft="4-2" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao4-4" region="rgopcao4-4" focusIndex="4-4" moveDown="4-9" moveRight="4-5" moveLeft="4-3" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao4-5" region="rgopcao4-5" focusIndex="4-5" moveDown="4-10" moveRight="4-6" moveLeft="4-4" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao4-6" region="rgopcao4-6" focusIndex="4-6" moveDown="103" moveUp="4-1" moveRight="4-7" moveLeft="4-5" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao4-7" region="rgopcao4-7" focusIndex="4-7" moveDown="103" moveUp="4-2" moveRight="4-8" moveLeft="4-6" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao4-8" region="rgopcao4-8" focusIndex="4-8" moveDown="103" moveUp="4-3" moveRight="4-9" moveLeft="4-7" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao4-9" region="rgopcao4-9" focusIndex="4-9" moveDown="103" moveUp="4-4" moveRight="4-10" moveLeft="4-8" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor id="dopcao4-10" region="rgopcao4-10" focusIndex="4-10" moveDown="103" moveUp="4-5" moveLeft="4-9" focusBorderWidth="-2" focusBorderColor="yellow"/>
<descriptor region="rgmenu" id="dmenu"/>
<descriptor id="dVideo1" region="rgVideo1"/>
<descriptor id="dvideos" region="rgvideos"/>
<descriptor id="dtexto" region="rgtexto"/>
<descriptor id="dimagem" region="rgimagem"/>
<descriptor id="dResultado" region="rgResultado"/>
<descriptor id="dOpcao1" region="rgOpcao1" focusIndex="1" moveDown="2" focusBorderWidth="-2" focusBorderColor="blue"/>
<descriptor id="dOpcao2" region="rgOpcao2" focusIndex="2" moveDown="3" moveUp="1" focusBorderWidth="-2" focusBorderColor="blue"/>
<descriptor id="dOpcao3" region="rgOpcao3" focusIndex="3" moveDown="4" moveUp="2" focusBorderWidth="-2" focusBorderColor="blue"/>
<descriptor id="dOpcao4" region="rgOpcao4" focusIndex="4" moveDown="5" moveUp="3" focusBorderWidth="-2" focusBorderColor="blue"/>
</descriptorBase>
<connectorBase>
<causalConnector id="onKeySelectionStartN">
<connectorParam name="keyCode"/>
<simpleCondition role="onSelection" key="$keyCode"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</causalConnector>
<causalConnector id="onKeySelectionStartNStopN">
<connectorParam name="keyCode"/>
<simpleCondition role="onSelection" key="$keyCode"/>
<compoundAction operator="seq">
<simpleAction role="start" max="unbounded" qualifier="par"/>
<simpleAction role="stop" max="unbounded" qualifier="par"/>
</compoundAction>
</causalConnector>
<causalConnector id="onBegin1StartN">
<simpleCondition role="onBegin"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</causalConnector>
<causalConnector id="onSelection1SetNStopNStartN">
<connectorParam name="var"/>
<simpleCondition role="onSelection"/>
<compoundAction operator="seq">
<simpleAction role="set" value="$var" max="unbounded" qualifier="par"/>
<simpleAction role="stop" max="unbounded" qualifier="par"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</compoundAction>
</causalConnector>
</connectorBase>
</head>
<body>
<media type="application/x-ginga-settings" id="nodeSettings">
<property name="opcao"/>
</media>
<media id="video1" src="media/videodomenu.mpg" descriptor="dVideo1"/>
<media id="opcao1" src="media/opcaoesporte.jpg" descriptor="dOpcao1"/>
<media id="opcao2" src="media/opcaomusica.jpg" descriptor="dOpcao2"/>
<media id="opcao3" src="media/opcao3.jpg" descriptor="dOpcao3"/>
<media id="opcao4" src="media/opcao4.jpg" descriptor="dOpcao4"/>
<switch id="switch14">
<bindRule rule="r4" constituent="selecao140"/>
<media id="selecao140" src="media/3D.jpg" descriptor="dopcao4-10"/>
</switch>
<switch id="switch13">
<bindRule rule="r4" constituent="selecao130"/>
<media id="selecao130" src="media/areia.jpg" descriptor="dopcao4-9"/>
</switch>
<switch id="switch12">
<bindRule rule="r4" constituent="selecao120"/>
<media id="selecao120" src="media/3D.jpg" descriptor="dopcao4-8"/>
</switch>
<switch id="switch11">
<bindRule rule="r4" constituent="selecao110"/>
<media id="selecao110" src="media/areia.jpg" descriptor="dopcao4-7"/>
</switch>
<switch id="switch10">
<bindRule rule="r4-1" constituent="selecao4-1"/>
<bindRule rule="r4-2" constituent="selecao4-2"/>
<bindRule rule="r4-3" constituent="selecao4-3"/>
<bindRule rule="r4-4" constituent="selecao4-4"/>
<bindRule rule="r4-5" constituent="selecao4-5"/>
<bindRule rule="r4-6" constituent="selecao4-6"/>
<bindRule rule="r4-7" constituent="selecao4-7"/>
<bindRule rule="r4-8" constituent="selecao4-8"/>
<bindRule rule="r4-9" constituent="selecao4-9"/>
<bindRule rule="r4-10" constituent="selecao4-10"/>
<media id="selecao4-1" src="media/areia.jpg" descriptor="dimagem"/>
<media id="selecao4-2" src="media/3D.jpg" descriptor="dimagem"/>
<media id="selecao4-3" src="media/areia.jpg" descriptor="dimagem"/>
<media id="selecao4-4" src="media/3D.jpg" descriptor="dimagem"/>
<media id="selecao4-5" src="media/areia.jpg" descriptor="dimagem"/>
<media id="selecao4-6" src="media/3D.jpg" descriptor="dimagem"/>
<media id="selecao4-7" src="media/areia.jpg" descriptor="dimagem"/>
<media id="selecao4-8" src="media/3D.jpg" descriptor="dimagem"/>
<media id="selecao4-9" src="media/areia.jpg" descriptor="dimagem"/>
<media id="selecao4-10" src="media/3D.jpg" descriptor="dimagem"/>
</switch>
<switch id="switch9">
<bindRule rule="r1-1" constituent="selecao90"/>
<media id="selecao90" src="media/resultado1-1.mpg" descriptor="dvideos"/>
<bindRule rule="r1-2" constituent="selecao91"/>
<media id="selecao91" src="media/resultado1-2.mpg" descriptor="dvideos"/>
<bindRule rule="r1-3" constituent="selecao92"/>
<media id="selecao92" src="media/resultado1-3.mpg" descriptor="dvideos"/>
<bindRule rule="r1-4" constituent="selecao93"/>
<media id="selecao93" src="media/resultado1-4.mpg" descriptor="dvideos"/>
</switch>
<switch id="switch8">
<bindRule rule="r3-1" constituent="selecao80"/>
<media id="selecao80" src="media/atlestismo.txt" descriptor="dtexto"/>
<bindRule rule="r3-2" constituent="selecao81"/>
<media id="selecao81" src="media/basquete.txt" descriptor="dtexto"/>
<bindRule rule="r3-3" constituent="selecao82"/>
<media id="selecao82" src="media/judo.txt" descriptor="dtexto"/>
<bindRule rule="r3-4" constituent="selecao83"/>
<media id="selecao83" src="media/natacao.txt" descriptor="dtexto"/>
</switch>
<switch id="switch7">
<bindRule rule="r2-1" constituent="selecao70"/>
<media id="selecao70" src="media/musica1.mp3" descriptor="dResultado"/>
<bindRule rule="r2-2" constituent="selecao71"/>
<media id="selecao71" src="media/musica2.mp3" descriptor="dResultado"/>
<bindRule rule="r2-3" constituent="selecao72"/>
<media id="selecao72" src="media/musica3.mp3" descriptor="dResultado"/>
<bindRule rule="r2-4" constituent="selecao73"/>
<media id="selecao73" src="media/musica4.mp3" descriptor="dResultado"/>
<bindRule rule="r2-5" constituent="selecao74"/>
<media id="selecao74" src="media/musica5.mp3" descriptor="dResultado"/>
<bindRule rule="r2-6" constituent="selecao75"/>
<media id="selecao75" src="media/musica6.mp3" descriptor="dResultado"/>
</switch>
<switch id="switch6">
<bindRule rule="r2" constituent="selecao60"/>
<bindRule rule="r4" constituent="selecao61"/>
<media id="selecao61" src="media/3D.jpg" descriptor="dopcao4-6"/>
<media id="selecao60" src="media/musica6.txt" descriptor="dopcao2-6"/>
</switch>
<switch id="switch5">
<bindRule rule="r2" constituent="selecao50"/>
<bindRule rule="r4" constituent="selecao51"/>
<media id="selecao51" src="media/areia.jpg" descriptor="dopcao4-5"/>
<media id="selecao50" src="media/musica5.txt" descriptor="dopcao2-5"/>
</switch>
<switch id="switch4">
<bindRule rule="r1" constituent="selecao40"/>
<bindRule rule="r2" constituent="selecao41"/>
<bindRule rule="r3" constituent="selecao42"/>
<bindRule rule="r4" constituent="selecao43"/>
<media id="selecao40" src="media/opcaovoltar.jpg" descriptor="dopcaovolta1"/>
<media id="selecao41" src="media/opcaovoltar.jpg" descriptor="dopcaovolta2"/>
<media id="selecao42" src="media/opcaovoltar.jpg" descriptor="dopcaovolta3"/>
<media id="selecao43" src="media/opcaovoltar.jpg" descriptor="dopcaovolta4"/>
</switch>
<switch id="switch3">
<bindRule rule="r1" constituent="selecao30"/>
<bindRule rule="r2" constituent="selecao31"/>
<bindRule rule="r3" constituent="selecao32"/>
<bindRule rule="r4" constituent="selecao33"/>
<media id="selecao33" src="media/3D.jpg" descriptor="dopcao4-4"/>
<media id="selecao32" src="media/natacao.txt" descriptor="dopcao3-4"/>
<media id="selecao31" src="media/musica4.txt" descriptor="dopcao2-4"/>
<media id="selecao30" src="media/4videodo2menu.mpg" descriptor="dopcao1-4"/>
</switch>
<switch id="switch2">
<bindRule rule="r1" constituent="selecao20"/>
<bindRule rule="r2" constituent="selecao21"/>
<bindRule rule="r3" constituent="selecao22"/>
<bindRule rule="r4" constituent="selecao23"/>
<media id="selecao23" src="media/areia.jpg" descriptor="dopcao4-3"/>
<media id="selecao22" src="media/judo.txt" descriptor="dopcao3-3"/>
<media id="selecao20" src="media/3videodo2menu.mpg" descriptor="dopcao1-3"/>
<media id="selecao21" src="media/musica3.txt" descriptor="dopcao2-3"/>
</switch>
<switch id="switch1">
<bindRule rule="r1" constituent="selecao10"/>
<bindRule rule="r2" constituent="selecao11"/>
<bindRule rule="r3" constituent="selecao12"/>
<bindRule rule="r4" constituent="selecao13"/>
<media id="selecao10" src="media/2videodo2menu.mpg" descriptor="dopcao1-2"/>
<media id="selecao11" src="media/musica2.txt" descriptor="dopcao2-2"/>
<media id="selecao12" src="media/basquete.txt" descriptor="dopcao3-2"/>
<media id="selecao13" src="media/3D.jpg" descriptor="dopcao4-2"/>
</switch>
<switch id="switch">
<bindRule rule="r1" constituent="selecao1"/>
<bindRule rule="r2" constituent="selecao2"/>
<bindRule rule="r3" constituent="selecao3"/>
<bindRule rule="r4" constituent="selecao4"/>
<media id="selecao1" src="media/1videodo2menu.mpg" descriptor="dopcao1-1"/>
<media id="selecao2" src="media/musica1.txt" descriptor="dopcao2-1"/>
<media id="selecao3" src="media/atletismo.txt" descriptor="dopcao3-1"/>
<media id="selecao4" src="media/areia.jpg" descriptor="dopcao4-1"/>
</switch>
<link id="Video1Start" xconnector="onBegin1StartN">
<bind component="video1" role="onBegin"/>
<bind component="opcao1" role="start"/>
<bind component="opcao2" role="start"/>
<bind component="opcao3" role="start"/>
<bind component="opcao4" role="start"/>
</link>
<link id="Selecao_OK1" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao1" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="1"/>
</bind>
<bind component="switch" role="start"/>
<bind component="switch1" role="start"/>
<bind component="switch2" role="start"/>
<bind component="switch3" role="start"/>
<bind component="switch4" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
</link>
<link id="Selecao_OK1-1" xconnector="onSelection1SetNStopNStartN">
<bind component="switch" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="1-1"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch9" role="start"/>
</link>
<link id="Selecao_OK1-2" xconnector="onSelection1SetNStopNStartN">
<bind component="switch1" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="1-2"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch9" role="start"/>
</link>
<link id="Selecao_OK1-3" xconnector="onSelection1SetNStopNStartN">
<bind component="switch2" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="1-3"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch9" role="start"/>
</link>
<link id="Selecao_OK1-4" xconnector="onSelection1SetNStopNStartN">
<bind component="switch3" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="1-4"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch9" role="start"/>
</link>
<link id="Selecao_OK2" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao2" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="2"/>
</bind>
<bind component="switch" role="start"/>
<bind component="switch1" role="start"/>
<bind component="switch2" role="start"/>
<bind component="switch3" role="start"/>
<bind component="switch4" role="start"/>
<bind component="switch5" role="start"/>
<bind component="switch6" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
</link>
<link id="Selecao_OK2-1" xconnector="onSelection1SetNStopNStartN">
<bind component="switch" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="2-1"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch7" role="start"/>
</link>
<link id="Selecao_OK2-2" xconnector="onSelection1SetNStopNStartN">
<bind component="switch1" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="2-2"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch7" role="start"/>
</link>
<link id="Selecao_OK2-3" xconnector="onSelection1SetNStopNStartN">
<bind component="switch2" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="2-3"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch7" role="start"/>
</link>
<link id="Selecao_OK2-4" xconnector="onSelection1SetNStopNStartN">
<bind component="switch3" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="2-4"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch7" role="start"/>
</link>
<link id="Selecao_OK2-5" xconnector="onSelection1SetNStopNStartN">
<bind component="switch5" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="2-5"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch7" role="start"/>
</link>
<link id="Selecao_OK2-6" xconnector="onSelection1SetNStopNStartN">
<bind component="switch6" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="2-6"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch7" role="start"/>
</link>
<link id="Selecao_OK3" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao3" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="3"/>
</bind>
<bind component="switch" role="start"/>
<bind component="switch1" role="start"/>
<bind component="switch2" role="start"/>
<bind component="switch3" role="start"/>
<bind component="switch4" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
</link>
<link id="Selecao_OK3-1" xconnector="onSelection1SetNStopNStartN">
<bind component="switch" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="3-1"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch8" role="start"/>
</link>
<link id="Selecao_OK3-2" xconnector="onSelection1SetNStopNStartN">
<bind component="switch1" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="3-2"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch8" role="start"/>
</link>
<link id="Selecao_OK3-3" xconnector="onSelection1SetNStopNStartN">
<bind component="switch2" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="3-3"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch8" role="start"/>
</link>
<link id="Selecao_OK3-4" xconnector="onSelection1SetNStopNStartN">
<bind component="switch3" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="3-4"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch8" role="start"/>
</link>
<link id="Selecao_OK4" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao4" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4"/>
</bind>
<bind component="switch" role="start"/>
<bind component="switch1" role="start"/>
<bind component="switch2" role="start"/>
<bind component="switch3" role="start"/>
<bind component="switch4" role="start"/>
<bind component="switch5" role="start"/>
<bind component="switch6" role="start"/>
<bind component="switch11" role="start"/>
<bind component="switch12" role="start"/>
<bind component="switch13" role="start"/>
<bind component="switch14" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
</link>
<link id="Selecao_OK4-1" xconnector="onSelection1SetNStopNStartN">
<bind component="switch" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-1"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link id="Selecao_OK4-2" xconnector="onSelection1SetNStopNStartN">
<bind component="switch1" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-2"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link id="Selecao_OK4-3" xconnector="onSelection1SetNStopNStartN">
<bind component="switch2" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-3"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link id="Selecao_OK4-4" xconnector="onSelection1SetNStopNStartN">
<bind component="switch3" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-4"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link id="Selecao_OK4-5" xconnector="onSelection1SetNStopNStartN">
<bind component="switch5" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-5"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link id="Selecao_OK4-6" xconnector="onSelection1SetNStopNStartN">
<bind component="switch6" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-6"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link id="Selecao_OK4-7" xconnector="onSelection1SetNStopNStartN">
<bind component="switch11" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-7"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link id="Selecao_OK4-8" xconnector="onSelection1SetNStopNStartN">
<bind component="switch12" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-8"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link id="Selecao_OK4-9" xconnector="onSelection1SetNStopNStartN">
<bind component="switch13" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-9"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link id="Selecao_OK4-10" xconnector="onSelection1SetNStopNStartN">
<bind component="switch14" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4-10"/>
</bind>
<bind component="switch" role="stop"/>
<bind component="switch1" role="stop"/>
<bind component="switch2" role="stop"/>
<bind component="switch3" role="stop"/>
<bind component="switch5" role="stop"/>
<bind component="switch6" role="stop"/>
<bind component="switch11" role="stop"/>
<bind component="switch12" role="stop"/>
<bind component="switch13" role="stop"/>
<bind component="switch14" role="stop"/>
<bind component="switch10" role="start"/>
</link>
<link xconnector="onKeySelectionStartNStopN">
<linkParam name="keyCode" value="MENU"/>
<bind role="onSelection" component="switch4"/>
<bind role="stop" component="switch"/>
<bind role="stop" component="switch1"/>
<bind role="stop" component="switch2"/>
<bind role="stop" component="switch3"/>
<bind role="stop" component="switch4"/>
<bind role="stop" component="switch5"/>
<bind role="stop" component="switch6"/>
<bind role="stop" component="switch7"/>
<bind role="stop" component="switch8"/>
<bind role="stop" component="switch9"/>
<bind role="stop" component="switch10"/>
<bind role="stop" component="switch11"/>
<bind role="stop" component="switch12"/>
<bind role="stop" component="switch13"/>
<bind role="stop" component="switch14"/>
<bind role="start" component="opcao1"/>
<bind role="start" component="opcao2"/>
<bind role="start" component="opcao3"/>
<bind role="start" component="opcao4"/>
<bind role="start" component="video1"/>
</link>
<media descriptor="dmenu" src="media/Menu1.jpg" id="menu"/>
<port component="menu" id="port_exemplo12_menu"/>
<link xconnector="onBegin1StartN" id="elo0">
<bind role="onBegin" component="menu"/>
<bind role="start" component="video1"/>
</link>
</body>
</ncl>
Caso possua erros por favor reporte eles e se possível como posso altera-lo eu não entendo muito do assunto!Obrigado.
Vinícius.
Autor: Vinícius sacramento
55 comentários
<ncl id="exemplo12" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! BASE DE REGI�ES:
! define as regi�es na tela onde as m�dias s�o apresentadas
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <regionBase>
<region left="0" top="0" zIndex="1" width="100.0%" height="100.0%" id="rgTv">
<region left="1188" top="32" zIndex="2" width="58" height="55" id="rgIcone"/>
<region left="967" top="946" zIndex="3" width="280" height="50" id="rgAssunto1"/>
<region left="967" top="888" zIndex="3" width="280" height="50" id="rgAssunto2"/>
<region left="967" top="829" zIndex="3" width="280" height="50" id="rgAssunto3"/>
<region left="967" top="771" zIndex="3" width="280" height="50" id="rgAssunto4"/>
<region left="967" top="713" zIndex="3" width="280" height="50" id="rgAssunto5"/>
<region left="665" top="947" zIndex="3" width="280" height="50" id="rgNoticia1-1"/>
<region left="665" top="888" zIndex="3" width="280" height="50" id="rgNoticia1-2"/>
<region left="665" top="829" zIndex="3" width="280" height="50" id="rgNoticia1-3"/>
<region left="665" top="770" zIndex="3" width="280" height="50" id="rgNoticia1-4"/>
<region left="665" top="713" zIndex="3" width="280" height="50" id="rgNoticia1-5"/>
<region left="665" top="947" zIndex="3" width="280" height="50" id="rgNoticia2-1"/>
<region left="665" top="888" zIndex="3" width="280" height="50" id="rgNoticia2-2"/>
<region left="665" top="829" zIndex="3" width="280" height="50" id="rgNoticia2-3"/>
<region left="665" top="770" zIndex="3" width="280" height="50" id="rgNoticia2-4"/>
<region left="665" top="713" zIndex="3" width="280" height="50" id="rgNoticia2-5"/>
<region left="665" top="947" zIndex="3" width="280" height="50" id="rgNoticia3-1"/>
<region left="665" top="888" zIndex="3" width="280" height="50" id="rgNoticia3-2"/>
<region left="665" top="829" zIndex="3" width="280" height="50" id="rgNoticia3-3"/>
<region left="665" top="770" zIndex="3" width="280" height="50" id="rgNoticia3-4"/>
<region left="665" top="713" zIndex="3" width="280" height="50" id="rgNoticia3-5"/>
<region left="665" top="947" zIndex="3" width="280" height="50" id="rgNoticia4-1"/>
<region left="665" top="888" zIndex="3" width="280" height="50" id="rgNoticia4-2"/>
<region left="665" top="829" zIndex="3" width="280" height="50" id="rgNoticia4-3"/>
<region left="665" top="770" zIndex="3" width="280" height="50" id="rgNoticia4-4"/>
<region left="665" top="713" zIndex="3" width="280" height="50" id="rgNoticia4-5"/>
<region left="665" top="947" zIndex="3" width="280" height="50" id="rgNoticia5-1"/>
<region left="665" top="888" zIndex="3" width="280" height="50" id="rgNoticia5-2"/>
<region left="665" top="829" zIndex="3" width="280" height="50" id="rgNoticia5-3"/>
<region left="665" top="770" zIndex="3" width="280" height="50" id="rgNoticia5-4"/>
<region left="665" top="713" zIndex="3" width="280" height="50" id="rgNoticia5-5"/>
<region left="630" top="683" zIndex="2" width="649" height="342" id="rgEfeito1"/>
<region left="0" top="0" zIndex="4" width="100%" height="100%" id="rgVideo" />
</region>
</regionBase> <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! BASE DE DESCRITORES:
! define como as m�dias s�o apresentadas
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <descriptorBase>
<descriptor id="dTv" region="rgTv"/>
<descriptor id="dVideo" region="rgVideo" />
<descriptor id="dAssunto1" region="rgAssunto1" focusIndex="1" moveDown="2" moveUp="5" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\assunto1selecionado.png" />
<descriptor id="dAssunto2" region="rgAssunto2" focusIndex="2" moveDown="3" moveUp="1" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\assunto2selecionado.png" />
<descriptor id="dAssunto3" region="rgAssunto3" focusIndex="3" moveDown="4" moveUp="2" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\assunto3selecionado.png" />
<descriptor id="dAssunto4" region="rgAssunto4" focusIndex="4" moveDown="5" moveUp="3" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\assunto4selecionado.png" />
<descriptor id="dAssunto5" region="rgAssunto5" focusIndex="5" moveDown="1" moveUp="4" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\assunto5selecionado.png" />
<descriptor id="dNoticia1-1" region="rgNocitia1-1" focusIndex="1-1" moveDown="1-2" moveUp="1-5" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia1-1selecionado.png" />
<descriptor id="dNoticia1-2" region="rgNoticia1-2" focusIndex="1-2" moveDown="1-3" moveUp="1-1" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia1-2selecionado.png" />
<descriptor id="dNoticia1-3" region="rgNoticia1-3" focusIndex="1-3" moveDown="1-4" moveUp="1-2" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia1-3selecionado.png" />
<descriptor id="dNoticia1-4" region="rgNoticia1-4" focusIndex="1-4" moveDown="1-5" moveUp="1-3" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia1-4selecionado.png" />
<descriptor id="dNoticia1-5" region="rgNoticia1-5" focusIndex="1-5" moveDown="1-1" moveUp="1-4" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia1-5selecionado.png" />
<descriptor id="dNoticia2-1" region="rgNocitia2-1" focusIndex="2-1" moveDown="2-2" moveUp="2-5" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia2-1selecionado.png" />
<descriptor id="dNoticia2-2" region="rgNoticia2-2" focusIndex="2-2" moveDown="2-3" moveUp="2-1" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia2-2selecionado.png" />
<descriptor id="dNoticia2-3" region="rgNoticia2-3" focusIndex="2-3" moveDown="2-4" moveUp="2-2" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia2-3selecionado.png" />
<descriptor id="dNoticia2-4" region="rgNoticia2-4" focusIndex="2-4" moveDown="2-5" moveUp="2-3" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia2-4selecionado.png" />
<descriptor id="dNoticia2-5" region="rgNoticia2-5" focusIndex="2-5" moveDown="2-1" moveUp="2-4" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia2-5selecionado.png" />
<descriptor id="dNoticia3-1" region="rgNocitia3-1" focusIndex="3-1" moveDown="3-2" moveUp="3-5" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia3-1selecionado.png" />
<descriptor id="dNoticia3-2" region="rgNoticia3-2" focusIndex="3-2" moveDown="3-3" moveUp="3-1" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia3-2selecionado.png" />
<descriptor id="dNoticia3-3" region="rgNoticia3-3" focusIndex="3-3" moveDown="3-4" moveUp="3-2" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia3-3selecionado.png" />
<descriptor id="dNoticia3-4" region="rgNoticia3-4" focusIndex="3-4" moveDown="3-5" moveUp="3-3" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia3-4selecionado.png" />
<descriptor id="dNoticia3-5" region="rgNoticia3-5" focusIndex="3-5" moveDown="3-1" moveUp="3-4" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia3-5selecionado.png" />
<descriptor id="dNoticia4-1" region="rgNocitia4-1" focusIndex="4-1" moveDown="4-2" moveUp="4-5" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia4-1selecionado.png" />
<descriptor id="dNoticia4-2" region="rgNoticia4-2" focusIndex="4-2" moveDown="4-3" moveUp="4-1" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia4-2selecionado.png" />
<descriptor id="dNoticia4-3" region="rgNoticia4-3" focusIndex="4-3" moveDown="4-4" moveUp="4-2" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia4-3selecionado.png" />
<descriptor id="dNoticia4-4" region="rgNoticia4-4" focusIndex="4-4" moveDown="4-5" moveUp="4-3" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia4-4selecionado.png" />
<descriptor id="dNoticia4-5" region="rgNoticia4-5" focusIndex="4-5" moveDown="4-1" moveUp="4-4" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia4-5selecionado.png" />
<descriptor id="dNoticia5-1" region="rgNocitia5-1" focusIndex="5-1" moveDown="5-2" moveUp="5-5" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia5-1selecionado.png" />
<descriptor id="dNoticia5-2" region="rgNoticia5-2" focusIndex="5-2" moveDown="5-3" moveUp="5-1" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia5-2selecionado.png" />
<descriptor id="dNoticia5-3" region="rgNoticia5-3" focusIndex="5-3" moveDown="5-4" moveUp="5-2" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia5-3selecionado.png" />
<descriptor id="dNoticia5-4" region="rgNoticia5-4" focusIndex="5-4" moveDown="5-5" moveUp="5-3" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia5-4selecionado.png" />
<descriptor id="dNoticia5-5" region="rgNoticia5-5" focusIndex="5-5" moveDown="5-1" moveUp="5-4" focusBorderWidth="-2" focusBorderColor="black" focusSelScr="media\noticia5-5selecionado.png" />
</descriptorBase> <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! BASE DE REGRAS:
! definem regras utilizadas em switches para a sele��o de n�s
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <ruleBase>
<rule id="r1" var="assunto" comparator="eq" value="1"/>
<rule id="r2" var="assunto" comparator="eq" value="2"/>
<rule id="r3" var="assunto" comparator="eq" value="3"/>
<rule id="r4" var="assunto" comparator="eq" value="4"/>
<rule id="r5" var="assunto" comparator="eq" value="5"/>
<rule id="r1-1" var="noticia1" comparator="eq" value="1-1"/>
<rule id="r1-2" var="noticia1" comparator="eq" value="1-2"/>
<rule id="r1-3" var="noticia1" comparator="eq" value="1-3"/>
<rule id="r1-4" var="noticia1" comparator="eq" value="1-4"/>
<rule id="r1-5" var="noticia1" comparator="eq" value="1-5"/>
<rule id="r2-1" var="noticia2" comparator="eq" value="2-1"/>
<rule id="r2-2" var="noticia2" comparator="eq" value="2-2"/>
<rule id="r2-3" var="noticia2" comparator="eq" value="2-3"/>
<rule id="r2-4" var="noticia2" comparator="eq" value="2-4"/>
<rule id="r2-5" var="noticia2" comparator="eq" value="2-5"/>
<rule id="r3-1" var="noticia3" comparator="eq" value="3-1"/>
<rule id="r3-2" var="noticia3" comparator="eq" value="3-2"/>
<rule id="r3-3" var="noticia3" comparator="eq" value="3-3"/>
<rule id="r3-4" var="noticia3" comparator="eq" value="3-4"/>
<rule id="r3-5" var="noticia3" comparator="eq" value="3-5"/>
<rule id="r4-1" var="noticia4" comparator="eq" value="4-1"/>
<rule id="r4-2" var="noticia4" comparator="eq" value="4-2"/>
<rule id="r4-3" var="noticia4" comparator="eq" value="4-3"/>
<rule id="r4-4" var="noticia4" comparator="eq" value="4-4"/>
<rule id="r4-5" var="noticia4" comparator="eq" value="4-5"/>
<rule id="r5-1" var="noticia5" comparator="eq" value="5-1"/>
<rule id="r5-2" var="noticia5" comparator="eq" value="5-2"/>
<rule id="r5-3" var="noticia5" comparator="eq" value="5-3"/>
<rule id="r5-4" var="noticia5" comparator="eq" value="5-4"/>
<rule id="r5-5" var="noticia5" comparator="eq" value="5-5"/>
</ruleBase> <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! BASE DE CONECTORES:
! definem o comportamento dos elos
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <connectorBase> <causalConnector id="onBegin1StartN">
<simpleCondition role="onBegin"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</causalConnector>
<causalConnector id="onKeySelectionStartNSetStopN">
<connectorParam name="var"/>
<connectorParam name="keyCode"/>
<simpleCondition role="onSelection" key="$keyCode"/>
<compoundAction operator="seq">
<simpleAction role="start" max="unbounded"/>
<simpleAction role="set" value="$var"/>
<simpleAction role="stop" max="unbounded" />
</compoundAction>
</causalConnector>
<casualConnector id="onKeySelectionStartNStopN">
<connectorParam name="keyCode"/>
<simpleCondition role="onSelection" key="$keyCode"/>
<compoundAction operator="par">
<simpleAction role="start" max="unbounded" />
<simpleAction role="stop" max="unbounded" />
</compoundAction>
</casualConnector>
<causalConnector id="onSelection1SetNStopNStartNPauseN">
<connectorParam name="var"/>
<simpleCondition role="onSelection"/>
<compoundAction operator="seq">
<simpleAction role="set" value="$var" max="unbounded" qualifier="par"/>
<simpleAction role="stop" max="unbounded" qualifier="par"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
<simpleAction role="pause" max="unbounded" qualifier="par"/>
</compoundAction>
</causalConnector>
<causalConnector id="onSelection1SetNStopNStartNPauseN">
<simpleCondition role="onSelection"/>
<compoundAction operator="seq">
<simpleAction role="set" value="$var" max="unbounded" qualifier="par"/>
<simpleAction role="stop" max="unbounded" qualifier="par"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
<simpleAction role="pause" max="unbounded" qualifier="par"/>
</compoundAction>
</causalConnector>
<causalConnector id="onSelection1SetNStartNPauseN">
<connectorParam name="var"/>
<simpleCondition role="onSelection"/>
<compoundAction operator="seq">
<simpleAction role="set" value="$var" max="unbounded" qualifier="par"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
<simpleAction role="pause" max="unbounded" qualifier="par"/>
</compoundAction>
</causalConnector>
</connectorBase> </head> <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! CORPO DO PROGRAMA:
! define as m�dias e estrutura do programa
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <body> <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! PONTO DE ENTRADA:
! indica o componente onde o programa inicia
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <port id="pEntryPoint" component="video1"/> <media type="application/x-ginga-settings" id="nodeAssunto">
<property name="assunto"/>
</media>
<media type="application/x-ginga-settings" id="nodeNoticia1">
<property name="noticia1"/>
</media>
<media type="application/x-ginga-settings" id="nodeNoticia2">
<property name="noticia2"/>
</media>
<media type="application/x-ginga-settings" id="nodeNoticia3">
<property name="noticia3"/>
</media>
<media type="application/x-ginga-settings" id="nodeNoticia4">
<property name="noticia4"/>
</media>
<media type="application/x-ginga-settings" id="nodeNoticia5">
<property name="noticia5"/>
</media> <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! M�DIAS:
! define o local dos arquivos de m�dia e as associa com seus descritores
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <media id="video1" type="video\mpeg" src="media\video1.mpg" descriptor="dVideo1"/> <media id="mAssunto1" type="image\png" src="media\assunto1.png" descriptor="dAssunto1"/>
<media id="mAssunto2" type="image\png" src="media\assunto2.png" descriptor="dAssunto2"/>
<media id="mAssunto3" type="image\png" src="media\assunto3.png" descriptor="dAssunto3"/>
<media id="mAssunto4" type="image\png" src="media\assunto4.png" descriptor="dAssunto4"/>
<media id="mAssunto5" type="image\png" src="media\assunto5.png" descriptor="dAssunto5"/>
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! SWITCH:
! cont�m os n�s dentre os quais um ser� selecionado
! com base nas regras definidas por bindRule
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <switch id="switchAssunto">
<!-- caso a regra ri seja v�lida, dispara o n� selecaoi -->
<switchPort id="pAssunto">
<mapping component="ctxAssunto1" interface="pAssunto1"/>
<mapping component="ctxAssunto2" interface="pAssunto2"/>
<mapping component="ctxAssunto3" interface="pAssunto3"/>
<mapping component="ctxAssunto4" interface="pAssunto4"/>
<mapping component="ctxAssunto5" interface="pAssunto5"/>
</switchPort> <bindRule rule="r1" constituent="ctxAssunto1" />
<bindRule rule="r2" constituent="ctxAssunto2" />
<bindRule rule="r3" constituent="ctxAssunto3" />
<bindRule rule="r4" constituent="ctxAssunto4" />
<bindRule rule="r5" constituent="ctxAssunto5" />
<context id="ctxAssunto1">
<port id="pAssunto1" component="switchNoticia1" />
<media id="mNoticia1-1" type="image\png" src="media\noticia1\noticia1.png" descriptor="dNoticia1-1" />
<media id="mNoticia1-2" type="image\png" src="media\noticia1\noticia2.png" descriptor="dNoticia1-2" />
<media id="mNoticia1-3" type="image\png" src="media\noticia1\noticia3.png" descriptor="dNoticia1-3" />
<media id="mNoticia1-4" type="image\png" src="media\noticia1\noticia4.png" descriptor="dNoticia1-4" />
<media id="mNoticia1-5" type="image\png" src="media\noticia1\noticia5.png" descriptor="dNoticia1-5" />
<switch id="switchNoticia1">
<bindRule rule="r1-1" constituent="mVideo1-1." />
<bindRule rule="r1-2" constituent="mVideo1-2." />
<bindRule rule="r1-3" constituent="mVideo1-3." />
<bindRule rule="r1-4" constituent="mVideo1-4." />
<bindRule rule="r1-5" constituent="mVideo1-5." />
<media id="mVideo1-1" type="video/mpeg" src="media\noticia1\noticia1-1\video.mpg" descriptor="dVideo" />
<media id="mVideo1-2" type="video/mpeg" src="media\noticia1\noticia1-2\video.mpg" descriptor="dVideo" />
<media id="mVideo1-3" type="video/mpeg" src="media\noticia1\noticia1-3\video.mpg" descriptor="dVideo" />
<media id="mVideo1-4" type="video/mpeg" src="media\noticia1\noticia1-4\video.mpg" descriptor="dVideo" />
<media id="mVideo1-5" type="video/mpeg" src="media\noticia1\noticia1-5\video.mpg" descriptor="dVideo" />
</switch>
<!-- IMPLEMENTAR ELOS -->
<link id="Selecao_OK1-1" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia1-1" role="onSelection"/>
<bind component="nodeNoticia1" interface="noticia1" role="set">
<bindParam name="var" value="1-1"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia1" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo1-1" role="start"/>
<bind component="mVideo1-2" role="stop" />
<bind component="mVideo1-3" role="stop" />
<bind component="mVideo1-4" role="stop" />
<bind component="mVideo1-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK1-2" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia1-2" role="onSelection"/>
<bind component="nodeNoticia1" interface="noticia1" role="set">
<bindParam name="var" value="1-2"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto1" role="stop"/>
<bind component="nodeNoticia" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo1-1" role="stop"/>
<bind component="mVideo1-2" role="start" />
<bind component="mVideo1-3" role="stop" />
<bind component="mVideo1-4" role="stop" />
<bind component="mVideo1-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK1-3" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia1-3" role="onSelection"/>
<bind component="nodeNoticia1" interface="noticia1" role="set">
<bindParam name="var" value="1-3"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto1" role="stop"/>
<bind component="nodeNoticia" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo1-1" role="stop"/>
<bind component="mVideo1-2" role="stop" />
<bind component="mVideo1-3" role="start" />
<bind component="mVideo1-4" role="stop" />
<bind component="mVideo1-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK1-4" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia1-4" role="onSelection"/>
<bind component="nodeNoticia1" interface="noticia1" role="set">
<bindParam name="var" value="1-4"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto1" role="stop"/>
<bind component="nodeNoticia" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo1-1" role="stop"/>
<bind component="mVideo1-2" role="stop" />
<bind component="mVideo1-3" role="stop" />
<bind component="mVideo1-4" role="start" />
<bind component="mVideo1-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK1-5" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia1-5" role="onSelection"/>
<bind component="nodeNoticia1" interface="noticia1" role="set">
<bindParam name="var" value="1-5"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto1" role="stop"/>
<bind component="nodeNoticia" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo1-1" role="stop"/>
<bind component="mVideo1-2" role="stop" />
<bind component="mVideo1-3" role="stop" />
<bind component="mVideo1-4" role="stop" />
<bind component="mVideo1-5" role="start" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
</context>
<context id="ctxAssunto2">
<port id="pAssunto2" component="switchNoticia2" />
<media id="mNoticia2-1" type="image\png" src="media\noticia2\noticia1.png" descriptor="dNoticia2-1" />
<media id="mNoticia2-2" type="image\png" src="media\noticia2\noticia2.png" descriptor="dNoticia2-2" />
<media id="mNoticia2-3" type="image\png" src="media\noticia2\noticia3.png" descriptor="dNoticia2-3" />
<media id="mNoticia2-4" type="image\png" src="media\noticia2\noticia4.png" descriptor="dNoticia2-4" />
<media id="mNoticia2-5" type="image\png" src="media\noticia2\noticia5.png" descriptor="dNoticia2-5" />
<switch id="switchNoticia2">
<bindRule rule="r2-1" constituent="mVideo2-1." />
<bindRule rule="r2-2" constituent="mVideo2-2." />
<bindRule rule="r2-3" constituent="mVideo2-3." />
<bindRule rule="r2-4" constituent="mVideo2-4." />
<bindRule rule="r2-5" constituent="mVideo2-5." />
<media id="mVideo2-1" type="video/mpeg" src="media\noticia2\noticia2-1\video.mpg" descriptor="dVideo" />
<media id="mVideo2-2" type="video/mpeg" src="media\noticia2\noticia2-2\video.mpg" descriptor="dVideo" />
<media id="mVideo2-3" type="video/mpeg" src="media\noticia2\noticia2-3\video.mpg" descriptor="dVideo" />
<media id="mVideo2-4" type="video/mpeg" src="media\noticia2\noticia2-4\video.mpg" descriptor="dVideo" />
<media id="mVideo2-5" type="video/mpeg" src="media\noticia2\noticia1-5\video.mpg" descriptor="dVideo" />
</switch>
<!-- IMPLEMENTAR ELOS -->
<link id="Selecao_OK2-1" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia2-1" role="onSelection"/>
<bind component="nodeNoticia2" interface="noticia2" role="set">
<bindParam name="var" value="2-1"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia2" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo2-1" role="start"/>
<bind component="mVideo2-2" role="stop" />
<bind component="mVideo2-3" role="stop" />
<bind component="mVideo2-4" role="stop" />
<bind component="mVideo2-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK2-2" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia2-2" role="onSelection"/>
<bind component="nodeNoticia2" interface="noticia2" role="set">
<bindParam name="var" value="2-2"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia2" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo2-1" role="stop"/>
<bind component="mVideo2-2" role="start" />
<bind component="mVideo2-3" role="stop" />
<bind component="mVideo2-4" role="stop" />
<bind component="mVideo2-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK2-3" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia2-3" role="onSelection"/>
<bind component="nodeNoticia2" interface="noticia2" role="set">
<bindParam name="var" value="2-3"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia2" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo2-1" role="stop"/>
<bind component="mVideo2-2" role="stop" />
<bind component="mVideo2-3" role="start" />
<bind component="mVideo2-4" role="stop" />
<bind component="mVideo2-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK2-4" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia2-4" role="onSelection"/>
<bind component="nodeNoticia2" interface="noticia2" role="set">
<bindParam name="var" value="2-4"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia2" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo2-1" role="stop"/>
<bind component="mVideo2-2" role="stop" />
<bind component="mVideo2-3" role="stop" />
<bind component="mVideo2-4" role="start" />
<bind component="mVideo2-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK2-5" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia2-5" role="onSelection"/>
<bind component="nodeNoticia2" interface="noticia2" role="set">
<bindParam name="var" value="2-5"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia2" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo2-1" role="stop"/>
<bind component="mVideo2-2" role="stop" />
<bind component="mVideo2-3" role="stop" />
<bind component="mVideo2-4" role="stop" />
<bind component="mVideo2-5" role="start" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
</context>
<context id="ctxAssunto3">
<port id="pAssunto3" component="switchNoticia3" />
<media id="mNoticia3-1" type="image\png" src="media\noticia3\noticia1.png" descriptor="dNoticia3-1" />
<media id="mNoticia3-2" type="image\png" src="media\noticia3\noticia2.png" descriptor="dNoticia3-2" />
<media id="mNoticia3-3" type="image\png" src="media\noticia3\noticia3.png" descriptor="dNoticia3-3" />
<media id="mNoticia3-4" type="image\png" src="media\noticia3\noticia4.png" descriptor="dNoticia3-4" />
<media id="mNoticia3-5" type="image\png" src="media\noticia3\noticia5.png" descriptor="dNoticia3-5" />
<switch id="switchNoticia3">
<bindRule rule="r3-1" constituent="mVideo3-1." />
<bindRule rule="r3-2" constituent="mVideo3-2." />
<bindRule rule="r3-3" constituent="mVideo3-3." />
<bindRule rule="r3-4" constituent="mVideo3-4." />
<bindRule rule="r3-5" constituent="mVideo3-5." />
<media id="mVideo3-1" type="video/mpeg" src="media\noticia3\noticia3-1\video.mpg" descriptor="dVideo" />
<media id="mVideo3-2" type="video/mpeg" src="media\noticia3\noticia3-2\video.mpg" descriptor="dVideo" />
<media id="mVideo3-3" type="video/mpeg" src="media\noticia3\noticia3-3\video.mpg" descriptor="dVideo" />
<media id="mVideo3-4" type="video/mpeg" src="media\noticia3\noticia3-4\video.mpg" descriptor="dVideo" />
<media id="mVideo3-5" type="video/mpeg" src="media\noticia3\noticia1-5\video.mpg" descriptor="dVideo" />
</switch>
<!-- IMPLEMENTAR ELOS -->
<link id="Selecao_OK3-1" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia3-1" role="onSelection"/>
<bind component="nodeNoticia3" interface="noticia3" role="set">
<bindParam name="var" value="3-1"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia3" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo3-1" role="start"/>
<bind component="mVideo3-2" role="stop" />
<bind component="mVideo3-3" role="stop" />
<bind component="mVideo3-4" role="stop" />
<bind component="mVideo3-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK3-2" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia3-2" role="onSelection"/>
<bind component="nodeNoticia3" interface="noticia3" role="set">
<bindParam name="var" value="3-2"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia3" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo3-1" role="stop"/>
<bind component="mVideo3-2" role="start" />
<bind component="mVideo3-3" role="stop" />
<bind component="mVideo3-4" role="stop" />
<bind component="mVideo3-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK3-3" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia3-3" role="onSelection"/>
<bind component="nodeNoticia3" interface="noticia3" role="set">
<bindParam name="var" value="3-3"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia3" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo3-1" role="stop"/>
<bind component="mVideo3-2" role="stop" />
<bind component="mVideo3-3" role="start" />
<bind component="mVideo3-4" role="stop" />
<bind component="mVideo3-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK3-4" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia3-4" role="onSelection"/>
<bind component="nodeNoticia3" interface="noticia3" role="set">
<bindParam name="var" value="3-4"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia3" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo3-1" role="stop"/>
<bind component="mVideo3-2" role="stop" />
<bind component="mVideo3-3" role="stop" />
<bind component="mVideo3-4" role="start" />
<bind component="mVideo3-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK3-5" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia3-5" role="onSelection"/>
<bind component="nodeNoticia3" interface="noticia3" role="set">
<bindParam name="var" value="3-5"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia3" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo3-1" role="stop"/>
<bind component="mVideo3-2" role="stop" />
<bind component="mVideo3-3" role="stop" />
<bind component="mVideo3-4" role="stop" />
<bind component="mVideo3-5" role="start" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
</context>
<context id="ctxAssunto4">
<port id="pAssunto4" component="switchNoticia4" />
<media id="mNoticia4-1" type="image\png" src="media\noticia4\noticia1.png" descriptor="dNoticia4-1" />
<media id="mNoticia4-2" type="image\png" src="media\noticia4\noticia2.png" descriptor="dNoticia4-2" />
<media id="mNoticia4-3" type="image\png" src="media\noticia4\noticia3.png" descriptor="dNoticia4-3" />
<media id="mNoticia4-4" type="image\png" src="media\noticia4\noticia4.png" descriptor="dNoticia4-4" />
<media id="mNoticia4-5" type="image\png" src="media\noticia4\noticia5.png" descriptor="dNoticia4-5" />
<switch id="switchNoticia4">
<bindRule rule="r4-1" constituent="mVideo4-1." />
<bindRule rule="r4-2" constituent="mVideo4-2." />
<bindRule rule="r4-3" constituent="mVideo4-3." />
<bindRule rule="r4-4" constituent="mVideo4-4." />
<bindRule rule="r4-5" constituent="mVideo4-5." />
<media id="mVideo4-1" type="video/mpeg" src="media\noticia4\noticia4-1\video.mpg" descriptor="dVideo" />
<media id="mVideo4-2" type="video/mpeg" src="media\noticia4\noticia4-2\video.mpg" descriptor="dVideo" />
<media id="mVideo4-3" type="video/mpeg" src="media\noticia4\noticia4-3\video.mpg" descriptor="dVideo" />
<media id="mVideo4-4" type="video/mpeg" src="media\noticia4\noticia4-4\video.mpg" descriptor="dVideo" />
<media id="mVideo4-5" type="video/mpeg" src="media\noticia4\noticia1-5\video.mpg" descriptor="dVideo" />
</switch>
<!-- IMPLEMENTAR ELOS -->
<link id="Selecao_OK4-1" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia4-1" role="onSelection"/>
<bind component="nodeNoticia4" interface="noticia4" role="set">
<bindParam name="var" value="4-1"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia4" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo4-1" role="start"/>
<bind component="mVideo4-2" role="stop" />
<bind component="mVideo4-3" role="stop" />
<bind component="mVideo4-4" role="stop" />
<bind component="mVideo4-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK4-2" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia4-2" role="onSelection"/>
<bind component="nodeNoticia4" interface="noticia4" role="set">
<bindParam name="var" value="4-2"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia4" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo4-1" role="stop"/>
<bind component="mVideo4-2" role="start" />
<bind component="mVideo4-3" role="stop" />
<bind component="mVideo4-4" role="stop" />
<bind component="mVideo4-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK4-3" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia4-3" role="onSelection"/>
<bind component="nodeNoticia4" interface="noticia4" role="set">
<bindParam name="var" value="4-3"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia4" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo4-1" role="stop"/>
<bind component="mVideo4-2" role="stop" />
<bind component="mVideo4-3" role="start" />
<bind component="mVideo4-4" role="stop" />
<bind component="mVideo4-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK4-4" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia4-4" role="onSelection"/>
<bind component="nodeNoticia4" interface="noticia4" role="set">
<bindParam name="var" value="4-4"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia4" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo4-1" role="stop"/>
<bind component="mVideo4-2" role="stop" />
<bind component="mVideo4-3" role="stop" />
<bind component="mVideo4-4" role="start" />
<bind component="mVideo4-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK4-5" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia4-5" role="onSelection"/>
<bind component="nodeNoticia4" interface="noticia4" role="set">
<bindParam name="var" value="4-5"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia4" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo4-1" role="stop"/>
<bind component="mVideo4-2" role="stop" />
<bind component="mVideo4-3" role="stop" />
<bind component="mVideo4-4" role="stop" />
<bind component="mVideo4-5" role="start" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
</context>
<context id="ctxAssunto5">
<port id="pAssunto5" component="switchNoticia5" />
<media id="mNoticia5-1" type="image\png" src="media\noticia5\noticia1.png" descriptor="dNoticia5-1" />
<media id="mNoticia5-2" type="image\png" src="media\noticia5\noticia2.png" descriptor="dNoticia5-2" />
<media id="mNoticia5-3" type="image\png" src="media\noticia5\noticia3.png" descriptor="dNoticia5-3" />
<media id="mNoticia5-4" type="image\png" src="media\noticia5\noticia4.png" descriptor="dNoticia5-4" />
<media id="mNoticia5-5" type="image\png" src="media\noticia5\noticia5.png" descriptor="dNoticia5-5" />
<switch id="switchNoticia5">
<bindRule rule="r5-1" constituent="mVideo5-1." />
<bindRule rule="r5-2" constituent="mVideo5-2." />
<bindRule rule="r5-3" constituent="mVideo5-3." />
<bindRule rule="r5-4" constituent="mVideo5-4." />
<bindRule rule="r5-5" constituent="mVideo5-5." />
<media id="mVideo5-1" type="video/mpeg" src="media\noticia5\noticia5-1\video.mpg" descriptor="dVideo" />
<media id="mVideo5-2" type="video/mpeg" src="media\noticia5\noticia5-2\video.mpg" descriptor="dVideo" />
<media id="mVideo5-3" type="video/mpeg" src="media\noticia5\noticia5-3\video.mpg" descriptor="dVideo" />
<media id="mVideo5-4" type="video/mpeg" src="media\noticia5\noticia5-4\video.mpg" descriptor="dVideo" />
<media id="mVideo5-5" type="video/mpeg" src="media\noticia5\noticia1-5\video.mpg" descriptor="dVideo" />
</switch>
<!-- IMPLEMENTAR ELOS -->
<link id="Selecao_OK5-1" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia5-1" role="onSelection"/>
<bind component="nodeNoticia5" interface="noticia5" role="set">
<bindParam name="var" value="5-1"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia5" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo5-1" role="start"/>
<bind component="mVideo5-2" role="stop" />
<bind component="mVideo5-3" role="stop" />
<bind component="mVideo5-4" role="stop" />
<bind component="mVideo5-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK5-2" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia5-2" role="onSelection"/>
<bind component="nodeNoticia5" interface="noticia5" role="set">
<bindParam name="var" value="5-2"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo5-1" role="stop"/>
<bind component="mVideo5-2" role="start" />
<bind component="mVideo5-3" role="stop" />
<bind component="mVideo5-4" role="stop" />
<bind component="mVideo5-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK5-3" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia5-3" role="onSelection"/>
<bind component="nodeNoticia5" interface="noticia5" role="set">
<bindParam name="var" value="5-3"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia5" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo5-1" role="stop"/>
<bind component="mVideo5-2" role="stop" />
<bind component="mVideo5-3" role="start" />
<bind component="mVideo5-4" role="stop" />
<bind component="mVideo5-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK5-4" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia5-4" role="onSelection"/>
<bind component="nodeNoticia5" interface="noticia5" role="set">
<bindParam name="var" value="5-4"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo5-1" role="stop"/>
<bind component="mVideo5-2" role="stop" />
<bind component="mVideo5-3" role="stop" />
<bind component="mVideo5-4" role="start" />
<bind component="mVideo5-5" role="stop" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
<link id="Selecao_OK5-5" xconnector="onSelection1SetNStopNStartNPauseN">
<bind component="mNoticia5-5" role="onSelection"/>
<bind component="nodeNoticia5" interface="noticia5" role="set">
<bindParam name="var" value="5-5"/>
</bind>
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mVideo5-1" role="stop"/>
<bind component="mVideo5-2" role="stop" />
<bind component="mVideo5-3" role="stop" />
<bind component="mVideo5-4" role="stop" />
<bind component="mVideo5-5" role="start" />
<bind component="mAssunto1" role="stop" />
<bind component="mAssunto2" role="stop" />
<bind component="mAssunto3" role="stop" />
<bind component="mAssunto4" role="stop" />
<bind component="mAssunto5" role="stop" />
</link>
</context> </switch> <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! ELOS
! define os elos que regem o sincronismo entre as m�dias
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <link id="Video1Start" xconnector="onBegin1StartN">
<bind component="video1" role="onBegin"/>
<bind component="mAssunto1" role="start"/>
<bind component="mAssunto2" role="start"/>
<bind component="mAssunto3" role="start"/>
<bind component="mAssunto4" role="start"/>
<bind component="mAssunto5" role="start"/>
</link> <link id="Selecao_OK1" xconnector="onSelection1SetNStartNPauseN">
<bind component="mAssunto1" role="onSelection"/>
<bind component="nodeAssunto" interface="assunto" role="set">
<bindParam name="var" value="1"/>
</bind>
<bind component="switchAssunto" role="start"/>
<bind component="mAssunto1" role="pause"/>
<bind component="mAssunto2" role="pause"/>
<bind component="mAssunto3" role="pause"/>
<bind component="mAssunto4" role="pause"/>
<bind component="mAssunto5" role="pause"/>
</link>
<link id="Selecao_OK2" xconnector="onSelection1SetNStartNPauseN">
<bind component="mAssunto2" role="onSelection"/>
<bind component="nodeAssunto" interface="assunto" role="set">
<bindParam name="var" value="2"/>
</bind>
<bind component="switchAssunto" role="start"/>
<bind component="mAssunto1" role="pause"/>
<bind component="mAssunto2" role="pause"/>
<bind component="mAssunto3" role="pause"/>
<bind component="mAssunto4" role="pause"/>
<bind component="mAssunto5" role="pause"/>
</link>
<link id="Selecao_OK3" xconnector="onSelection1SetNStartNPauseN">
<bind component="mAssunto3" role="onSelection"/>
<bind component="nodeAssunto" interface="assunto" role="set">
<bindParam name="var" value="3"/>
</bind>
<bind component="switchAssunto" role="start"/>
<bind component="mAssunto1" role="pause"/>
<bind component="mAssunto2" role="pause"/>
<bind component="mAssunto3" role="pause"/>
<bind component="mAssunto4" role="pause"/>
<bind component="mAssunto5" role="pause"/>
</link>
<link id="Selecao_OK4" xconnector="onSelection1SetNStartNPauseN">
<bind component="mAssunto4" role="onSelection"/>
<bind component="nodeAssunto" interface="assunto" role="set">
<bindParam name="var" value="4"/>
</bind>
<bind component="switchAssunto" role="start"/>
<bind component="mAssunto1" role="pause"/>
<bind component="mAssunto2" role="pause"/>
<bind component="mAssunto3" role="pause"/>
<bind component="mAssunto4" role="pause"/>
<bind component="mAssunto5" role="pause"/>
</link>
<link id="Selecao_OK5" xconnector="onSelection1SetNStartNPauseN">
<bind component="mAssunto5" role="onSelection"/>
<bind component="nodeAssunto" interface="assunto" role="set">
<bindParam name="var" value="5"/>
</bind>
<bind component="switchAssunto" role="start"/>
<bind component="mAssunto1" role="pause"/>
<bind component="mAssunto2" role="pause"/>
<bind component="mAssunto3" role="pause"/>
<bind component="mAssunto4" role="pause"/>
<bind component="mAssunto5" role="pause"/>
</link>
<link id="Reset" xconnector="onKeySelectionStartNSetStopN">
<linkParam name="keyCode" value="MENU" />
<bind role="onSelection" value="$keyCode" />
<bind component="switchAssunto" role="stop"/>
<bind component="nodeAssunto" role="stop"/>
<bind component="nodeNoticia" role="stop"/>
<bind component="Video1" role="stop"/>
<bind component="mAssunto1" role="start"/>
<bind component="mAssunto2" role="start"/>
<bind component="mAssunto3" role="start"/>
<bind component="mAssunto4" role="start"/>
<bind component="mAssunto5" role="start"/>
</link> </body> </ncl>