home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gdragfileicon, gno
- if objectp(gdragfileicon) then
- destroy(gdragfileicon)
- set gdragfileicon to 0
- end if
- set sp to clickOn()
- set bcast to the number of cast the castNum of sprite sp
- set cname to char 1 to 5 of the name of cast bcast
- set gno to getno(cname)
- set gdragfileicon to birth(script "dragableObject", sp, bcast)
- drag(gdragfileicon)
- end
-
- on mouseUp
- global glfilelister
- if the doubleClick then
- set sp to clickOn()
- set thelabel to whichbrowser(gfilelister, sp)
- set theno to whatpictno(gfilelister, sp)
- if thelabel <> EMPTY then
- loadpictureforbrowserabs(thelabel, theno)
- finishviewer()
- go(thelabel)
- end if
- end if
- end
-