Ask a Question related to Macromedia Director Lingo, Design and Development.
-
sussie.k webforumsuser@macromedia.com #1
trying to do a rollover - please help!!!
Hi,
I'm a bit new to Director and i'm trying to make a rolloverbutton so that when i entermouse i want the transparency to go from 100 to 0. And when a leavemouse i want the transparency to go back from 0 to 100.
I don't have the lingo script for that so i'm hoping that someone can help me!!
Thanks!!! :)
*Susanne
sussie.k webforumsuser@macromedia.com Guest
-
help with rollover in DW 8
im trying to do this http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm and here is my code. it doesnt actually do what is... -
Rollover
take a look at this for example of rollovers... http://portfolio.jumpout.co.uk/examples/director "Robert Lee" <rjlee@earthling.net> wrote in... -
rollover in 3D
I would like to make a kind of a rollover in a 3d world. I use this script voor a mouseDown action: on mouseDown (me) -- update the mouse down... -
Rollover and making another rollover with links
Hi, This website is nicely designed and the rollover menu design is simple, but clear and effective. http://earthtrends.wri.org/ Does... -
Rollover ???
hi, I am trying to build my first site with flash and i have a question. what I am trying to do is to get photos to change from grayscale to... -
JB #2
Re: trying to do a rollover - please help!!!
on mousseEnter me
sprite(me.spritenum).blend = 0
end
on mousseLeave me
sprite(me.spritenum).blend = 100
end
-- cound set the visible to false to get result similar to blend 0
-- but rollover detect may be lost with invisible sprite
JB Guest
-
Roofy webforumsuser@macromedia.com #3
Re:trying to do a rollover - please help!!!
Hi Susanne,
what you are looking for is the sprites blendLevel. an example would be something like this...
sprite(whichSprite).blend = 0 -- this makes the sprite invisible
sprite(whichSprite).blend = 100 -- this makes the sprite 100% visible
So in your behaviour script do this...
on mouseEnter me
sprite(me.spriteNum).blend = 100
end
on mouseLeave me
sprite(me.spriteNum).blend = 0
end
Roofy webforumsuser@macromedia.com Guest
-
Dave Mennenoh #4
Re: trying to do a rollover - please help!!!
If you were looking for an animated blend, like it kind of sounds, then try
this on for size:
property myBlend, myBlending, myBlendStep
property sp
on beginSprite me
sp = sprite(me.spriteNum)
myBlend = 100
myBlendStep = 10
myBlending = #up
end
on mouseEnter me
myBlending = #down
end
on mouseLeave me
myBlending = #up
end
on enterFrame me
if myBlending = #up then
if myBlend + myBlendStep <= 100 then
myBlend = myBlend + myBlendStep
sp.blend = myBlend
end if
else
if myBlend - myBlendStep >= 0 then
myBlend = myBlend - myBlendStep
sp.blend = myBlend
end if
end if
end
--
Dave Mennenoh
[url]http://www.crackconspiracy.com/~davem[/url]
Dave Mennenoh Guest
-
sussie.k webforumsuser@macromedia.com #5
Re: trying to do a rollover - please help!!!
Thanks everyone for all your help! It was really helpful.
// Susanne
sussie.k webforumsuser@macromedia.com Guest



Reply With Quote

