PDA

View Full Version : Text resizing


fenderboy
01-16-2007, 12:45 PM
ok, this one has had me stumped all day.

I have a dynamic textfield into which I load text from the first node from an xml file. 2 buttons (previous and next) are used to go through the nodes - so far so good. My client has now requested that the text be resizable using 2 buttons ( a small 'A' and a larger 'A'). I guess this would involve applying a stylesheet initially and then having the 2 buttons dynamically switch between 2 classes in the stylesheet (one for small text and one for large text). Ideally I'd like the timeline to stay on the same frame throughout. Files attached.

Anyone have any ideas? Help much appreciated.

red01
01-23-2007, 02:16 AM
i havent looked at your files but have you looked into the TextFormat class it has font size control


More info here (http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002801.html)