Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
// To add a button to toggle fullscreen // Add the following function after the resizeSite function (line 76) function toggleFullScreen():Void { if(Stage["displayState"] == "normal") { Stage["displayState"] = "fullScreen"; } else { Stage["displayState"] = "normal"; } } // Then add this code for your fullscreen button yourFullscreen_btn.onRelease = function() { toggleFullScreen(); };
This paste will be private.
From the Design Piracy series on my blog: