In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Load FT Flashvars

Get Adobe Flash player
by Justin.Rath 20 Nov 2014
/**
 * Copyright Justin.Rath ( http://wonderfl.net/user/Justin.Rath )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/4Ie1
 */

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    
    public class FlashTest extends Sprite {
        public function FlashTest() {

            var tempID:String;
            var tempF:String
            var city:String;
            
            var textf:TextField = new TextField();
            stage.addChild(textf);
            

            if(stage.loaderInfo.parameters["ftGeoCity"])
            {
                city = stage.loaderInfo.parameters["ftGeoCity"];
                tempF = stage.loaderInfo.parameters["tempF"];
                tempID = stage.loaderInfo.parameters["tempID"];
                
            }else{    
                city = "Your city";
                tempF = "50";
                tempID = "123";
            }
            
            textf.text = city; 
        }
    }
}