Dynamic Textbox Flash

Robin Hickmott
Robin Hickmott used Ask the Experts™
on
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.

Regards
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Process Improvement Mgr
Commented:
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

Author

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

http://www.adobe.com/devnet/flash/articles/image_api_03.html

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

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

_root.createTextField("myText_txt",this.getNextHighestDepth,50,50,100,30);
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