A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: How do they do that?

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Location
    In a place I call Home
    Posts
    16

    How do they do that?

    I am wondering how companies like macromedia and fantasy-interactive and others make those nifty little buttons that when i scroll off they go back to the waiting position but if i went right back on to it a split second later before it finishs it will go back to click position from that frame its on and not start from the beginning like i usually see. Its like there some kind of new thing in the membrane of the outer cropus of the galactic ooze of the century(sorry kinda bored and tired).???.?.?.?.?

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    135
    Clarify your question just a bit and I'll be glad to help you out, or give me a specific example.

  3. #3
    Senior Member bs_grewal's Avatar
    Join Date
    Dec 2002
    Posts
    548
    can u post url of that sites??
    Thanks
    Baljit Singh Grewal
    Click here to email me
    Messengers: baljit@bsgrewal.com

  4. #4
    Junior Member
    Join Date
    Dec 2004
    Location
    In a place I call Home
    Posts
    16
    sure here is one from fantasy-interactive.comfantasy-interactive.com an then you can see that all of there buttons do that. It might be hard to notice but it happens and it looks nice and natural

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    135
    it will go back to click position from that frame its on and not start from the beginning like i usually see.
    Could you please rephrase or better define this part of your question. I'm still not able to tell exactly what you are asking about.

    Also tell me an exact button. I think I'm looking at too many at once trying to figure out what is in common with all of them, and I am not looking for what you are referring to.

  6. #6
    Senior Member bs_grewal's Avatar
    Join Date
    Dec 2002
    Posts
    548
    i was also trying to find the effect but couldn't
    Thanks
    Baljit Singh Grewal
    Click here to email me
    Messengers: baljit@bsgrewal.com

  7. #7
    Junior Member
    Join Date
    Dec 2004
    Location
    In a place I call Home
    Posts
    16
    ok well say when i make a standard button in flash and i have an animation going from the rest state to the over state like i want it to look like its a light coming on slowly(warming up) and then the same just backwards so when i take the mouse off of it. See when I first put the mouse on it, it plays the animation but say if i took off the mouse half way through it wouldn't play from the same frame just going back to the rest state. It would just start as if i had waited till the over state had finished and then took it off. If you guys still dont get it I'll try and find a easier way to say this. Thanks for being patient though

  8. #8
    Official FK nice guy and MOD 3PRIMATES's Avatar
    Join Date
    Apr 2002
    Location
    Portland Oregon
    Posts
    1,645
    Hi,
    its just a movie clip.

    User mouses over, target name/timeline that has mouse over animation
    user mouses off, taget name/timeline that has mouse off animation

    on(rollOver)
    {
    mc1.gotoAndPlay('over');
    }

    on(rollOut)
    {
    mc1.gotoAndPlay('out');
    }
    on(releaseOutside)
    {
    mc1.gotoAndPlay('out');
    }

  9. #9
    Junior Member
    Join Date
    Dec 2004
    Location
    In a place I call Home
    Posts
    16
    See thats what im saying whats wrong. Say when its playing the over animation if i took the mouse off it would just jump to the going out animation an it looks glitchy. I want it to not do that and look smooth, clean and sharp. Any ideas?

  10. #10
    ·»¤«· >flashl!ght<'s Avatar
    Join Date
    Jun 2003
    Posts
    746
    There are different ways to do it. Here's a simple forward/reverse method:
    code:

    stop();

    this.onRollOver = function() {
    this.onEnterFrame = function(){
    nextFrame();
    if(_currentframe==_totalframes){ delete this.onEnterFrame };
    }
    }

    this.onRollOut = this.onReleaseOutside = function() {
    this.onEnterFrame = function(){
    prevFrame();
    if(_currentframe==0){ delete this.onEnterFrame };
    }
    }



    put that on the first frame of a movieclip
    >flashl!ght<
    All the normal names were taken.
    Ron Paul was right.

  11. #11
    Junior Member
    Join Date
    Dec 2004
    Location
    In a place I call Home
    Posts
    16
    thanks man that works great i am starting to use the code all over my site

    oh how do you do the whole script fromating thing you guys do?

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