Flash Tutorial - Custom Cursor

Discussion in 'GR Classic Archive' started by HydrogeN, Nov 12, 2004.

  1. .killjoy

    .killjoy Well-Known Member

    Age:
    36
    Posts:
    1,565
    Likes Received:
    0
    Joined:
    Jul 10, 2004
    umm yes it is but it wont look good also u can mak eit so it follows the mouse u can make the cursor
     
  2. ..Morbid..

    ..Morbid.. Well-Known Member

    Posts:
    66
    Likes Received:
    0
    Joined:
    Nov 9, 2004
    Anyone know how to do it? If so make another thred and tut it plz. :blink:
     
  3. .killjoy

    .killjoy Well-Known Member

    Age:
    36
    Posts:
    1,565
    Likes Received:
    0
    Joined:
    Jul 10, 2004
    how to do what make it move and u cant man u need this program cant u read other post also dont go off the thread topic ok sry for my spam
     
  4. HydrogeN

    HydrogeN Well-Known Member

    Posts:
    2,532
    Likes Received:
    0
    Joined:
    Sep 7, 2004
    PS7 doesn't have the capabilities to make a user input / dynamic video like Flash can. If you want the spinning cursor however, I can publish that in .gif format for you (post here or PM me if you do).
     
  5. .killjoy

    .killjoy Well-Known Member

    Age:
    36
    Posts:
    1,565
    Likes Received:
    0
    Joined:
    Jul 10, 2004
    does it matter is the text is dtnamic, static or input text


    i turned the text layer into a button the i put click on the text layer "symbol" i put the code in then when i hit ctrl-enter is says ERROR! in little window


    i cant even right click on the button or symbol layer also what does editing mode look like paste a screen shot of it
     
  6. CommandoSGT

    CommandoSGT Well-Known Member

    Posts:
    492
    Likes Received:
    0
    Joined:
    Oct 25, 2004
    Your .FLA works perfectly for me, I just want to try it out for myself.. Making it on my own, that or I will neverr learn!
     
  7. .killjoy

    .killjoy Well-Known Member

    Age:
    36
    Posts:
    1,565
    Likes Received:
    0
    Joined:
    Jul 10, 2004
    also that is the right code to link and symbol u might wanna fix that cheers
     
  8. HydrogeN

    HydrogeN Well-Known Member

    Posts:
    2,532
    Likes Received:
    0
    Joined:
    Sep 7, 2004
    1) What flash studio are you using? I've written this for Flash Studio MX.
    2) When you type the code in, use EXPERT mode.
    3) The code to use for making a link button:

    on(release)
    {
    getURL("http://siteurl.com","_blank")
    }

    In my previous post I have missed out one of the "s lol. Thats why it wasn't working (will fix that now).

    4) To edit a symbol (You have to have converted an item to a symbol before you can modify it in EDIT MODE. If you want to edit a symbol, right click it and choose EDIT or goto the toolbar at the top and choose EDIT --> EDIT SYMBOL.


    If it would be easier for you, to use my example FLA in your project, simply copy the TC symbol (from my example FLA) and paste it in your document. then just click once on the symbol [so the actions window reads 'actions for frame one of... + the layer name'] and paste in the following code:

    Mouse.hide();
    TC.onEnterFrame = function() {
    var xMouse = _root._xmouse;
    var yMouse = _root._ymouse;
    if(Math.abs(xMouse - this._x) < 1) {
    this._x = xMouse;
    this._y = yMouse;
    } else {
    this._x -= (this._x-xMouse) / 6;
    this._y -= (this._y-yMouse) / 6;
    }
    }


    And then change the FPS to something above 40 or so.
     
  9. .killjoy

    .killjoy Well-Known Member

    Age:
    36
    Posts:
    1,565
    Likes Received:
    0
    Joined:
    Jul 10, 2004
    ok i go ti all down im finshing my first flash sig. also can u make a menu tut, like in ur website the archieve thing i love it man ty alot for helping out great tuts.



    also man ur follow code desont work for me im useing flash mx 7 and its not working i got code from diff. website and it worked
     
  10. dirtychinchilla

    dirtychinchilla Well-Known Member

    Age:
    37
    Posts:
    69
    Likes Received:
    0
    Joined:
    Nov 4, 2004
    Location:
    UK
    really nice tut. im a noob at flash though and i dont know how to put it in my sig lol
     
  11. xXxHellStormxXx

    xXxHellStormxXx Well-Known Member

    Posts:
    131
    Likes Received:
    0
    Joined:
    Oct 16, 2004
    Location:
    Washington State
    ok I can get it to spin and everything but I cant get it to actually turn into the cursor I added the code as well though.
     
  12. Joe

    Joe Well-Known Member

    Age:
    36
    Posts:
    1,837
    Likes Received:
    0
    Joined:
    Oct 9, 2004
    Location:
    Fort Wayne
    excelent man but one problem... my cursor isnt lined up with my real cursor... I can move my real one at the top above the document and i still see the cursor i made in the thing moving... u know how to fix this?
     
  13. Famasx

    Famasx Well-Known Member

    Posts:
    224
    Likes Received:
    0
    Joined:
    Sep 22, 2004
    how do u make it to a signature like you have well not size wize but how do u save it and host it
     
  14. -Aus10kid-

    -Aus10kid- Well-Known Member

    Age:
    35
    Posts:
    202
    Likes Received:
    0
    Joined:
    Nov 27, 2004
    I can do all of it until i add the code. I add it in the right place, the same as your FLA example. It says Actions - Frame and i'm in scene 1. I compared it to your FLA and they are both the same> But when i preview it, it doesn't follow my mouse. My mouse hides when i go over it, but it doesn't follow. Please help me!

    EDIT: I got this working, i didn't put in the instance name... lol...
     
  15. HydrogeN

    HydrogeN Well-Known Member

    Posts:
    2,532
    Likes Received:
    0
    Joined:
    Sep 7, 2004
    Sorry I didn't get back to you guys,

    Basically in answer to your questions:

    Its not meant to be exactly in line with your cursor. This tutorial sets up the cursor so that its slightly lagged (giving a smooth transition effect). If you want it to snap to the cursor, remove all code which relates to creating the lag.

    To save and host it, click EXPORT MOVIE in Flash and it will save it as a .swf file. Upload the file to your hosting and its instantly accessible! To use it on these forums add the following to your sig:

    Code:
    [FLASH=WIDTH,HEIGHT]URL_OF_MOVIE[/FLASH]
     

Share This Page