[Tutorial] Custom Mouse Pointer on UI - Flash
Hi, I'm going to teach you how to make a custom mouse pointer in your Flash Interface.
I should warn you, you can clearly do all this in source, without depending on this tutorial, just by using "
cursor.dds" in the
/Data/Menu folder.But I found this kind of technique also.
Example
Version Flash:
No matter, as long as you have support for AS3
Flash src:
You can use your files if you already have an experience, or use some already released in RZ, Yuri-BR Original Infestation 2014 or CodexPO.
1º Step: Open
FrontEnd.fla
2º Step: Go to
Scene 1
Follow the steps, Go to Main>Click in Scene 1 > Create 2 Layer and rename like image.
3º Step: Layer Cursor
Create wiuth name:
cursor_mc
4ª Step: In
asCursor Layer
Click Right Button > Actions
And put this code.
Code:
Mouse.hide();stage.addEventListener(MouseEvent.MOUSE_MOVE,follow);function follow(E:MouseEvent){ cursor_mc.x = mouseX; cursor_mc.y = mouseY;}
WarZ.sln
Search
Code:
int FrontendWarZ::Update()
{
In
r3dMouse::Show();
Change to
r3dMouse::Hide
();
Done!
Re: [Tutorial] Custom Mouse Pointer on UI - Flash
Re: [Tutorial] Custom Mouse Pointer on UI - Flash
A nice different tutorial good job.
Re: [Tutorial] Custom Mouse Pointer on UI - Flash
#Update
Hide mouse from client
WarZ.sln
Search
Code:
int FrontendWarZ::Update()
{
In
r3dMouse::Show();
Change to
r3dMouse::Hide()
Re: [Tutorial] Custom Mouse Pointer on UI - Flash
Quote:
Scene 1, Layer 'as Cursor', Frame 1, Row 1, Column 101 1120: Access to cursor_mc not defined property.
I did not understand
3º Step: Layer Cursor
Create wiuth name:
cursor_mc