Yet another option.

1. Put ONCE the loader into a custom property

on mouseUp
  answer file "input your loader.gif"
  if it is empty then exit mouseUp
  put base64Encode(url("binfile:"&it)) into ii
  replace linefeed with empty in ii
  set the loader of this card to compress(ii)
end mouseUp
-- this has now at about the original size of the gif

2. Display the loader as follows.

on mouseUp
  set the htmltext of widget "browser" to \
        "<img src='data:image/gif;base64," & \
        decompress(the loader of this card) & "'>"
end mouseUp
-- optionally add width and height attributes


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to