Can you please tell me more specifically how to apply this to my imagery, they are named as follows (i.e. should I create one behavior for the above code)?:
colorbar
up
down
Thanks.
Main Topics
Browse All TopicsI have seen the text scrollbar, however cannot seem to apply it to an image.
I would like to embed my colorbar (19 pixels wide by 1219 pixels wide) in between functional up and down arrows that I have created... The stage size that I am working in is 800 pixels wide x 600 pixels high.
What would be the best way to approach this. Any code would be greatly appreciated.
I thank you very much for your time.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The vertical bar seems to be functioning, however, is rather inconsistant. The up button seems to work everytime, but the down button will only work occassionally. What can I do to adjust this?
Additionally, I was wonder if there is a way to control the speed of the image when the user presses up or down. For example, when pressing up it would move the colorbar up five spaces instead of the default one...or when the up or down was held for a bit it would quickly scan over the entire colorbar.
Additionally, when I select the colors on the bar it does not always paint that color (however before it was never a problem).
Thanks.
Here is my setColor behavior:
==========================
property pSprite
property pMember
property pImage
on beginSprite me
pSprite = sprite(the currentSpritenum)
pMember = pSprite.member
pImage = pMember.image
end
on mouseDown me
myX = the mouseH - (pSprite.locH - (pSprite.width/2))
myY = the mouseV - (pSprite.locV - (pSprite.height/2))
myColor = pImage.getPixel(myX, myY)
sprite(1).pColor = myColor
put myX && myY
end
==========================
Should be pretty consistent. Are you sure hte behavior is attached adn exactly like I had it above? When you say "inconsistent" what exactly is it doing?
For the color, make sure that the canvas is in sprite 1. This behavior is specifically targeting that sprite to set the property. A global might be a better approach for this.
I get the error "comma expected" on the row:
on drawImage me
sprite(spritenum).member.i
end
Im a newbie at this so I wont be surprised if the error is obvious and kinda stupid, but please help. Anyone knows
Business Accounts
Answer for Membership
by: MediaMacrosPosted on 2004-02-17 at 05:47:49ID: 10382011
There are 2 ways. The "old" way is to change the locV of the sprite to slide it up and down. If you want more control use imaging lingo. FOr example, lets say you have a bitmap cast member on screen that is 100X100 and an image thats 100X1200 you want to scroll
mage.copyP ixels(memb er("source Image").image, sprite(spriteNum).member.r ect, sprite(spriteNum).member.r ect.offset (0, pScroll)
eight)
)
property spritenum
property pScroll
on beginSprite me
pScroll = 0
me.drawImage()
end
on drawImage me
sprite(spritenum).member.i
end
on scrollUp me
pScroll = pScroll + 5
pScroll = min(pScroll, member("source image").height - sprite(spriteNum).member.h
me.drawImage()
end
on scrollDown me
pScroll = pScroll - 5
pScroll = max(0, pScroll)
me.drawImage()
end
To scroll use this on a button...
on mouseUp me
sendAllSprites(#scrollUp)
end
or down...
on mouseUp me
sendAllSprites(#scrollDown
end