2. Create a button "PlayMovie" with the script:
Code: Select all
on mouseUp
set the filename of player 1 of this card to the desktop folder & "/myVideo.mp4"
set the currentTime of player 1 of this card to 0
set the layer of player 1 of this card to top
show player 1
start player 1
end mouseUp
put the filename of player 1 of this card
and it returns the correct file name
4. Type in message box
set the filename of player 1 of this card to the desktop folder & "/myVideo.mp4"
Now it loads!
5. Type in message box
start player 1
It plays!
Why won't it load from the button script? (Interestingly, after clicking the button, if I go to my Finder window and click once on my video file, it loads!)
LC 9.0.2, Mac 10.14.4
Thanks,
Sri