Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enlarging Objects and Text

Status
Not open for further replies.

GavW

Programmer
Jan 13, 2006
58
0
0
GB
Hi all!

I was wondering if any of you could help me out. I am attempting to make my Director application as accessible to the visually impaired as I can and would like the ability to enlarge / zoom into objects when the mouse rolls over them.

Plus also I would like to give the user the ability to change the font size on the screen.

Could anybody help me out or point me to a good tutorial on how to make the above happen?

Thanks in advance,

GavW
 
This is a very basic script, which on roll over enlarges the size of a Sprite:

[tt]-- Behaviour attached to Sprite
property pWidth, pHeight

on beginSprite me
pWidth = sprite(me.spriteNum).width
pHeight = sprite(me.spriteNum).height
end beginSprite

on mouseEnter me
sprite(me.spriteNum).width = pWidth*10
sprite(me.spriteNum).height = pHeight*10
end mouseEnter

on mouseLeave me
sprite(me.spriteNum).width = pWidth
sprite(me.spriteNum).height = pHeight
end mouseLeave
--[/tt]

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top