Hello!! Uf!!! Finally I"m about to finish this "bloody" project which has caused me nothing but blood, sweat and tears. (but also I've learned a lot!)
I'm using this script attached to a button to load external images into the cast :
on mouseUp me
set MUIobject = new(xtra "MUI")
result = fileOpen(MUIObject,"Xtras")
MUIObject = 0
importFileInto member(5), result
sprite(115).member = member (5)
member(5).name = "image1"
sprite(115).height = 252
sprite(115).width = 252
end
I want to load only images, I would like to add some lines(I hope just a few) in order to reduce the amount of "allowed" kind of files. Basically I would like to prevent that a wrong format might be loaded, for example when somebody tries to load a WAV or AIFF(among others) file instead of a JPG by mistake(Yeah, I know! who da' hell would do that mistake, but it does happen!) the projector return a message like "sorry you are trying to load an incorrect file format, please try with another one" or something like that.
Links, suggestion, opinions, comments, and mostly help will be appreciated.
Thanks in advance.
I'm using this script attached to a button to load external images into the cast :
on mouseUp me
set MUIobject = new(xtra "MUI")
result = fileOpen(MUIObject,"Xtras")
MUIObject = 0
importFileInto member(5), result
sprite(115).member = member (5)
member(5).name = "image1"
sprite(115).height = 252
sprite(115).width = 252
end
I want to load only images, I would like to add some lines(I hope just a few) in order to reduce the amount of "allowed" kind of files. Basically I would like to prevent that a wrong format might be loaded, for example when somebody tries to load a WAV or AIFF(among others) file instead of a JPG by mistake(Yeah, I know! who da' hell would do that mistake, but it does happen!) the projector return a message like "sorry you are trying to load an incorrect file format, please try with another one" or something like that.
Links, suggestion, opinions, comments, and mostly help will be appreciated.
Thanks in advance.