Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 04-18-07   #1 (permalink)
PC Gamer
 
Boris4ka's Avatar
 
intel nvidia

Join Date: Mar 2006
Location: San Francisco, CA
Posts: 2,871
Blog Entries: 2

Rep: 195 Boris4ka is acknowledged by manyBoris4ka is acknowledged by many
Unique Rep: 157
Trader Rating: 17
Default Flash - how to make something follow the cursor??

I need to make a hand follow the cursor. Not trail behind it, but stay in one place and just point towards the cursor. I did this before but now completely forgot. And I can't find anything that works online. I need the simplest solution.

If it makes a difference, the mouse is hidden and there is a crosshair instead.

This is for a game I'm making, thanks.

System: über pwnage
CPU
E6600 3.0GHz 1.4v
Motherboard
Gigabyte GA-P35-S3L
Memory
2x2GB G.Skill 6400 835MHz
Graphics Card
EVGA 8800GTS 320MB
Hard Drive
320GB .10 + 80GB .7
Sound Card
Onboard HD Audio
Power Supply
Rosewill Performance 550W
Case
Centurion 5 w/ side window
CPU cooling
Golden Orb 2 - lapped
GPU cooling
Stock fan
OS
Vista Ultimate x64
Monitor
X191W 19"w + Sony 15" LCDs
Boris4ka is offline Boris4ka's Gallery   Reply With Quote
Old 04-18-07   #2 (permalink)
Apple Doesn't Love You
 
rabidgnome229's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pittsburgh
Posts: 4,975
Blog Entries: 1

Rep: 564 rabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famous
Unique Rep: 338
FAQs Submitted: 6
Trader Rating: 5
Default

I don't use flash, but there should be a method to return the x/y position of the cursor. Just make an object follow those coords
__________________
BIG BROTHER
I put on my robe and wizard hat...

IS WATCHING

System: It goes to eleven
CPU
E6300
Motherboard
DS3
Memory
2GB XMS2 DDR2-800
Graphics Card
EVGA 8600GTS
Hard Drive
1.294 TB
Sound Card
Audigy 2 ZS
Power Supply
Corsair 520HX
Case
Lian-Li v1000B Plus
CPU cooling
TTBT
GPU cooling
Thermalright V2
OS
Arch Linux/XP
Monitor
Samsung 226bw
rabidgnome229 is offline Overclocked Account   Reply With Quote
Old 04-18-07   #3 (permalink)
PC Gamer
 
Boris4ka's Avatar
 
intel nvidia

Join Date: Mar 2006
Location: San Francisco, CA
Posts: 2,871
Blog Entries: 2

Rep: 195 Boris4ka is acknowledged by manyBoris4ka is acknowledged by many
Unique Rep: 157
Trader Rating: 17
Default

You see, I heavily edit code, I can't write it from scratch yet, so I'd need an example and then I'd rewrite it to my needs.

System: über pwnage
CPU
E6600 3.0GHz 1.4v
Motherboard
Gigabyte GA-P35-S3L
Memory
2x2GB G.Skill 6400 835MHz
Graphics Card
EVGA 8800GTS 320MB
Hard Drive
320GB .10 + 80GB .7
Sound Card
Onboard HD Audio
Power Supply
Rosewill Performance 550W
Case
Centurion 5 w/ side window
CPU cooling
Golden Orb 2 - lapped
GPU cooling
Stock fan
OS
Vista Ultimate x64
Monitor
X191W 19"w + Sony 15" LCDs
Boris4ka is offline Boris4ka's Gallery   Reply With Quote
Old 04-18-07   #4 (permalink)
Apple Doesn't Love You
 
rabidgnome229's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pittsburgh
Posts: 4,975
Blog Entries: 1

Rep: 564 rabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famous
Unique Rep: 338
FAQs Submitted: 6
Trader Rating: 5
Default

mouse position flash
__________________
BIG BROTHER
I put on my robe and wizard hat...

IS WATCHING

System: It goes to eleven
CPU
E6300
Motherboard
DS3
Memory
2GB XMS2 DDR2-800
Graphics Card
EVGA 8600GTS
Hard Drive
1.294 TB
Sound Card
Audigy 2 ZS
Power Supply
Corsair 520HX
Case
Lian-Li v1000B Plus
CPU cooling
TTBT
GPU cooling
Thermalright V2
OS
Arch Linux/XP
Monitor
Samsung 226bw
rabidgnome229 is offline Overclocked Account   Reply With Quote
Old 04-18-07   #5 (permalink)
Overclocker
 
B-80's Avatar
 
intel nvidia

Join Date: Oct 2006
Location: Levittown,PA / Penn State
Posts: 1,779

Rep: 77 B-80 is acknowledged by some
Unique Rep: 68
Trader Rating: 0
Default

_x = _xmouse
_y = _ymouse

it's been a while, but i believe that still works
__________________

Aumotocnic"An unfortunate member of the overclock.net insomnia club"

-- / T_he Rad / iohead F_a/n Club_--

Crucial Ballistix Club

System: The Mediocre Guy
CPU
E7200 @ 3.3ghz
Motherboard
Gigabyte P45 DS3
Memory
4GB Corsair XMS2
Graphics Card
EVGA Nvidia Geforce 8800 GTS 320 MB
Hard Drive
250 gb hitachi Deskstar + 120gb Seagate
Power Supply
PC Power & Cooling Silencer 750 Quad
Case
Aspire X-Cruiser Black
CPU cooling
Zalman 9700
GPU cooling
Stock
OS
Windows xp
Monitor
ViewSonic Optiquest 20.1 inch 1650x1058
B-80 is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 01:35 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.27133 seconds with 8 queries