# Question about HTML in Flash

**URL:** https://forum.kirupa.com/t/question-about-html-in-flash/7625
**Category:** Uncategorized
**Created:** [November 4, 2002, 8:26pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625 "2002-11-04T20:26:10Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Guusje](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guusje](https://forum.kirupa.com/u/Guusje)
#### Post date: [November 4, 2002, 8:26pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/1 "2002-11-04T20:26:10Z")

</div>

Hai,

I want to know if (and how) it’s possible to load in a full screen swf file a html document so that i can edit the tekst in Html if i want.  
The whole page is swf and a box of 350 by 200 pixels must be html. i know i can make a hyperlink to a new page, and i have tested it by making an movieclip and in the movieclip making an tekstfield but it wouldnt work.

Can anybody help me? I have looked allover in tutorials but i couldnt find anything about it.

thanks!

regards,  
Guusje

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 4, 2002, 8:33pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/2 "2002-11-04T20:33:23Z")

</div>

As far as I know, you can’t actually load HTML files into Flash.

You can HTML enable your textarea, but this only works for HTML text formatting tags and you can also use a the A HREF tag to make links.

Try this… give your textbox the var name “myTextBox”

```auto
myText = "< B > THIS IS BOLD TEXT < /B >";
myTextBox.html = true;
mYTextBox.htmlText = myText;

```

Remove the spaces between the \< and \>, I didn’t want the board to convert the HTML.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 2:39pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/3 "2002-11-05T14:39:25Z")

</div>

Where do i have to put the code exactly ? do i have to make a html document (because of the variable) or do i have to make an action and put the code there?

thanks!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 5:03pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/4 "2002-11-05T17:03:08Z")

</div>

You can copy and paste that code into a frame on the main timeline of your movie.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 9:26pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/5 "2002-11-05T21:26:09Z")

</div>

thanks! it works!

only one question more… i have found out the way to put html code into a .txt file and let it see in my textbox in flash. I wandered if its possible to create a table in the textfile and if yes, how can i create one. I allready tried several things but it wouldnt work.

Is it also possible to create a hyperlink that opens in the same .swf file as the hyperlink is in. its like it only works if a new window opens…

allready thanks again for youre help!

greetz,

Guusje

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 9:37pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/6 "2002-11-05T21:37:48Z")

</div>

I asked myself many times: why can’t you use all the html-tags in flash, so you can load a html-document inside a mc. I don’t think it’s possible, but I could be wrong.It would be easy, don’t you think? I know you can load the variables of a html-doc into a text-box. But when you enable html, flash only recognises the \< font \> tag and some small things, why no tables, images or even frames?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 9:43pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/7 "2002-11-05T21:43:59Z")

</div>

jep its terrible. I allready tried to make 4 frames in html and put in the first 2 a swf file and in the second 2 just html to get rid of the textboxes of flash where you cant do anything in.  
But it wont work for me because the website must look like as if it is 1 picture. And the sizes of monitors are very differently. I can put it in a table but it is not possible to clik on a hyperlink within one table and put the link into the other.  
Bah.

Maybe you can answer my next question:  
if a make a hyperlink in a textbox (jippie, that is possible in flash) can i put the target in the same ‘movieclip’ where i put the tekstbox in?

greetz  
Guusje

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 9:53pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/8 "2002-11-05T21:53:31Z")

</div>

what target? (you can say it in dutch if you want 🙂 )

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 10:03pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/9 "2002-11-05T22:03:34Z")

</div>

dat is handig 🙂  
Ik laad een extern .txt bestand in. Daar kan ik een hyperlink inzetten die verschijnt in de textbox. harstikke handig tot zover. Alleen als ik de hyperlink aanklik wordt er een nieuw window geopend en daar de pagina in weergegeven.  
Wat ik graag wil is binnen een textbox een hyperlink aanklikken welke dan weer in dezelfde movieclip (waar de textbox in staat) wordt ingelezen.

Dus voorbeeld:

tekst met docenten  
docent 1  
docent 2  
docent 3  
docent 4 enz…

hyperlink vanaf docent 1 naar de specificatie van docent 1 in dezelfde tekstbox (movieclip) als waar de tekst met docenten instond. En ook een ‘back’ button zodat je weer in het overzicht van de docenten komt.

Ik hoop dat ik het een beetje helder heb uitgelegd zo.

groetjes,  
Guusje

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 10:34pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/10 "2002-11-05T22:34:08Z")

