PDA

View Full Version : external hmltext not working online



ventoline
August 4th, 2008, 11:10 AM
Hi,

I have this page loading external htmltext from html page, runs smoothly offline, but online nothing seems to happen, any idea?

danoise
August 4th, 2008, 11:26 AM
Are you using a local path syntax to point to the file in question?
For online use, you need to use the url syntax.

WRONG: c:\temp\some_document.html <-- windows-style path
CORRECT: /temp/some_document.html

Also, if the document is located on a different server than your swf, you might need a cross-site policy file

To debug your project online, try using the firefox browser with firebug + flashBug

ventoline
August 4th, 2008, 11:37 AM
The files are in the same directory, I wouldn't know how to call the path then else than just the name..

ventoline
August 4th, 2008, 12:10 PM
Is upper/lowercase important in the URL?

I'm trying with the URL, but no nore succes, the first text load though, but doesn't update..

var req:URLRequest = new URLRequest("M4E.html");
mainText.load(req);


function navig(event:MouseEvent) {

var bouton:String =event.currentTarget.name;
req= new URLRequest("http://bem4e.fr/"+event.currentTarget.name +".html");
mainText.load(req);
mainTextField.htmlText = mainText.data; ...

:stare:

Alex Lexcuk
August 4th, 2008, 03:56 PM
>>WRONG: c:\temp\some_document.html <-- windows-style path
>>CORRECT: /temp/some_document.html
This not work in local comp
If want test it in local mashine use Apache Group prog, it's virtual web serber

File well works with internet within one site, or current path example "M4E.html"
http://dnadillo.dn.ua/fla/XML/img-xml.swf
http://dnadillo.dn.ua/fla/XML/mur_xml_file_img.xml