Log in

View Full Version : TextArea margin problem



Mark__G
12-26-2007, 08:02 PM
So I am loading images dynamically into a TextArea component via html but there is a margin of like 10 or more pixels on the top and left. I set the size of the TextArea to exactly what the image size is. Any suggestions on how to load the image without any sort of margins?

BLiZZaRD
12-26-2007, 08:43 PM
So why would you load images into a text area? They make empty MCs for that ;)

Mark__G
12-26-2007, 08:52 PM
here is my code:



var gallery = new XML();
gallery.ignoreWhite = true;
gallery.load("weddings-2.html");
gallery.onLoad = function () {
image.text = gallery;
image.html = true;


What AS would I use instead of "image.text = gallery;" if the image instance is an empty movieclip and not a TextArea?

Mark__G
12-26-2007, 09:45 PM
Never mind, figured it out. Was making this WAY harder than it needed to be.

BLiZZaRD
12-29-2007, 05:54 PM
;) Tis usually the case (with all of us, not just you :) )