dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Mouse Trail Effect.

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    233
    Anyone knows how to do it..???I heared u could use some sort of java code by hey there it goes again i feel like a newbie..Which i am.. coudl someone help me with this am look for like a nice effect..

    ~TnT~

  2. #2
    Swiftdev Founder 98svt's Avatar
    Join Date
    May 2001
    Location
    Royal Oak, Michigan
    Posts
    2,139
    I have a DHTML script that has "crosshairs" for the follow mouse effect, let me know if you want it.

    -Mike

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    233
    Hey i gotta learn some day!!Sure send it. Let me take a sneak peek.

    ~TnT~

    {nuttydreadlockz@aol.com}

  4. #4
    Swiftdev Founder 98svt's Avatar
    Join Date
    May 2001
    Location
    Royal Oak, Michigan
    Posts
    2,139
    The following script goes itno the head section

    ------------------------------------------------
    <style>
    <!--
    #leftright, #topdown{
    position:absolute;
    left:0;
    top:0;
    width:1px;
    height:1px;
    layer-background-color:black;
    background-color:black;
    z-index:100;
    font-size:1px;
    }
    -->
    </style>
    ------------------------------------------------

    The next portion goes into the body

    ------------------------------------------------

    <div id="leftright" style="width:expression(document.body.clientWidth-2)"></div>
    <div id="topdown" style="height:expression(document.body.clientHeigh t-2)"></div>

    <script language="JavaScript1.2">
    <!--

    /*
    Document crosshair Script-
    By Dynamic Drive (www.dynamicdrive.com)
    For full source code, installation instructions,
    100's more free DHTML scripts, and Terms Of
    Use, visit dynamicdrive.com
    */

    if (document.all&&!window.print){
    leftright.style.width=document.body.clientWidth-2
    topdown.style.height=document.body.clientHeight-2
    }
    else if (document.layers){
    document.leftright.clip.width=window.innerWidth
    document.leftright.clip.height=1
    document.topdown.clip.width=1
    document.topdown.clip.height=window.innerHeight
    }


    function followmouse1(){
    //move cross engine for IE 4+
    leftright.style.pixelTop=document.body.scrollTop+e vent.clientY+1
    topdown.style.pixelTop=document.body.scrollTop
    if (event.clientX<document.body.clientWidth-2)
    topdown.style.pixelLeft=document.body.scrollLeft+e vent.clientX+1
    else
    topdown.style.pixelLeft=document.body.clientWidth-2
    }

    function followmouse2(e){
    //move cross engine for NS 4+
    document.leftright.top=e.y+1
    document.topdown.top=pageYOffset
    document.topdown.left=e.x+1
    }

    if (document.all)
    document.onmousemove=followmouse1
    else if (document.layers){
    window.captureEvents(Event.MOUSEMOVE)
    window.onmousemove=followmouse2
    }

    function regenerate(){
    window.location.reload()
    }
    function regenerate2(){
    setTimeout("window.onresize=regenerate",400)
    }
    if ((document.all&&!window.print)||document.layers)
    //if the user is using IE 4 or NS 4, both NOT IE 5+
    window.onload=regenerate2

    //-->
    </script>

    ------------------------------------------------


    -Mike

  5. #5
    Senior Member
    Join Date
    Apr 2001
    Posts
    233
    Hey i got it's thanks but then again a dummy should have told u i wanted it in the swf file or so on soo it could show on teh flash effect here take a look at my footer page and u will see what i mean it's outside the flash effect.
    http://www.geocities.com/bountykillerz2004/swffile.html

    ~TnT~

  6. #6
    Swiftdev Founder 98svt's Avatar
    Join Date
    May 2001
    Location
    Royal Oak, Michigan
    Posts
    2,139
    You can't add the mouse trailing effect in swish. In flash you can. Never did it. I'll give it a shot and let you know.

    -Mike

  7. #7
    Senior Member
    Join Date
    Aug 2000
    Posts
    354

    Try "Load Movie"...

    and load a Flash made mouse trailer(the .swf), level > 0 like http://www.sassnbrass.com/index2.htm
    SWiSH 1.52 except the trailer and some Mix-fx in there
    [Edited by james donovan on 08-16-2001 at 08:42 PM]

  8. #8
    Senior Member
    Join Date
    May 2001
    Posts
    724
    Mouse trails in Swish can't be done.

    [swf width="300" height="40" background="#444444"]http://www.bruski.addr.com/flash/swish2_samples/mouse_trails.swf[/swf]

    Less than 2kb.

    http://www.bruski.addr.com/flash/swish2_samples/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center