HZGN.COM
welcome to my space
X
Search:  
Welcome to:hzgn.com
Feng Shui | Graphic Design | Cosmetics | Causes and Organizations | Regulatory Compliance | Gadgets and Gizmos | Computer Forensics | Tools and Equipment | Related articles
NAVIGATION - HOME
rollover over/out affect with button
Published by: admin 2009-01-07

  • I have quite a few regular buttons with up/over/down/hit states, however now my client wants an image next to my buttons to fade in when the button is rolled over, and then fade out on rolloff.

    The image that fades must not be a hit area.

    So basically each button will have a small image fade in next to the button when the user rollsover, and then the image fades away on rolloff.

    Im just after a fairly simple solution to this as I have many buttons and dont want to have to rebuild each button from scratch.


  • half sorted it, doeant have a problem fading in anymore, but the odd one still does fading out.

    I just used xxx.swapDepths(0); on the rollover action

    eg
    on(rollOver){_root.waikerie.next =1;_root.waikerie.swapDepths(0);}
    Dreamweaver Rollover Buttons Video Tutorial Newbie 101 Website ::
    Quick Video Tutorial to show you how to make rollover buttons with images We will go over some basic of making - exporting out the graphic buttons
    http://www.michelespaintshop.com/mp_dwrolloverbtns.php
    HOME
    on(rollOut){_root.waikerie.next=0}

    on (release) {
    getURL("../../html/towns/waikerie.php");
    }


  • just create a new movie clip(the image) under an instant name, like ABC.
    inside the movie clip, empty the first frame(so it would be invisible when the movie loads), then put in your fade in animation say from frame 2-5.put stop(); in frame 1 and 5

    put this script on your btn :

    on(rollover){_root.ABCnext =1}
    on(rollout){_root.ABC.next=0}

    put this in your movieclip

    onclipevent(enterframe){
    if(_root.ABCnext ==1){
    _root.ABC.nextFrame()
    }
    if(_root.ABCnext ==0){
    _root.ABC.prevFrame()
    }
    }

    make sure u don't use ABC.gotoandplay(2), cause it will stay at frame 2 as u are still rollovering the btn, of course there's another way to turn it around, but that's a lot more complicated.


  • if anyone is able to help out, below is a link to the fla file (a stripped down version).
    Keep in mind it MUST be published in flash 6. It works perfectly fine when published in flash 8.

    Cheers!

    http://3amdesign.com.au/rivermurray/murray-stripped.fla


  • hey thanks for that, works well!

    You had a couple of errors in your code (like missing full stops, and some lowercases needed to be upercase), but i was able to fix them without too many dramas.


  • Perhaps your client simply needs to upgrade to Flash 8. i f he gets flash 8 and dreamweaver and finds a fake activation code for dweaver, flash will activate, cuz dreamweaver doesnt access the internet to check for license code validity


  • well i could do that using a movie clip with the fade tween inside that, and it works fine. However that wont make it fade out whne the user rolls off. There is no button state "out". Otherwise i could simply just use a fade in and a fade out mc.


  • yeah looking at your file they some tend to fade in kinda wierd. cant ell ya much though about how your doing it when setting it up like that.


  • nah my client owns flash 8, the reason he wants it published in flash 6 is due to many users still not having the flash 8 plugin.

    Thanks Ceejeeb, but I fixed the problem simply by removing the fade in animation from the first frame from each of the movie clips!

    It now fades in smoothly, and the images appear correctly.

    Someone also told me that the flash 6 player can only handle 11 images to fade in like that. Once you get to 12, odd things will happen. So the best solution is to do what I've done.


  • anyone?

    im starting to get desperate now...


  • ok ive had a couple of problems with this.

    When published in flash 6 (which is what the client requires), when you I rollover a button and the image fades in/out certain parts of the image is missing. It then suddenly appears once the fade process is finished.

    Im pretty sure it has something to do with the layer order. Each of the images that fade in are on different layers. When i change the layer order it affects the image fade in. Those higher in the layer order are unaffected, however those lower in order that have higher ones overlap are affected.

    http://3amdesign.com.au/rivermurray/murray-map-withimages.html


  • so what about making it in flash 7??


  • just put the image behind the button on the over state and then change the alpha to w/e percent you want...im not 100% sure on this since i am still new to flash...i hope this helps and that you have more knowlege than i do because i am still a noob





  • Red Hat's Rough Recovery From CFO Exit
    Windows Live Finds a New, Pre-installed Home

    PRINT Add to favorites
  • how to take care of this plant
  • if i bake soil why would a plant it grow slower than if i didn 039 t
  • what kind of flowers should i get
  • is the european foxglove poisonous to the touch
  • if i plant a flower in a clay pot and water it reguarly will the clay pot absorb the water
  • can i plant a basil plant in my garden
  • working construction and the winter
  • how do i poison a tree
  • for last steps of winter lawn care should i put weed and feed down first or leaves mulch or odes it matter
  • how do you get rid of weed smoke
  • can someone please help me identify this plant
  • are the rocks in your area good for bonsai trays
  • how much power does the gardener have to supply to push the lawnmower at a constant speed of 1 2

  • is it ok to just mow leaves up in the fall
  • can someone please help me identify a plant in my garden
  • do i need to water my jiffy pellets
  • venus flytrap dormancy
  • how much do you think all the pennies thrown in one fountain would add up to in a year
  • what types of herbicides are dandelions resistant to
  • anyone know any really successful ways to dry out roses
  • will a plant grow better in a clay or plastic pot
  • i know bananas grow on trees but can they grow on vines too
  • where can i find a good site for elevations
  • how can i keep my koi pond clean
  • weird holes in backyard lawn with dirt mounds around the outside
  • how and when to grow garlic in my garden
  • backyard gardening
  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about rollover over/out affect with button , Please add it free.
    About us |Contact us |Advertisement |Site map |Exchange links
    Copyright© 2008hzgn.com All Rights Reserved