PlayerIO

The fastest way to build online games without breaking a sweat.

ActionScript3 Reference

actionscript 3 GameFS class informationClass GameFS

Namespace: playerio
Language: ActionScript 3

Allows developers to access files stored in GameFS

Example

Example of how to request the file game.swf from your games GameFS via client

Methods

 
public
getUrl (path:String, secure:Boolean = false):String

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

GameFS.getUrl

public
getUrl (path:String, secure:Boolean = false):String

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

Arguments

path:String
The path of the file in the GameFS, including the initial slash. Examples: '/mygame.swf' or '/characters/bob.jpg'
secure:Boolean (Default = false)
If true, this method returns a secure (https) url.