mobileControl message path
Posted: Thu Oct 18, 2012 11:13 pm
I am building a simple app to play different videos files based on the time of day (that information is held in a MySQL database). I need to have the app check for what movie it should play as soon as it finishes playing the current video. I have only one stack and one card, no controls other than the one created by mobileControlCreate I was trying to do this with:
but I don't know where to put this control structure. If it were a LiveCode control (like a text field) I would edit the control script and put it there, but since this control doesn't exist until created by mobileControlCreate, I can't do that. I thought that if the message wasn't trapped it would go on to the next object in the message path. If that's the case, shouldn't putting this control structure on the card do the trick? For some reason when I do that, it doesn't work.
Obviously I'm missing something fundamental about the way iOS control messages work, or something about the way messages work in general. Can someone enlighten me?
Code: Select all
on playerFinished
call setsource
end playerFinished
Obviously I'm missing something fundamental about the way iOS control messages work, or something about the way messages work in general. Can someone enlighten me?