Question about HTML in Flash

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

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”

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.

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!

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

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

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?

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

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

dat is handig :slight_smile:
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

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

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

:slight_smile:

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…

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 :slight_smile:

bedankt voor je hulp voor zover.

groetjes,

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”>

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

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…

could anyone here translate whats going on??

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

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.

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

< 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>