A Flash Developer Resource Site

Results 1 to 13 of 13

Thread: Fading Thumbnails

  1. #1
    Member
    Join Date
    May 2006
    Posts
    56

    Fading Thumbnails

    My website is almost complete, but I'm having a couple of problems with the thumbnails.. currently the symbols are working as button with the up state a 100% jpeg image thumb and the over and down as 30% opacity jpegs.

    I'm finding it impossible to align them exactly on the stage and when you move the mouse over some of the thumnails wobble or move.

    Is there a better way to get the effect I want?

    http://www.lovethevoid.com

  2. #2

  3. #3
    Senior Member
    Join Date
    Oct 2007
    Posts
    146
    I was only working in the portfolio section, but have to say- I don't see it! What's the problem, Sister?

  4. #4
    Senior Member
    Join Date
    Oct 2007
    Posts
    146
    No, don't look at that! Use script. Anyway, explain a bit further, and I can help ya (with script).

  5. #5
    flashmo.com
    Join Date
    Sep 2003
    Posts
    115
    I showed you a sample as I thought beautyindarknes is talking about "links" page of lovethevoid.com regarding thumbnails.

  6. #6
    Member
    Join Date
    May 2006
    Posts
    56
    Quote Originally Posted by mgminthu
    Check this thumbnail gallery if it meets your need.
    Yes thumbnails like that.. how did you do them? I dnt need the loading bit, but what did you do to get it to fade when you move the mouse over?

  7. #7
    Member
    Join Date
    May 2006
    Posts
    56
    Quote Originally Posted by westink
    I was only working in the portfolio section, but have to say- I don't see it! What's the problem, Sister?
    Yeah in the portfolio section when you move over some thumbnails they wobble.. I've tried lining up the two images using exact x, y but they still do it .

  8. #8
    flashmo.com
    Join Date
    Sep 2003
    Posts
    115
    Hi beautyindarknes,

    Here is the fade in/out for every thumbnail.
    When you check the FLA, on frame 5, line 32 to 41, you will see the following:

    this._parent.tn_pic._alpha = 70 when you roll over.
    this._parent.tn_pic._alpha = tn_alpha_default; when you roll out.
    [var tn_alpha_default:Number = 100; at line 4.]

    tn_group["tn"+i].tn_button.onRollOver = function()
    {
    this._parent.tn_pic._alpha = 70;
    _root.info = photo_url[this._parent.tn_no];
    }
    tn_group["tn"+i].tn_button.onRollOut = function()
    {
    this._parent.tn_pic._alpha = tn_alpha_default;
    _root.info = "";
    }

  9. #9
    Member
    Join Date
    May 2006
    Posts
    56
    Quote Originally Posted by mgminthu
    Hi beautyindarknes,

    Here is the fade in/out for every thumbnail.
    When you check the FLA, on frame 5, line 32 to 41, you will see the following:

    this._parent.tn_pic._alpha = 70 when you roll over.
    this._parent.tn_pic._alpha = tn_alpha_default; when you roll out.
    [var tn_alpha_default:Number = 100; at line 4.]

    tn_group["tn"+i].tn_button.onRollOver = function()
    {
    this._parent.tn_pic._alpha = 70;
    _root.info = photo_url[this._parent.tn_no];
    }
    tn_group["tn"+i].tn_button.onRollOut = function()
    {
    this._parent.tn_pic._alpha = tn_alpha_default;
    _root.info = "";
    }
    Where do I type this code??

    At the moment my thumbnails are set as symbols (buttons) and have their own little time line with 4 keyframes..

  10. #10
    flashmo.com
    Join Date
    Sep 2003
    Posts
    115
    Those codes are from this thumbnail gallery FLA file.

    You may post your FLA here. So anyone can check and give some suggestions for you.

  11. #11
    Senior Member
    Join Date
    Oct 2007
    Posts
    146
    First, get rid of the button states. You want to set each thumb as a Movie Clip. You can create an ease speed too. This will fade in and fade out:

    for each MC attach the following (actions - movie clip)

    PHP Code:
    onClipEvent(load){
    ease 4;
    alphy 50;
    }

    onClipEvent(enterFrame){
    _alpha += (alphy _alpha)/ease;

    You can then set the rollOut to 50 or the rollOver to 100. The onEnterFrame function pulls the equation to match your setting.

  12. #12
    Member
    Join Date
    May 2006
    Posts
    56
    Quote Originally Posted by westink
    First, get rid of the button states. You want to set each thumb as a Movie Clip. You can create an ease speed too. This will fade in and fade out:

    for each MC attach the following (actions - movie clip)

    PHP Code:
    onClipEvent(load){
    ease 4;
    alphy 50;
    }

    onClipEvent(enterFrame){
    _alpha += (alphy _alpha)/ease;

    You can then set the rollOut to 50 or the rollOver to 100. The onEnterFrame function pulls the equation to match your setting.
    I'll give it a go

  13. #13
    Member
    Join Date
    May 2006
    Posts
    56
    Quote Originally Posted by westink
    First, get rid of the button states. You want to set each thumb as a Movie Clip. You can create an ease speed too. This will fade in and fade out:

    for each MC attach the following (actions - movie clip)

    PHP Code:
    onClipEvent(load){
    ease 4;
    alphy 50;
    }

    onClipEvent(enterFrame){
    _alpha += (alphy _alpha)/ease;

    You can then set the rollOut to 50 or the rollOver to 100. The onEnterFrame function pulls the equation to match your setting.

    I've tried it with no luck, it no longer acts like a button. just makes the image go from faded to not faded and how do I make it have over, down and hit? And where do I put the actions to what frame it needs to go to?

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