global gVideoPlaying
on playVideoButton
gVideoNum = gMyLine -- set the video to be played to the currently
highlighted track
if videos = [] then exit -- abort if no tracks in playlist
if gVideos=0 then -- if nothing is currently playing...
window().new("Video Player")
window("Video Player").filename = "Viewing window.dir"
gVideoPlaying = member("VideoList").text.line[gVideoNum] -- set
gVideoPlaying to video name from VideoList
window("Video Player").moveToFront()
window("Video Player").open()
end
------------------------------------------------------------------------------------
The code for the MIAW is:
global gVideoPlaying
on openWindow()
importFileInto member 5, gVideoPlaying -- the file is set to member
5, if the name of the file is hard coded here the video will play
sprite(1).membernum = 5 -- sprite 1 is replaced with the video and
then played
end
------------------------------------------------------------------------------------
Any help would be great. Am sure its just a silly mistake somewhere.
Thanks.