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.phpHOME |
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
|