prev | index | next

MX-cursor example
6
60
443 bytes
634 bytes
2007-09-07 15:34:18
2007-09-07 15:35:53
oldes (oliva.david@seznam.cz)


Simplest cursor for SWF version 6 and later

(mx-cursor.rswf)

background 152.174.149
shp_cursor: Shape [
    Bounds -20x-20 20x20
    edge [width 1]
    line -20x0 20x0
    line 0x-20 0x20
    Fill color 255.200.100
    box -5x-5 5x5
]
spr_cursor: Sprite shp_cursor
obj_cursor: Place  spr_cursor
DoAction [
    Mouse.hide()
    obj_cursor.onMouseMove: func[][
        this._x: _root._xmouse
        this._y: _root._ymouse
    ]
    Mouse.addListener(obj_cursor)
    stop
]
showFrame
end