Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
Fullscreen Crosshairs
Category : SWiSHMax | Level : Beginner | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

Heres a neat way to make those full screen crossahairs u somtimes see, sorry guys no pics:-).

Ok, any widht and height is fine, like 400 by 400. Make the backgropund black in this case. Grab the line tool, make a line going vertical and one going horizontil. Make the horizontil line line2 and vertical line line1, target both. Then go into the scene script. enter this code:

CODE

onEnterFrame() {
   //This simulates the vertical line going up and down, without the need to:-)
   line2._y = _root._ymouse;
   //This siulates the horizontil line going from side to side, without it.
   line1._x = _root._xmouse;
   /*this hides the mouse, if you dont belive this is accurate remove this line
   of code and see where the crosshairrs meet and where the cursor pointer is*/
   mouse.hide();
}


SWF Priview: HERE
(in this priview at the way sides the lines don't meet becasue it weasntr desgined for a fullscreen view, but they work;-)

Its an easy way to do something cool.


All rights reserved - swish-db.com