View unanswered posts | View active topics

Reply to topic  [ 1 post ] 
Integrated Web Server 
Author Message

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Since rev 2746 (download dev build) FlashDevelop now features an integrated webserver.

For security reasons web browsers (and especially Chrome) have very restrictive script execution rules when browsing a local url: basically as soon as you use Ajax (ie. as soon as you load a text/xml file) you must run in HTTP, forcing you to setup a local web server.

The web server service is currently provided by Neko (installed with Haxe SDK) which offers a very simple and lightweight http server which can be started from the command line to serve the current directory: 'nekotools server'. This is very similar to 'python -m SimpleHTTPServer'.
Implementation could change completely in the future, the point is that it's lightweight and integrated in FlashDevelop seamlessly.

- For NME/OpenFL projects, FlashDevelop will automatically use the webserver to run the HTML5 target,
- For other Flash/HTML projects, you can select "Web Server" as a new Test Project option in your project properties. FlashDevelop should generally be able to figure what path to serve, but you can click <Edit...> to choose a specific HTML page (enter a local path like 'bin', 'www', or 'bin\otherindex.html' depending on your project organization).

Thu Aug 22, 2013 9:39 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.