d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Window Mouse Capture > Adobe Flash Player
Add Reply New Topic New Poll
Member
Posts: 5,020
Joined: Oct 7 2006
Gold: 244.00
Jun 19 2012 02:52pm
im looking for a solution to caupture my mouse in my flashplayer window
is this possible?!

i dont know if this is necessary, i play Realm of the Mad God as i open the swf from the website

Code
http://www.realmofthemadgod.com/AGCLoader1340138053.swf


with the flashplayer
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 21 2012 02:21am
you need two functions (of the OS), a.e. for getting cursorposition and setting cursorposition

pseudocode for the right side of the flashgame:
if (mousepointer.xaxis > rightsideofflashgame.xaxis)
{mousepointer.xaxis = rightsideofflashgame.xaxis}

do that logic for all 4 edges and you are done

maybe it's easier to find a solution to make the game fullscreen
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll