html in swfs
- Started
- Last post
- 8 Responses
- nburlington
Just curious. I've been doing my research on this but I'm not getting anywhere.
I have a text field in my movie and I'm loading some html into it. I'd like to include links in the html that load new files into the same text field. Basically I want to use the text field like a frame.
Anyone?
- ********0
I've developed eLearning apps taking text that contained HTML tags and it's worked in the past. Some characters are not read by Flash though. What's the specific problem?
- ********0
my_txt.html = true;
my_txt.htmlText = "<strong> this is bold text < / b >";no spaces.
- ********0
ahhh, so you want to make those links load into the same text field. Hmmm, actually I've never seen this done, because at that point you are not relying on AS, you're using HTML. Odd.
- nburlington0
I know. Its tricky. I have to test it out. From what I've read, any "target" attributes in an tag would affect the browser window as usual.
You can embed swf files in the html. So you'd have a swf in html running in a swf. If I use a swf in the html, I'd have to find a way to change the instance name of the text field to pull in a new variable right?
I'm trying to think of the cleanest way to do this. I guess I could try to have the embedded swf move to the next frame on _root and just substitute a new text field there but that might get messy if I have alot of content. Time to do some testing.
- shaft0
Search help for asfunction, it's what you're looking for
- shaft0
"You can embed swf files in the html. So you'd have a swf in html running in a swf."
Not so fast, again see flash help for "supported html tags". AFAIR it's html 1.0 (Not sure if img was in 1.0, but now it is supported)
- ********0
exactly, some HTML tags are and aren't supported.
- ********0
Ah'll tell ye whit ye cannae dee.....
ye cannae build a browser in Flash.