Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Load Html File Into Target Area?



does any body know if it is possible to load an html file into flash?on (release) { loadMovie("loadme.html", "_root.loadarea");}I have a site that displays images and text using php. I guess that i can introduce the php code directly into flash???? instead of importing the whole html file.any advise would be wicked.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-18-2006, 06:27 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Load Internal Symbol Into Target Area
How do you load an Internal Symbol into a target area? And yes i have checked pervious post and web sites but i can't find the answer.

Load Internal Symbol Into Target Area
How do you load an Internal Symbol into a target area? And yes i have checked pervious post and web sites but i can't find the answer.

.txt File Wont Load Into Scroll Area, Help?
i have a mc class01_mc, inside is scroller_mc, inside that is myText_txt.
on the time line of scroller_mc, i have this code to load the .txt file :


Code:
myData = new LoadVars();
myData.onLoad = function() {
_root.class01_mc.scroller_mc.myText_txt.text = this.myVariable;
};
myData.load("class01.txt");
i am able to load the .txt file normally when its just sitting in class01_mc, but i want it to load into scroller_mc so that is is scrollable

any help?

thanks

affix-

A Scrolling HTML File Inside Of .swf Text Area
Can somebody please help me. I want to load an HTML file inside of a text box w/ a scroll bar.

Is it possible in AS3? Is this simply under loading external file into text area?

How can I get this to work?

Any examples, code, tutorials, or links would be greatly appreciated?

I am struggling to get this effect ( a .swf file that has a scrolling text area which looks like HTML (text, images, and links) scrolling, with selectable text.






























Edited: 08/05/2008 at 12:31:42 AM by jntSpecialty

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?

Its Posible Load Target Mc From Other Swf File ?
Its posible load target mc from other swf file ? If its posible please tell me how to do it. Thnx

Can I Load A Html File By Flash Link To An Html Iframe ?
Is it possible to create links in a flashmovie and force them to show several html-files in to a iframe, defined by the html document, which loaded the movie up ?? ( sorry 4 my bad english )

Load External Swf Into A Specific Area And Confine Interactivity To That Area... ?
Hello again,

I have a problem I've been trying to solve below.


I have a file that loads external swf files onto the screen, but I need these swfs to load into a specific 1024x644 area in the main movie.

I need the external swfs to maintain their interactivity while the mouse is over their area, but not when the mouse is over other parts of the screen (I need other buttons to still be accessible outside the area of the loaded swf.

As it is now, the mouse properties of the loaded swf take over the entire movie and render the buttons useless.

Below is some code I'm using. Can anyone provide examples of code that positions an external swf into a specific area and contains its interactivity?

I'm still very new to AS, so it's difficult for me to understand how to do things without specific code examples to look at. Also, if my code is inefficient or sloppy, please let me know.

Thanks.


var loader:Loader = new Loader();

function buttonPush1(event:MouseEvent):void {
var url:URLRequest = new URLRequest("mousetrail_644.swf");
loader.load(url);
this.addChild(loader);
}

Btn1.addEventListener(MouseEvent.CLICK, buttonPush1);

function buttonPush2(event:MouseEvent):void {
var url:URLRequest = new URLRequest("magnify2.swf");
loader.load(url);
this.addChild(loader);
}

Btn2.addEventListener(MouseEvent.CLICK, buttonPush2);

function buttonPush3(event:MouseEvent):void {
var url:URLRequest = new URLRequest("mapcursor_644_2.swf");
loader.load(url);
this.addChild(loader);
}

Btn3.addEventListener(MouseEvent.CLICK, buttonPush3);

function accessDenied(event:MouseEvent):void {
gotoAndPlay("scanner_denied");
}

Btn4.addEventListener(MouseEvent.CLICK, accessDenied);

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

How To Load Xml File Into Html File Via Flash?
how to load many different xml files into html files via only one flash file? using parameter? can give some examples or reference links? Hope to hear good news soon. thanx.

Open Swf In A Certain Target Area
Hello:-)
How can I open a 2.swf in another 1.swf in the way that it opens in a certain defined area of 1.swf?

Thanks!

Drag Onto Target Area
Hello, I'm having trouble getting Flash (MX) to recognize when i've dropped my MC onto another one. I've tried a few tutorials on it here and the one at actionscript.org, but i'm still not quite getting it. Ok, here's what I have:

Dragging Movieclip = mc1
Target Movieclip = mc2

on mc1:


Quote:





on (press) {
startDrag (lockcenter)
}
on (release) {
stopDrag ();
if (mc1._droptarget == "mc2") {
mc1._visible = false;
}
}






I'm not sure exactly why this isn't working, so if anyone could help me out i'd really appreciate it.

Target In Extended Hit Area?
Hi.
I am useing the following code to extand the hit area of a mc

onClipEvent (load) {
//is the cursor over the movie clip
previouslyOver = false;
}
onClipEvent (enterFrame) {
currentlyOver = this.hitTest(_root._xmouse, _root._ymouse, true);
//if there is a change, go to another frame
if (!previouslyOver and currentlyOver) {
previouslyOver = true;
this.gotoAndStop("in");
} else if (previouslyOver and !currentlyOver) {
previouslyOver = false;
this.gotoAndStop("out");
}
}



on the "in" frame i have a btn/mc that i would like to active form the main timeline when i click it. i am useing the folloing code for that but it dosent seems to work unless the btn/mc is visabla on the first frame of the "hit_mc" movie

_root.hit_mc.my_mc.onRelease = function() {
trace("click")
}

I had used this code in the past and it seems to work fine then, any idea what am i doing wrong?

Thanks!!!
A

Is There No Way To Load An HTML File?
I want to be able to pull text from an .html page into a flash movie...can this be done or no? I can't seem to find anything about it!??

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. =)

