How Do Load Html File In Flash
hello everyone i need a html file which is formatted by CSS loaded into a flash...i mean viewing html page in flash format. i hope everyone got it. pls post any working example. thanks in advance
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 02-18-2006, 01:30 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Load Html File Into Flash
How can I load a html file into a flash movieclip with the instance name "htlmholder" after I pressed a button.
[CS3] How Can I Load Html File To Flash
hi there
i have course lab (html files) and i want to load them to a region in flash without reformat the html files, just like the loading swf file.
anothor thing, some html files has embbed swf , sound or movies, so if possible how can i do that, if not how can i reformat the html.
thanks..
Load HTML File Into Flash
I got a Flash menu, where i made my drop down menus and stuff. Then the contents of the page, needs to be in html. I actually hoped that i could just load an html file into an empty mc, but it seems like i cant. Is there other ways of doing this?
Load HTML File Into Flash
I got a Flash menu, where i made my drop down menus and stuff. Then the contents of the page, needs to be in html. I actually hoped that i could just load an html file into an empty mc, but it seems like i cant. Is there other ways of doing this?
How To Load Html File Into Flash
I have a html file.it is all text .but the text size and color have some different.
I want load it into flash and show it .How can I do.!
Call An Swf File To Load Into Html Document From Seperate Swf File In HTML.
I am trying to get advise on the best way to do this or how to do this. I have a layout that the customer is happy with, in an HTML document, but the SWF files will be seperated because of the layout. If you go to this link, you will see what I mean. It all takes place inside of the black bar...
http://www.hairdrezzersonfire.com
I want the icon movie on the left to play first and after it is done, I want to be able to call the main SWF file to play in the center of the black area. After that's done, I want that main SWF file to call the text logo movie to play that comes in on the right side of the screen.
I assume that I will use a placeholder of some sort in an HTML cell and it will be replaced by the swf file, but I don't know how to call it with actionscript. Any ideas?
Can I Load A .html File From Within A Flash Movie?
is it possible to load a .html file from within a flash movie? i tried placing a "load movie" action on a button but it doesn't work.
i am creating a cd with flash and i have a .inf file loading a .exe and i wanted the user to then be able to choose the flash version or the html version. but the "load movie" comand will not open the html file in the browser.
is there a better way to do this? can i use autorun.inf to open the html file in the browser? it doesn't seem to work the same as an .exe.
thanks
~openyoureye
Html To Load A New Text File In Flash. . .
Ok, so I've made a text box, and it loads up an external txt file for the text and HTML. How would I make a link or what ever to change text files? Say, I want to list tutorials and when someone picks a tutorial it switches to that tutorial/txt file. How would I do this?
Help: How To Get Flash To Load And Use A Variable From An Html File
Hi folks, I need your wisdom…
I am trying to get a flash file to load a value for a variable from an HTML page and then check that variable for a value and make a decision based on that value.
I did the following in the embed and object tags in the html file
“myflashfile.swf?myvariable=onetwo”
This worked fine and the value of myvariable then became ‘onetwo’ in the flash file (myvariable is a dynamic text box).
However, when I tried adding this to frame one:
If (myvariable == one two) {
gotoAndPlay (2);
} else {
gotoAndPlay (33);
}
The problem is that the flash file would always go to frame 33.
The reason why Im doing this is as a security measure. The logic is that if you load the flash file directly by typing in the path in the browser, then the value of myvariable will not be set. But if the file is loaded as part of the html page, then myvarible will be set to ‘onetwo’ and the file will run normally.
Can anyone help me with this problem or suggest an alternate way of doing this?
TIA
Bill
Load A HTML Page Into A Flash File
Hi, does anyone know a way to load a html page into a flash file like you would use loadMovie except like loadHTML? i know it can be done i just dont know how.
any help would be really appreciated.
thanks
Kessem
Load A HTML Page Into A Flash File
Hi, does anyone know a way to load a html page into a flash file like you would use loadMovie except like loadHTML? i know it can be done i just dont know how.
any help would be really appreciated.
thanks
Kessem
Load An HTML Page Into Flash Exe File
Hi,
I am working on a kiosk project that I am building in flash 8 and plan to deploy as an .exe file run through flash player.
There are a couple of page that are going to contain some data from one of our vendors. That vendor has some proprietary software that generates html page.
Without going into the long, drawn out explanations as to why I can't strip out what I need from that HTML page, I need to know if I can load an entire HTML page onto my main stage?????
I did a search on this site's past threads but most of the replies are over a year old related to this subject and I was hoping with flash 7 or 8 there may be been some new possibilities created.
By the way, I saw some solutions that suggested using iframes but since I building this all in flash (and am not embedding into an html document) I assume I can't use the iframes solution for a flash .exe file.
At this point there are no alternatives available. Has anyone played around with trying to do this?
help!
Help: How To Get Flash To Load And Use A Variable From An Html File.
Hi folks, I need your wisdom…
I am trying to get a flash file to load a value for a variable from an HTML page and then check that variable for a value and make a decision based on that value.
I did the following in the embed and object tags in the html file
“myflashfile.swf?myvariable=onetwoâ€
This worked fine and the value of myvariable then became ‘onetwo’ in the flash file (myvariable is a dynamic text box).
However, when I tried adding this to frame one:
If (myvariable == onetwo) {
gotoAndPlay (2);
} else {
gotoAndPlay (33);
}
The problem is that the flash file would always go to frame 33.
The reason why Im doing this is as a security measure. The logic is that if you load the flash file directly by typing in the path in the browser, then the value of myvariable will not be set. But if the file is loaded as part of the html page, then myvarible will be set to ‘onetwo’ and the file will run normally.
Can anyone help me with this problem or suggest an alternate way of doing this?
TIA
Bill
How We Can Load External Html Or Php File In Flash?
Hi there,
I want to show my php's file desing in flash..
i m getting data through database in php file and it has table... so I want to show that data in my flash movie...
Please help me ..
How can I load external html or php file in flash?
If any other way is there then plz tell me.....
thanx
Load Php Or Html File Into Flash Pop Up Window ?
Hi,
Is it possible to load a web page or PHP file into a pop up window, movieclip or dynamic text box ?
I have tried all 3 but cannot get it to work ? They only seem to be able to load SWF files.
The code I have for a movieclip is:
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.loadClip("
How Can I Load External Html Or Php File In Flash?
Hi there,
I want to show my php's file desing in flash..
i m getting data through database in php file and it has table... so I want to show that data in my flash movie...
Please help me ..
How can I load external html or php file in flash?
If any other way is there then plz tell me.....
thanx
How To Load All HTML File Into Flash MX 2004 ?
How to load all HTML File into Flash MX 2004 ?
Hi,
I am using Flash MX 2004 as new as today.
I heard that it can load your HTML into Flash environment.
Well, in my mind, it means, if this is true, I can skip those irritating HTML IFRAME IFRAME methods.
But so far I don't know how.
And I don't even know whether the loading target should be into the Text Field or into the Dummy Movie Box.
And I don't even know the correct Actionscript to perform such task.
I try loadMovie("test.html",_root.targetmovie);
and loadVariables("test.html",somevar);
But it doesn't work at all.
Please kindly help me. Thank you.
- me IGX Akiko
Html Link To Load Swf Then Load Specific Xml File
Hi I'm still learning a lot to do with actionscript and not even sure if this can be done so this is a long shot!
I want to have a link in html to load an xml file in a swf - haha does that make sense??
Eg: The user to be able to click on the websites link on "http://crushdesign.co.uk/links.html"
Then that take them to "http://crushdesign.co.uk/portfolio.html" BUT in the Web section of the swf!
Thanks guys
SWF File Load After HTML
I'm sorry, this question has probably been asked a million times before, but I'm really desperate and I've spent all day looking for an answer.
Is there a javascript that makes the SWF file load _AFTER_ the html code, or something similar?
I'm making a hybrid Flash/HTML site and it bothers me that the flash file starts loading and playing without the hml framework.
I'll greatly appreciate an answer!
AlienQ
Pixelguerilla.org
Swf To Load Html File From Same Cd?
I have a rather seemingly simple question. We are constructing a cd that will autorun and begin playing a flash animation (swf file), and at the end of that animation, I need to put some actionscript into the last frame that will end it, kill the player window, and open a browser window and go directly to an html file on that same cd. Could someone provide a snippet of code that would achieve this? I am using Flash CS3 but am sticking to actionscript 2.0 for the movie. Any help would be much appreciated! Thank you in advance.
Load HTML From File
I'm loading some text that has html into it into flash into a textbox. Now, basic html like <b> tags are working. However, if I put in something like <FONT FACE=Arial>, then the textbox displays "undefined". However, if I use that kind of html in flash, it works just fine. How do i load this kind of html from a textfile to flash correctly?
How To Load An Html File
Hi, I'm a beginner and I need to do a program that display a tree at the left of the screen and a textfield at the right. I load the tree's elements from a txt file whit loadVars but how can I introduce the code from textEnhancements.fla to load an html file at the begining of the flash movie. This is my code.
var dateVars = new LoadVars();
dateVars.onLoad = function(ok) {
if (ok) {
//** Cargamos la lista de las paginas correspondientes al concepto
paginas_web = dateVars.pags_web;
lista_conceptos = paginas_web.split("@");
//** Cargamos los titulos correspondientes para cada pagina
paginas_tit = dateVars.pags_titulos;
lista_titulos = paginas_tit.split("@");
//** Convertimos la lista de titulos en los elementos del arbol a la izquierda
for (i=0; i<=(lista_titulos.length-1); i++) {
arbol_conceptos.addTreeNode(lista_titulos, lista_conceptos);
}
}
};
// carga arbol y variables
dateVars.load("concepto.txt");
html_contenido.multiline= true;
html_contenido.wordWrap = true;
html_contenido.html = true;
story = new XML();
story.ignoreWhite = true;
story.onLoad = function () {
html_contenido.htmlText = story;
}
story.load("01pagweb.htm");
Thanks a lot. I'm mexican. =)
How To Load A .html File Off Harddrive?
I have my flash website almost done just need it to bring up a page from the html side. It is a LOCAL file not at a url. How do you bring up a harddrive file by a button?
If you can't how do I put the code (with javascript) into the lower right of just one frame of the flash movie.
Also I'm using mailto:someone@somewhere.com in the url field of a button. It brings up a blank window I don't want. Is there a way around the window? or an auto close?
Load A Txt Or Html Format File
According to my test
loadMovieNum Action can only load a movie(swf).
Can I load a txt or html format file on a swf file?
URGENT - How Do I Load An HTML File Into An MC?
Does anyone have any script for loading an HTML file into an MC (not for variables, but for viewing the actual HTML file)
I'm trying to make this site, http://www.cornerstoneras.com/v3 (that's the demo name) and we're trying to make the paper in the middle load the HTML into it, and would this HTML have the scrollbars necessary to scroll the site?
Also, our first approach was to load images from HTML in a text file (external) but I was told this was impossible from one person, and possible by another - have any solutions or ideas on how we can get this site going?
Any help would be gladly appreciated.
Load Text File With Html
i am trying to load a text file that has html and to let it appear in a dynamic text box in flash. because of the length of the content, i looked around for a scroll bar. this scroll bar that i found actually uses a mask to work. however, i suspect that it is this mask that doesnt allow the code to work. no text can be shown in the textbox when its properties is set to dynamic. it does show in static text box but static doesnt allow coding. when set to dynamic, i have to embed the text inorder for the text to show. this isnt needed usually and now it needs. now, i have a black button. this button is to change the dynamic textbox in my flash to what it should be in the text file and render as html. i tried many many ways but its not working. but of course, masking might not be the problem as i am just guessing.
the other thing about this whole thing is that the first movie, which i named contentmain as its instance name, does not recognise its name as contentmain but instance9. i tried to debug it and thats what i notice if i am not wrong.
i have uploaded an example file to this thread.
please save target as when download...thanks
can some experts overhere please help me to get it work?
thanks a million...
Can't Get Simple Html File To Load...
Hi,
I'm trying to load a file (test.html) into a dynamic text field with this code:
PHP Code:
var loadHtml:LoadVars = new LoadVars();
loadHtml.onLoad = function(): Void{
myText.html = true;
myText.htmlText = loadHtml;
}
loadHtml.load("test.html");
When i test the movie, i get this: "%3Cp%3Ethis%20is%20a%20test%3C%2Fp%3E%0A%0A%0A%0A =&onLoad=%5Btype%20Function%5D"
Am I somehow not accessing the html file properly?
Thanks alot!
Load Html File With No Toolbars Etc.
Hi all
i am working on a presentation that comes on a cd
i want to load a html file when i click on a button, but the html file has to load without toolbars, menubar, etc.
i used the getURL command but then it opens a html with in the address bar my javascript line.
how can i do that so it works fine and load my html page.
code as follow:
on (release) {
getURL("javascript:openNewWindow('http://www.macromedia.com','thewin','height=400,width=400 ,toolbar=no,scrollbars=yes') ");
}
Load Text File With Html
i am trying to load a text file that has html and to let it appear in a dynamic text box in flash. because of the length of the content, i looked around for a scroll bar. this scroll bar that i found actually uses a mask to work. however, i suspect that it is this mask that doesnt allow the code to work. no text can be shown in the textbox when its properties is set to dynamic. it does show in static text box but static doesnt allow coding. when set to dynamic, i have to embed the text inorder for the text to show. this isnt needed usually and now it needs. now, i have a black button. this button is to change the dynamic textbox in my flash to what it should be in the text file and render as html. i tried many many ways but its not working. everytime when i load html into the textbox, it will appear to be empty. normal ordinary text will show but not text embraced with html tags.
the other thing about this whole thing is that the first movie, which i named contentmain as its instance name, does not recognise its name as contentmain but instance9. i tried to debug it and thats what i notice if i am not wrong.
i have uploaded a zip file of the files having problem as an example.
can some experts overhere please help me to get it work?
thanks a million...
How To Load Html Data From Xml File
Hi all,
plz help me out....
how can i load html data in swf which will come through xml file...
soo whats the code of xml to load html data
here is my code which i put on my first frame of my movie
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
xmlData = new XML ();
xmlData.ignoreWhite = true;
var entry = 0;
var total = 0;
function ShowContent ()
{
new Tween (textBox_left, "_alpha", Strong.easeOut, 0, 100, 20, true);
new Tween (textBox_right, "_alpha", Strong.easeOut, 0, 100, 20, true);
textBox_left.htmlText = xmlData.firstChild.childNodes[entry].childNodes[0].childNodes[0].nodeValue;
textBox_right.htmlText = xmlData.firstChild.childNodes[entry].childNodes[1].childNodes[0].nodeValue;
total = xmlData.firstChild.childNodes.length;
}
xmlData.onLoad = ShowContent;
xmlData.load ("contacts.xml");
stop ();
and here is my xml file code
HTML Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<MM>
<images>
<left><img src='a.jpg'/></left>
<right><![CDATA[Text 1 will be display here]]></right>
</images>
<images>
<left><![CDATA[<img src='b.jpg' />]]></left>
<right><![CDATA[Text 2 will be display here]]></right>
</images>
<images>
<left><![CDATA[<img src='c.jpg' />]]></left>
<right><![CDATA[Text 3 will be display here]]></right>
</images>
</MM>
the one more problem is that when i load swf file from xml file it is not working....
plz help me asap
Load Html File With No Toolbars Etc.
Hi all
i am working on a presentation that comes on a cd
i want to load a html file when i click on a button, but the html file has to load without toolbars, menubar, etc.
i used the getURL command but then it opens a html with in the address bar my javascript line.
how can i do that so it works fine and load my html page.
code as follow:
on (release) {
getURL("javascript:openNewWindow('http://www.macromedia.com','thewin','height=400,width=400 ,toolbar=no,scrollbars=yes') ");
}
Load Text File With Html
i am trying to load a text file that has html and to let it appear in a dynamic text box in flash. because of the length of the content, i looked around for a scroll bar. this scroll bar that i found actually uses a mask to work. however, i suspect that it is this mask that doesnt allow the code to work. no text can be shown in the textbox when its properties is set to dynamic. it does show in static text box but static doesnt allow coding. when set to dynamic, i have to embed the text inorder for the text to show. this isnt needed usually and now it needs. now, i have a black button. this button is to change the dynamic textbox in my flash to what it should be in the text file and render as html. i tried many many ways but its not working. everytime when i load html into the textbox, it will appear to be empty. normal ordinary text will show but not text embraced with html tags.
the other thing about this whole thing is that the first movie, which i named contentmain as its instance name, does not recognise its name as contentmain but instance9. i tried to debug it and thats what i notice if i am not wrong.
i have uploaded a zip file of the files having problem as an example.
can some experts overhere please help me to get it work?
thanks a million...
Can't Load Html <a Href> From Txt File. ARRGH
I just want to put a lousy "mailto:" link on some text that loads into a field from a .txt file, but all that happens is it just displays the html as regular text. what am I doing wrong???
here's an abridged version of what the fields look like within the.txt file:
&scriptText=Some banter, blah blah blah.
Email us <a href="mailto:joeygrits@yahoo.com">press</a>
that looks right, right?
I'm really tired, could someone give me an early christmas present when I wake up & show me where I erred?
thanks.
Load Variables From Html File Swf Is Embedded In?
Is it possible to capture variables within the html page a swf movie is embedded in?
eg
.....
OBJECT
*PARAM NAME=movie VALUE="bobby.swf?variable1=1&variable2=correct"
*EMBED src="bobby.swf?variable1=1&variable2=correct"
OBJECT
HTML
thanks in advance
Load Html File Into Dynamic Text Box?
I'm trying to load a large external html file into a dynamic text box, but I just can't figure out how the action script should work. I tried loading the whole file as a variable but that didn't work. If anyone could point me in the right direction it would be most appreciated!
-Meekohi
Load Text From An External Html File
What I want to do is type a few lines in MS Word and export it as html. I want to load this html externally into my flash movie (without losing any formatting - eg colour / size etc).
Basically, I want to load text from an external html file.
Is this done in a similar way to loading text externally from txt files?
Thanks guys!
Stop Movie And Load Html File
Am a total newby, so please be patient :-)
i have put a flash movie in my website but it keeps playing over and over again.
i only want it to play ones and then load a html file.
how can this be done ?
im using flash 5
How To Load HTML File Into A Movie Clip
I want to know how to load a HTML file into a Movie Clip. I have tried to use GetURL but the HTML file is shown in Internet Explorer. The HTML file is a simple HTML file. If it is not possible, how else I can show a HTML file in a Movie Clip
thanks
Load A Frame In HTML File With LoadVars
Well the case goes like this:
as i understood, there's a lot of problems with loading a file from different domain... or is it impossible? -kindof remember i did it once but ok, thats not an issue...
basicly i need to load an HTML page into flash - aint much of a problem.... but.... now the html page loads external site into an iframe... basicly my problem is that i cant see the contents of the iframe - ismuch as i understand it's because when the html file is loaded, then flash recognizes success and don't wait for the iframe content to load...
Any sugestions how to?
I have a way to fo it... i think... as i tried to help someone here with a similar problem...
1. flash sends the request to a php file with an url to display
2. also sends an unique variable - lets say Date.getTime()+random
3. the php file loads the html content from the url and saves it in a folder with the filename of this unique variable.... (dunno how to do it exactly but quess it's possible to save somekind of html content this way)
4. flash tries to load the file that php saves... let's say with an interval of 3 seconds... if the file is not found, it keeps tring... when it is found - well - success
now: Any better solutions - please - any ideas apreshiated greatly! -cuz mine sux
|