<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Gente, estoy empezando a hacer una aplicacion y hace dos semanas que estoy parado con el mismo problema. </span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Lo que intento hacer es que al apretar la flecha izquierda se genere un evento de onEndAttribution para cambiar la fuente de un texto, es decir, quiero cambiar el texto viejo por uno nuevo.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Cuando quiero ejecutar el evento, mi dice lo siquiente....</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>   --------------------------| <span class="" style="background-color:rgb(255,255,204)">Ginga</span>.ar 2.0.0 () |--------------------------</div><div>
izquierda</div><div>[ncl30-presenter::FormatterPlayerAdapter] WARNING: property src not supported</div><div>[ncl30-presenter::FormatterScheduler] WARNING: could not prepare player</div><div><br></div><div>No se que puede ser. Intente correr mi aplicación con <span class="" style="background-color:rgb(255,255,204)">Ginga</span> 1.3, pero revento por todos lados. Leí que no soporta focusBorderTransparency, pero saque este atributos de los descriptores y lo mismo.</div>
<div><br></div><div><br></div><div>------------------------------ Código NCL -------------------------------------------------------------------------</div><div><br></div><div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;</div>
<div>&lt;!-- Generated by NCL Eclipse --&gt;</div><div>&lt;ncl id=&quot;test&quot; xmlns=&quot;<a href="http://www.ncl.org.br/NCL3.0/EDTVProfile" target="_blank">http://www.ncl.org.br/NCL3.0/EDTVProfile</a>&quot;&gt;</div>
<div><span style="white-space:pre-wrap">        </span>&lt;head&gt;</div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>&lt;transitionBase&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;transition id=&quot;transFade&quot; type=&quot;fade&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                        </span>&lt;transition id=&quot;transbarWipe&quot; type=&quot;barWipe&quot;/&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;/transitionBase&gt;</div><div><span style="white-space:pre-wrap">                </span></div>
<div><span style="white-space:pre-wrap">                </span>&lt;regionBase&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;region id=&quot;regionBackground&quot; width=&quot;100%&quot; height=&quot;100%&quot; zIndex=&quot;1&quot;&gt;</div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>&lt;region id=&quot;regionImagen1&quot; top=&quot;50&quot; left=&quot;50&quot; height=&quot;25%&quot; width=&quot;25%&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                        </span>&lt;region id=&quot;regionImagen2&quot; top=&quot;50&quot; left=&quot;270&quot; height=&quot;25%&quot; width=&quot;25%&quot;/&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;region id=&quot;regionImagen3&quot; top=&quot;50&quot; left=&quot;490&quot; height=&quot;25%&quot; width=&quot;25%&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>&lt;region id=&quot;regionTitulo&quot; top=&quot;230&quot; left=&quot;280&quot; right=&quot;230&quot;/&gt;</div><div>
<span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>&lt;region id=&quot;regionBGTexto&quot; top=&quot;350&quot; left=&quot;50&quot; bottom=&quot;25&quot; right=&quot;50&quot;&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;region id=&quot;regionTexto&quot; top=&quot;15&quot; left=&quot;25&quot; /&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;/region&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;region height=&quot;100%&quot; id=&quot;videoReg&quot; left=&quot;0%&quot; top=&quot;0%&quot; width=&quot;100%&quot; zIndex=&quot;1&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                        </span>&lt;region id=&quot;regionLua&quot; height=&quot;100%&quot; width=&quot;100%&quot; /&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;/region&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;/regionBase&gt;</div>
<div><br></div><div><span style="white-space:pre-wrap">                </span>&lt;descriptorBase&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;descriptor id=&quot;descBackground&quot; region=&quot;regionBackground&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>&lt;descriptor id=&quot;descImagen1&quot; region=&quot;regionImagen1&quot; </div><div><span style="white-space:pre-wrap">                                </span>focusIndex=&quot;1&quot; </div>
<div><span style="white-space:pre-wrap">                                </span>focusBorderWidth=&quot;5&quot; </div><div><span style="white-space:pre-wrap">                                </span>focusBorderColor=&quot;silver&quot; </div><div><span style="white-space:pre-wrap">                                </span>focusBorderTransparency=&quot;30%&quot; </div>
<div><span style="white-space:pre-wrap">                                </span>moveLeft=&quot;3&quot;</div><div><span style="white-space:pre-wrap">                                </span>moveRight=&quot;2&quot;/&gt;</div><div><span style="white-space:pre-wrap">                        </span></div><div>
<span style="white-space:pre-wrap">                        </span>&lt;descriptor id=&quot;descImagen2&quot; region=&quot;regionImagen2&quot;</div><div><span style="white-space:pre-wrap">                        </span>    focusIndex=&quot;2&quot; </div><div><span style="white-space:pre-wrap">                                </span>focusBorderWidth=&quot;5&quot; </div>
<div><span style="white-space:pre-wrap">                                </span>focusBorderColor=&quot;silver&quot; </div><div><span style="white-space:pre-wrap">                                </span>focusBorderTransparency=&quot;30%&quot; </div><div><span style="white-space:pre-wrap">                                </span>moveLeft=&quot;1&quot;</div>
<div><span style="white-space:pre-wrap">                                </span>moveRight=&quot;3&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                </span></div><div><span style="white-space:pre-wrap">                        </span>&lt;descriptor id=&quot;descImagen3&quot; region=&quot;regionImagen3&quot;</div>
<div><span style="white-space:pre-wrap">                        </span>    focusIndex=&quot;3&quot; </div><div><span style="white-space:pre-wrap">                                </span>focusBorderWidth=&quot;5&quot; </div><div><span style="white-space:pre-wrap">                                </span>focusBorderColor=&quot;silver&quot; </div>
<div><span style="white-space:pre-wrap">                                </span>focusBorderTransparency=&quot;30%&quot; </div><div><span style="white-space:pre-wrap">                                </span>moveLeft=&quot;2&quot;</div><div><span style="white-space:pre-wrap">                                </span>moveRight=&quot;1&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>&lt;descriptor id=&quot;descBGTexto&quot; region=&quot;regionBGTexto&quot;/&gt;</div><div><span style="white-space:pre-wrap">                        </span></div>
<div><span style="white-space:pre-wrap">                        </span>&lt;descriptor id=&quot;descTitulo&quot; region=&quot;regionTitulo&quot; </div><div><span style="white-space:pre-wrap">                        </span>transIn=&quot;transbarWipe&quot; transOut=&quot;transFade&quot; explicitDur=&quot;5s&quot;&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;descriptorParam name=&quot;fontColor&quot; value=&quot;silver&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;descriptorParam name=&quot;fontSize&quot; value=&quot;60&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                        </span>&lt;/descriptor&gt;</div><div><span style="white-space:pre-wrap">                                </span></div><div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>&lt;descriptor id=&quot;descTexto&quot; region=&quot;regionTexto&quot;&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;descriptorParam name=&quot;fontColor&quot; value=&quot;navy&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;descriptorParam name=&quot;fontSize&quot; value=&quot;30&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;descriptorParam name=&quot;fontFamily&quot; value=&quot;Tiresias&quot;/&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;/descriptor&gt;</div><div><span style="white-space:pre-wrap">                        </span></div>
<div><span style="white-space:pre-wrap">                        </span>&lt;descriptor id=&quot;videoDesc&quot; region=&quot;videoReg&quot;/&gt;</div><div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>&lt;descriptor id=&quot;descLua&quot; region=&quot;regionLua&quot; /&gt;</div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                </span>&lt;/descriptorBase&gt;</div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>&lt;connectorBase&gt;</div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>&lt;causalConnector id=&quot;onEndAttributionStopSetStart&quot;&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;connectorParam name=&quot;var&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;simpleCondition role=&quot;onEndAttribution&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;compoundAction operator=&quot;seq&quot;&gt;</div><div>
<span style="white-space:pre-wrap">                                        </span>&lt;simpleAction role=&quot;stop&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                        </span>&lt;simpleAction role=&quot;set&quot; value=&quot;$var&quot;/&gt;</div><div>
<span style="white-space:pre-wrap">                                        </span>&lt;simpleAction role=&quot;start&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;/compoundAction&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;/causalConnector&gt;</div>
<div><br></div><div><span style="white-space:pre-wrap">                </span>&lt;/connectorBase&gt;</div><div><br></div><div><span style="white-space:pre-wrap">        </span>&lt;/head&gt;</div><div><br></div><div><span style="white-space:pre-wrap">        </span>&lt;body&gt;</div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>&lt;port id=&quot;pLua&quot; component=&quot;lua&quot;/&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;port id=&quot;pBackground&quot; component=&quot;background&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;port id=&quot;pBGTexto&quot; component=&quot;bgTexto&quot;/&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;port id=&quot;pTexto1&quot; component=&quot;texto1&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>&lt;port id=&quot;pTitulo&quot; component=&quot;titulo&quot;/&gt;</div><div><span style="white-space:pre-wrap">                </span></div>
<div><span style="white-space:pre-wrap">                </span>&lt;port id=&quot;pImagen1&quot; component=&quot;imagen1&quot;/&gt; </div><div><span style="white-space:pre-wrap">                </span>&lt;port id=&quot;pImagen2&quot; component=&quot;imagen2&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;port id=&quot;pImagen3&quot; component=&quot;imagen3&quot;/&gt;</div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>&lt;media id=&quot;background&quot; src=&quot;../media/background2.jpg&quot; descriptor=&quot;descBackground&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;media id=&quot;titulo&quot; src=&quot;../media/fito.txt&quot; descriptor=&quot;descTitulo&quot;/&gt;</div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>&lt;media id=&quot;bgTexto&quot; src=&quot;../media/bgPaper.jpg&quot; descriptor=&quot;descBGTexto&quot; /&gt;</div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>&lt;media id=&quot;texto1&quot; src=&quot;../media/texto1.txt&quot; descriptor=&quot;descTexto&quot;&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;property name=&quot;src&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;/media&gt;</div><div><br></div><div><span style="white-space:pre-wrap">                </span>&lt;media id=&quot;imagen1&quot; src=&quot;../media/ortiga.jpg&quot; descriptor=&quot;descImagen1&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;media id=&quot;imagen2&quot; src=&quot;../media/melisa.jpg&quot; descriptor=&quot;descImagen2&quot;/&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;media id=&quot;imagen3&quot; src=&quot;../media/regaliz.jpg&quot; descriptor=&quot;descImagen3&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>&lt;media id=&quot;video&quot; src=&quot;../media/oficina.mp4&quot; descriptor=&quot;videoDesc&quot;&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;property name=&quot;bounds&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;/media&gt;</div><div><br></div><div><span style="white-space:pre-wrap">                </span>&lt;media id=&quot;lua&quot; descriptor=&quot;descLua&quot; src=&quot;test.lua&quot;&gt; </div>
<div><span style="white-space:pre-wrap">                         </span>&lt;property name=&quot;tecla&quot;/&gt;</div><div><span style="white-space:pre-wrap">                </span> <span style="white-space:pre-wrap">        </span>&lt;property name=&quot;srcNuevo&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span> &lt;/media&gt;</div><div><br></div><div><span style="white-space:pre-wrap">                </span>&lt;link xconnector=&quot;onKeySelectionSet&quot;&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;bind component=&quot;lua&quot; role=&quot;onSelection&quot;&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;bindParam name=&quot;keyCode&quot; value=&quot;CURSOR_LEFT&quot;/&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;/bind&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;bind component=&quot;lua&quot; role=&quot;set&quot; interface=&quot;tecla&quot; &gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;bindParam name=&quot;var&quot; value=&quot;left&quot; /&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;/bind&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;/link&gt;</div>
<div><br></div><div><span style="white-space:pre-wrap">        </span>    &lt;!-- links para las devoluciones de lua --&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;link xconnector=&quot;onEndAttributionStopSetStart&quot;&gt;</div>
<div><span style="white-space:pre-wrap">                        </span>&lt;bind role=&quot;onEndAttribution&quot; component=&quot;lua&quot; interface=&quot;srcNuevo&quot;/&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;bind role=&quot;stop&quot; component=&quot;texto1&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                        </span>&lt;bind role=&quot;getValue&quot; component=&quot;lua&quot; interface=&quot;srcNuevo&quot;/&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;linkParam name=&quot;var&quot; value=&quot;$getValue&quot;/&gt;<span style="white-space:pre-wrap">                        </span></div>
<div><span style="white-space:pre-wrap">                        </span>&lt;bind role=&quot;set&quot; component=&quot;texto1&quot; interface=&quot;src&quot;/&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;bind role=&quot;start&quot; component=&quot;texto1&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;/link&gt;<span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>    </div><div><span style="white-space:pre-wrap">        </span>&lt;/body&gt;</div>
<div>&lt;/ncl&gt;</div></div><div><br></div><div>---------------------------------Código Lua------------------------------------------------</div><div><br></div><div><div>function handler(evt)</div><div><br></div><div><span style="white-space:pre-wrap">        </span>local evento = {</div>
<div><span style="white-space:pre-wrap">                </span>class = &#39;ncl&#39;,</div><div><span style="white-space:pre-wrap">                </span>type = &#39;attribution&#39;,</div><div><span style="white-space:pre-wrap">                </span>name = &#39;srcNuevo&#39;,</div>
<div><span style="white-space:pre-wrap">                </span>value=&#39;../media/texto2.txt&#39;}</div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">        </span>if evt.value == &quot;left&quot; then</div>
<div><span style="white-space:pre-wrap">                </span>print(&quot;izquierda&quot;)</div><div><span style="white-space:pre-wrap">                </span>evento.action = &quot;start&quot;</div><div><span style="white-space:pre-wrap">                </span>event.post(evento)</div>
<div><span style="white-space:pre-wrap">                </span>evento.action = &quot;stop&quot;</div><div><span style="white-space:pre-wrap">                </span>event.post(evento)</div><div><span style="white-space:pre-wrap">        </span>end<span style="white-space:pre-wrap">        </span></div>
<div><span style="white-space:pre-wrap">        </span></div><div><br></div><div>end--end function</div><div><br></div><div>event.register(handler)</div></div></div></div>