Messing around with snippets of code wanting to get a video to play after touch event…but not having much luck…can anyone paste a quick code?
thanx
display.setStatusBar( display.HiddenStatusBar )
media.playVideo( “roll2.m4v”, true, onComplete )
local button = display.newImage( “button.png” )
button.x = display.contentWidth / 2
button.y = display.contentHeight - 50
function button:tap( event )
local r = math.random( 0, 255 )
local g = math.random( 0, 255 )
local b = math.random( 0, 255 )
textObject:setTextColor( r, g, b )
button:addEventListener( “tap”, button )
transition.to( textObject, { time=1000, y=textObject.y+100 } ) [import]uid: 30601 topic_id: 14530 reply_id: 314530[/import]