Just wondering if anyone else has encountered this problem of if I am doing something stupid.
I can’t get native video objects to respond to touch events.
In my code below, the xxx fucntion is not called when the video object is clicked/touched.
(Note however, if I uncomment the Runtime event listener, then function yyy is called, even when the video is clicked).
[code]
function xxx(event)
print(“In xxx().”);
return true;
end – function
function yyy(event)
print(“In yyy().”);
end – function
local teddyVid = native.newVideo(0, 0, 1050, 576);
teddyVid:load(“saoirse_short_from_qtime_iPad.m4v”);
teddyVid:addEventListener(“touch”, xxx);
teddyVid:play();
Runtime:addEventListener(“touch”, yyy);
[/code] [import]uid: 133169 topic_id: 32412 reply_id: 332412[/import]