home *** CD-ROM | disk | FTP | other *** search
- global gDragItem, gNo
-
- on mouseDown
-
- if (objectp(gDragItem)) then
- destroy( gDragItem )
- set gDragItem = 0
- end if
-
- set sp = clickOn()
- set bcast = the number of cast the castNum of sprite sp
- set cName = char 1 to 5 of the name of cast bcast
-
- set gNo = GetNo( cName )
- if (cName <> "dummy") then
- set gDragItem = birth( script"dragableObject", sp, bcast )
- drag( gDragItem )
-
- end if
- put cName && gNo && gDragItem
- end
-
- on mouseUp
- if (doubleClick()) then
- set sp = clickOn()
- set bcast = the number of cast the castNum of sprite sp
- set cName = char 1 to 5 of the name of cast bcast
-
- if (cName <> "dummy") then
- finishViewer
-
- set gNo = GetNo( cName )
- set kate = GetKategorie( gNo )
- LoadPictureForBrowserAbs( kate, gNo )
- go to kate
- end if
- end if
- end