PDA

View Full Version : HTML textfield question? (swf embeding related)



geoken
January 18th, 2008, 03:30 PM
When I have an HTML textfield and I embed an swf into it will the text display before the swf has loaded?

Basically, I have a textfield that's loading some text from a XML file. I want to embed an SWF in it but I'm not sure if this will cause the text to display slower (ie. text wont show up untill swf fully loads).

daleth
January 20th, 2008, 11:47 AM
I'm not sure what you mean. You can't embed a swf in a textfield?

--Ted

Censor
January 31st, 2008, 09:25 PM
I'm not sure what you mean. You can't embed a swf in a textfield?

--Ted

You can "embed" a swf, but it's like using a loading object. If you use <img src="your.swf" id="swf"> that will load your swf into the htmlText field. This works with the youtube embed source. If you just take the link it gives you in the embed code it will show the movie in your text field.

your text will show up before the swf loads into the clip. There are many bugs with alignment though.

you can reference the swf with the ID tag, yourTextField.getImageReference('IDhere')