Ask a Question related to Macromedia Director Basics, Design and Development.
-
miro20 webforumsuser@macromedia.com #1
change button alpha on mouse over
Hi
I have made plain rectangular buttons for a movie and have set the 'transparent' option to 40% so that the background shows through and the button appears translucent.
What I want to do is add a mouse over state for the button changing the transparent option to 80% so that it becomes more opaque in appearance. So far I have only used the script:
on mouseenter me
sprite(the currentspritenum).membernum=2
updateStage
end
on mouseleave me
sprite(the currentspritenum).membernum=1
updateStage
end
I am trying to change this so that only the transparency property of the sprite is changed but can't get it right :-(
on mouseenter me
sprite(the currentspritenum).ink=1
updateStage
end
on mouseleave me
sprite(the currentspritenum).ink=1
updateStage
end
but how can I set the LEVEL of transparency? - or am I barking up the wrong tree?
thanks
Karen
miro20 webforumsuser@macromedia.com Guest
-
How do i programmatic-ally change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs?
Hi Guys! How do i programmatically change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs? In... -
How do I change mouse pointer?
Hi! I'm a Macromedia Flash user and creating my own personal website for my project in Internet subject. How do I change the default mouse pointer... -
Mouse button problem...
Hi, i want to use both the left and the right mousebutton to navigate, the left button to move backwards, and the right to go forward from any... -
changing alpha on mouse within
Assuming you've set the blend to 50% in Director you can do it with a behaviour attached to the sprite:- property spriteNum on mouseEnter... -
Fading alpha on mouse over/mouse off
Hi, Wondering if someone could take a minute to help a flash newbie: I'm trying to create a set of images which fade to 1% alpha when the mouse is... -
Rob Dillon #2
Re: change button alpha on mouse over
Hi Karen,
You want to change the blend value of the sprite:
on mouseEnter me
sprite(me.spriteNum).blend = 50
end
on mouseLeave me
sprite(me.spriteNum).blend = 100
end
--
Rob
_______
Rob Dillon
Team Macromedia
[url]http://www.ddg-designs.com[/url]
412-243-9119
[url]http://www.macromedia.com/software/trial/[/url]
Rob Dillon Guest



Reply With Quote

