[Tutorial] Custom Mouse Pointer on UI - Flash

Results 1 to 5 of 5
  1. #1
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    happy [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

    Spoiler:




    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
    Spoiler:




    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!
    Last edited by LukasCCB; 12-02-17 at 07:49 PM.


  2. #2
    Enthusiast QcBlastar is offline
    MemberRank
    Apr 2013 Join Date
    discord : #7279Location
    40Posts

    Re: [Tutorial] Custom Mouse Pointer on UI - Flash

    nice bro

  3. #3
    Harro Syxn is offline
    MemberRank
    Mar 2013 Join Date
    767Posts

    Re: [Tutorial] Custom Mouse Pointer on UI - Flash

    A nice different tutorial good job.

  4. #4
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    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()

  5. #5
    Valued Member asd4129 is offline
    MemberRank
    Dec 2012 Join Date
    Loose, Germany,Location
    146Posts

    Re: [Tutorial] Custom Mouse Pointer on UI - Flash

    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



Advertisement