PDA

View Full Version : NEED HELP!! loading movieclip using external text file and XML


cjone
12-12-2003, 05:56 AM
Hi everyone.

I have an external text file that loads a movieclip into the text area of my flash movie. The text file uses the following XML:

web="<img width='*' height='*' src='webthumbs' hspace='25' vspace='0' align='left' />";

I have this working fine except for one thing. When the movieclip loads into the text area the images that are in my movieclip appear tiny instead of their real size.

The movieclip I am loading is an internal movieclip which means that its canvas size is the same as the rest of my movie. Where I have the *'s for width and height I have tried everything under the sun to try and manipulate the size of the images but to with no success. Does anybody know how to get the images in my movieclip to appear their actual size? I am really baffled |

thanku
cjone

Mortimer Jazz
12-12-2003, 07:39 AM
I'm a bit unsure as to whether you mean you're using XML to bring in data, or whether you're using it to load images directly into a textfield in FlashMX2004. Assuming it's the latter:

Make sure that you haven't resized your textbox using the resize tool (instead of clicking inside the textbox with the text tool and dragging the corner, as you should do) - To check, select the textbox then press CTRL & T. Both input boxes at the top of the transform panel must be 100%.

It may also be helpful to check the top tutorial here, which I don't think is on actionscript.org yet
http://www.nwebb.co.uk/nw_htmlsite/work.php

cjone
12-12-2003, 05:31 PM
Wow, I would never have thought about that. My thumbnails are sized perfectly now.

Just to clear it up for you, I have a movieclip inside my main flash movie. I am using XML in an external textfile to load this movieclip (using the movieclips linkage name) into a text area in my main flash movie. Clear as mud?

That's brillant - thank you so much I have been trying to figure that out for a week now. Thanks for the link also, I'll have a nosey around today.

peace
cjone