Target Area Effect While Still Dragging
Flash MX 2004. My drag and drop is working fine, but now I want the target area to highlight or something while the mouse is over it but not released yet, like its confirming the target area I want to drop in. The target area is several irregular polygon shapes. I would prefer if the target area would show an outline around the area.

My button try didn't work because I'm already pressed down on another button (the one I'm dragging).

Thanks,
Jim

Target Area Effect While Still Dragging
Flash MX 2004. My drag and drop is working fine, but now I want the target area to highlight or something while the mouse is over it but not released yet, like its confirming the target area I want to drop in. The target area is several irregular polygon shapes. I would prefer if the target area would show an outline around the area.

My button try didn't work because I'm already pressed down on another button (the one I'm dragging).

Thanks,
Jim

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?

Can I Load A HTML File In FLASH, If So Can Someone Tell Me How?
Can I load a HTML file in FLASH, if so can someone tell me how?

I'm using flashMX

Can I Load A HTML File In FLASH, If So Can Someone Tell Me How?
Can I load a HTML file in FLASH, if so can someone tell me how?

I'm Using Flash MX

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

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

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

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

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

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

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?

Preloader To Load An Html File?


hi,

how do i use my preloader to load a simple html file?

pls help me.

TIA!


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

Scroll Loaded .swf Files In Target Area
i am trying to make loaded movie clips scrollable up and down. the scrolling will be controled by buttons (an up and down button).

the problem i'm having is targeting externally loaded swf files to make them scroll.

i attached the fla i got so far.

can someone please get it working for me, it's driving me nuts.

Mouse Trailer With Confined Target Area
I'm trying to modify a mouse trailer I've found somewhere else so that it only reacts within a specific area on the flash page - say an area 780x549 on a 1024x700 flash file.

Here is the code I am starting with - The file is written in AS2 for Flash 8+


//mouseTrailer
i=0
onMouseMove = function () {
var cur_x = _xmouse;
var cur_y = _ymouse;
var limit = 3;
var min = 30;
var max = 60;
var alfa = 160;
var delta_x = old_x-cur_x;
var delta_y = old_y-cur_y;
var dist = Math.sqrt(delta_x*delta_x+delta_y*delta_y);
old_x = cur_x;
old_y = cur_y;
if (dist>limit) {
i++;
attachMovie("ball", "ball"+i, -510+i);
with (this["ball"+i]) {
var ran = Math.random()*max+min;
var ran2 = Math.random()*alfa-alfa/2;
_rotation = ran2;
_xscale = _yscale=ran;
_x = _parent._xmouse;
_y = _parent._ymouse;
}
}
};

Can anyone please lend a hand? Thank you very much in advance!

Issues In Loading External Swf Into Target Area..
We have planned to do a presentation like http://www.microsoft.com/forefront/e...oducttours.swf and I hope I could manage with the accordion.
But the problem comes in loading of external swfs in the main content area.
Even i am new to action script, I came to know that this involves container movie clip, script for button blah..blah..
I am looking for a step by step tutorial kinda method to follow to achieve this ,as i am new to scripting.
Attached is the so far tried work.

Dynamically Improve The Target Area Of Buttons
In the Macromedia White Paper on Flash usability there is the paragraph:

According to Fitt ’s Law,“The time to acquire a target is a function of the distance to and size of the target.” Simply
stated,this means the bigger a button is the easier it is to click;and the easiest item to click on the screen is one
that is closest to the mouse pointer and largest in screen size.

When designing in Macromedia Flash elements like buttons that interact with the user ’s cursor or mouse arrow
apply to Fitt ’s Law.Navigation elements should be the easy to click.One unique way that Macromedia Flash can
improve the “clickability ” of a button is by using ActionScript to dynamically improve the target area of buttons as
the cursor approaches them.

My question is how do I do this?

I just want to know the actionscript i would need to change the size of a movie clip so that as the mouse gets closer to it, it becomes larger and as the mouse moves away it gets smaller.

thanks

Target JS Button To Target Frame Swf At Different Html...how?
this is my 2nd post regarding this problem, i'm seeking for many input nad perhaps the example soource file/code...

kind like a loading specific frame of swf from a html hiperlink?!? can it be done?

- say we have a 3 frame swf, located at index1.html
- then i have a button(gif/jpeg htmlpage not flash), located at index2.html

- what i wanna do is when i click the button(JS) on index2.html, it will open the index1.html then start play the swf at frame 2 NOT 1(beginning)

how can we do that?

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

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?

Copyright 2005-08 www.BigResource.com, All rights reserved