View Full Version : Need a director Expert to help me with this!!
oosyadaddy2
04-08-2004, 07:52 AM
Ok im using director 8.5, what i need to do is have an image that can be scrolled with arrow buttons, within another image.
So really one image is under another image. and part of the bottom image can be seen through a window and scrolled using buttons on the top image?
If any actually understands what i mean lol please contact me
oosyadaddy@hotmail.com for email and msn
cheers
celtic_druid
04-08-2004, 08:10 AM
Put an image with a transparent window over the top. Could also use a mask.
Then I guess for the arrow buttons
on mouseDown me
current = sprite(1).locV
sprite(1).locV = current+2
end
or something like that. Play around, I'm sure that you will get it eventually.
Probably also want to throw in if current < ? then so that it doesn't just keep scrolling.
celtic_druid
04-08-2004, 08:55 AM
http://celticdruid.no-ip.com/test.htm
BlackDiamondJr
04-08-2004, 09:42 AM
http://celticdruid.no-ip.com/test.htm
Sorry, I don't get it!
celtic_druid
04-08-2004, 09:53 AM
It's a scrollable image behind another image done in director and saved as a shockwave file.
Hmmm, looks like your browser only loaded 18,894bytes out of 22,615bytes.
Try this: http://druid1.netfirms.com/test.htm
oosyadaddy2
04-08-2004, 10:53 AM
Is there anyway i can open that file to see how it is done??, as it is perfect?
celtic_druid
04-08-2004, 11:16 AM
Well here is what I ended up with. Actual file was done in Director MX 2004 and as such I am not sure if you could open it with 8.5.
Up button script:
global scrollup
on mouseDown me
set scrollup = true
end
on mouseUp me
set scrollup = false
end
on mouseLeave me
set scrollup = false
end
Down button script:
global scrolldown
on mouseDown me
set scrolldown = true
end
on mouseUp me
set scrolldown = false
end
on mouseLeave me
set scrolldown = false
end
frame script
global scrollup , scrolldown
on exitFrame me
if scrollup = true then
current = sprite(1).locV
if current > -200 then
sprite(1).locV = current-2
end if
end if
if scrolldown = true then
current = sprite(1).locV
if current < 475 then
sprite(1).locV = current+2
end if
end if
go the frame
end
vBulletin® v3.7.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.