javascript - CAPH API widgets in Samsung TV SDK -


i have made simple caph project consists of page has 3x3 containing images. want able when focus on image. far have read documentation unable understand.

what want reduce opacity of image when focused.

this code needs edited:

page1_page.prototype.image_3fzrc_onfocus = function() {     //should reduce image opacity don't know how reference image } 

thank you.

ps: used visual editor

edit: did nothing happens.

page1_page.prototype.image_3fzrc_onfocus = function() {     imgspring= caph.wui.widget._component.getwidgetbyid("image_3fzrc");     imgspring.setopacity(0.5); }; 


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -