Dynamic Textbox Flash

Robin Hickmott
Robin Hickmott used Ask the Experts™
Hi im using Flash 8

Is there anyway to load an external image (jpg/png) and display it as the background for a dynamic textbox. Preferably I want the textbox also to resize to the dimensions of the incoming image.

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Process Improvement Mgr
I would just create an empty movie clip. Put the textbox inside the movieClip. Load your picture inside the empty movie clip. Size the empty movie clip to match the dimensions of your new file.

does that make sense to you?

Robin HickmottSoftware Developer
Top Expert 2006


Well im using the following to load in and displa the image.


It seems to work but the image comes in over the top of the original textbox
MontoyaProcess Improvement Mgr

In that case, you could just add the text dynamically, and select the depth. Just do something like:

myText_txt.text="this is another test";

you can also set multiple properties for your textfield, like color, background color, html and more...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial