am7
02-08-2010, 05:55 PM
Hi, I have searched this forum and the max help - and I can't seem to figure out how to fallback to the specified label in a button if an image doesn't exist.
For example:
button foo "label" images:#("dcybtns.bmp", undefined, 1, 1, 1, 1, 1)
If dcybtns.bmp doesn't exist I would like to avoid the compile error and just use the text label instead.
I could check if the file exist before in a if/else clause, but I was thinking there had to be an easier way? I couldn't get try/catch to work either..
For example:
button foo "label" images:#("dcybtns.bmp", undefined, 1, 1, 1, 1, 1)
If dcybtns.bmp doesn't exist I would like to avoid the compile error and just use the text label instead.
I could check if the file exist before in a if/else clause, but I was thinking there had to be an easier way? I couldn't get try/catch to work either..
