getUploadPath()

Availability:

Flash Player 7, 8
SmartFoxServer Pro (1.5 or higher)

Usage:

smartFox.getUploadPath()

Description:

Return the current image upload path. It can be used to dynamically load images uploaded by other clients from the embedded web server.

By default the path is: http://127.0.0.1:8080/default/uploads

Parameters:

None

Returns:

Nothing.

Example:

/*
* Dynamically load uploaded images
*/

var url:String = sfs.getUploadPath()
var imgLoader:MovieClipLoader = new MovieClipLoader()
var mc:MovieClip = _root.createEmptyMovieClip("image", 0)

imgLoader.loadClip(url + "myImage.jpg", mc)

See also:

uploadFile