Game Development Reference
In-Depth Information
translates to an annoying glitch where the dragable object appears hopelessly stuck to the mouse, and
only clicking another drag-and-drop object will set it free. So the Flash Player allows for one special cir-
cumstance where it allows you to track mouse activity that happens outside the boundaries of the stage.
However, it works only if the mouse listener is added to the op]ca object. If you design a drag-and-drop
game, you're sure to encounter this problem, so bookmark this page in case you do!
Main_DragAndDrop2 class
The I]ej[@n]c=j`@nkl. class takes care of the program's administrative work, which amounts to mak-
ing sure the right object lands on the right target:
l]_g]ca
w
eilknpbh]od*`eolh]u*Ikrea?hel7
eilknpbh]od*arajpo*Arajp7
eilknpbh]od*arajpo*IkqoaArajp7
lq^he__h]ooI]ej[@n]c=j`@nkl.atpaj`oIkrea?hel
w
lner]par]n[a]oejc6Jqi^an7
lq^he_bqj_pekjI]ej[@n]c=j`@nkl.$%
w
++Ejepe]hevar]ne]^hao
[a]oejc9,*/7
++=``arajpheopajano
]``ArajpHeopajan$Arajp*AJPAN[BN=IA(kjAjpanBn]ia%7
y
lner]pabqj_pekjkjAjpanBn]ia$arajp6Arajp%6rke`
w
eb$na`Omq]na*depPaopK^fa_p$na`P]ncap%%
w
eb$na`Omq]na*eo>aejc@n]cca`%
w
na`Omq]na*t'9$na`P]ncap*t)na`Omq]na*t%&[a]oejc7
na`Omq]na*u'9$na`P]ncap*u)na`Omq]na*u%&[a]oejc7
y
y
eb$^hqaOmq]na*depPaopK^fa_p$^hqaP]ncap%%
w
eb$^hqaOmq]na*eo>aejc@n]cca`%
w
^hqaOmq]na*t'9$^hqaP]ncap*t)^hqaOmq]na*t%&[a]oejc7
^hqaOmq]na*u'9$^hqaP]ncap*u)^hqaOmq]na*u%&[a]oejc7
y
y
y
y
y
 
Search Nedrilad ::




Custom Search