</div>

dus als ik het goed begrijp dan wil je flash-commando’s gebruiken in html?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 10:41pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/11 "2002-11-05T22:41:55Z")

</div>

met andere woorden: “je bent een muts dat kan helemaal niet”

🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 11:07pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/12 "2002-11-05T23:07:22Z")

</div>

een muts ben je niet, maar het kan inderdaad niet, toch niet dat ik weet. Ik dacht eerst om met javascript een variabele te laten veranderen. Maar ik kon geen manier bedenken om dan die variabele te bekijken met flash. Vroeger gebruikte ik veel dynamic textboxen, maar ik ben het gestopt omdat ik het nut er niet van inzie. Het gaat veel beter met buttons en statische tekst en zo hoeft de bezoeker het lettertype niet te hebben. Ook is de tekst veel gladder en mooier als je het mij vraagt. Ik kan je niet helpen, het spijt me. Misschien iemand anders op dit forum…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 11:13pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/13 "2002-11-05T23:13:44Z")

</div>

als je 50 docenten hebt is het zon gedoe om dat in buttons weer te geven.  
wat ik natuurlijk wel kan doen is in de mc buttons aanmaken waarbij je kan klikken op betreffende docent. jammer dat er dan maar heeeeeeeeeel weinig ruimte overblijft om de tekst kwijt te kunnen (gezien de opbouw van mijn website)

Ik zit nu te klooien om het voor elkaar te krijgen om 4 frames te maken waarvan het linkerboven frame een .swf wordt ingeladen, in het linkeronderframe gewoon html, rechtsboven .swf en rechtsonder weer html. Alleen het moet natuurlijk wel lijken alsof het 1 website is. in de 2 html frames kan ik natuurlijk gewoon een achtergrond gebruiken alleen weet ik niet hoe ik die frames vast kan zetten. ik ben al uren aan het klooien maar krijg het simpelweg niet voor elkaar.  
Niet als ik hard pixels ingeef, ook niet als ik relatief ingeef. Het mag allemaal niet baten.  
grmbl…

als je wat weet…laat het me effe weten 🙂

bedankt voor je hulp voor zover.

groetjes,

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 11:29pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/14 "2002-11-05T23:29:49Z")

</div>

wat wil je juist, maken dat wanneer je scrollt dat je achtergrond blijft staan? dan moet je die code toevoegen aan je body tag:

\< body bgproperties=“fixed”\>

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 11:32pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/15 "2002-11-05T23:32:58Z")

</div>

als je bedoeld dat je je frames nie mag kunnen verkleinen of vergroten moet je ‘noresize’ in je frame tag plaatsen. Ik zou ook geen borders gebruiken, maar dat weet je wel allemaal

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 6, 2002, 8:01am UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/16 "2002-11-06T08:01:27Z")

</div>

noresize snap ik. Maar als ik dan de resolutie van mijn beeldscherm aanpas dan komen de plaatjes niet precies naast elkaar te staan. Als je begrijpt wat ik bedoel…als je internet explorer in grootte aanpast dan veranderd de grootte van de frames toch…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 6, 2002, 8:04am UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/17 "2002-11-06T08:04:02Z")

</div>

could anyone here translate whats going on??

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 6, 2002, 8:11am UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/18 "2002-11-06T08:11:13Z")

</div>

I was wondering the same thing…  
I want to know what they said!! :\*(

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 6, 2002, 9:34am UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/19 "2002-11-06T09:34:47Z")

</div>

hehe.

i said:

I get the noresize part. But when i change the resolution of my monitor the pictures i put in the frame dont fit with eathother. If you know what i mean…if you open internet explorer and you resize it, the frame width and height changes anyhowe.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 6, 2002, 4:10pm UTC](https://forum.kirupa.com/t/question-about-html-in-flash/7625/20 "2002-11-06T16:10:26Z")

</div>

that’s because you use percentages. just use pixels, that means you don’t have to use anything else than just a number

```auto
< frameset rows="80,*">
		< frame name="NoName" noresize src="(EmptyReference!)">
		< frameset cols="80,*">
			< frame name="NoName" noresize src="(EmptyReference!)">
			< frame name="NoName" noresize src="(EmptyReference!)">
		< /frameset>
		< noframes>

			< body bgcolor="#ffffff">
				< p>
		< /p>
			< /body>

		< /noframes>
	< /frameset>

```
