Username or E-mail
Password (Forgot?)
New? Sign Up
Join or Sign In
Forums Stencylpedia Stencyl TV Translations Go Pro - Plans & Pricing Download Stencyl


Switch to Book Layout

1: Getting Started

  • Getting Started
  • Crash Course
  • Crash Course 2
  • StencylForge

2: Building Logic

  • What is a Behavior?
  • Creating a Behavior
  • Attributes
  • Game Attributes
  • Attribute Types
  • Events
  • Our Behaviors

3: Actors

  • What are Actors?
  • Animations
  • Motion & Forces
  • Physics
  • Controls
  • Collisions & Groups
  • Killing vs. Recycling
  • Tweening
  • Effects
  • Chapter 3 Challenge

4: Scenes

  • Scene Basics
  • The Camera
  • Tilesets
  • Regions
  • Drawing Text & HUDs
  • Changing Scenes
  • Music, Sounds & Channels
  • Backgrounds
  • Customizing Actors
  • Chapter 4 Challenge

5: Game Mechanics

  • Saving
  • Pausing
  • 3rd Party Services
  • Web Requests

6: Advanced Topics

  • Get/Set Attributes
  • Custom Events
  • Blending Modes
  • Lists
  • Custom Blocks
  • Continuous Collisions

7: Testing & Tuning

  • Testing Games
  • Optimizing Performance 1
  • Optimizing Performance 2

8: The Last 10%

  • Flash Publishing
  • Standalone Apps
  • iOS App Store
  • Chrome Store
  • Making Money

M1: Mobile - Intro

  • Getting Started
  • Testing on your Device
  • Flash -> iOS Guide

M2: Mobile - Basics

  • Atlases
  • Drawing Text
  • Retina Display
  • Accelerometer
  • Joystick
  • Universal Games

M3: Mobile - Services

  • iAds
  • Game Center
  • In-App Purchases

M4: Mobile - Publishing

  • Debugging
  • Publishing to the App Store
  • Optimizing Performance
  • Promoting your Game

A: Troubleshooting

  • Showstoppers
  • General FAQ
  • iOS FAQ
  • The 90% Memory Warning
  • Recovering Broken Games
  • Can't Export to SWF
  • Reloading Documents
  • Generating Logs
  • Flash Security Settings
  • How to Report Bugs

B: How-To Guides

  • Importing Assets
  • Scene Designer
  • Code Mode
  • Font Editor
  • Pencyl (Image Editor)
  • Tile Editor (Shapes)
  • Game Cleaner

C: Reference

  • Glossary
  • Block Reference
  • Useful Shortcuts
  • Stencyl API

D: Resources

  • Stencyl TV
  • Abigayl's Guides
  • Giving Critiques
  • Creating Extensions
  • Translating Stencyl
  • Credits

3.0 Drafts (In Progress)

  • What's New in Stencyl 3.0?
  • Setup (Android)
  • Setup (Desktop)
  • Setup (iOS) - Concepts
  • Setup (iOS) - Mac
  • Setup (iOS) - Windows
  • Testing iOS on Windows
  • iOS Troubleshooter

  • Mobile App Scaling
  • Full Screen Mode
  • Simple Physics
  • Backgrounding an App

  • iOS App Store
  • Mac App Store
  • Windows Store
  • Google Play
  • HTML5

  • Android Ads
  • Android Purchases (WIP)
  • 4" Form Factor (iPhone 5)
  • Mobile Input
  • Mobile Features

  • Extending the Engine
  • iOS / Android Extensions
  • Developing the Official Extensions
  • Developing the Engine

  • iAds (Revised)
  • Game Center (Revised)
  • iOS Purchases (Revised)
  • Atlases (Revised)
  • Drawing Text (Revised)
  • Joystick (Revised)
  • Accelerometer (Revised)
  • Sounds (Revised, WIP)
  • Debugging (Revised, WIP)
  • iOS Performance (Revised)
Level: Beginner

Publishing a Flash Game

Publishing your game to Flash is a quick, one-click procedure.

So why is this article so long? We'll cover some topics related to publishing as well as some gotchas that you may run into if you're unlucky.

 

Contents

  • Publish to SWF
  • Arcade
  • Removing the Splash Screen
  • Site Locking
  • Recommended Sites
  • Troubleshooting (sound, compiler)

 

Publish to SWF

A SWF (Shockwave Flash) file is the container file for your game. This is the file that you upload to portals such as Kongregate.

1) To export a SWF, click on the Publish button in the toolbar.

2) Then select Flash.

Publish Flash Game

After a brief waiting time, your SWF will export. That's it!

 

Publish to Stencyl Arcade

In addition to publishing a SWF, you can publish your game directly to our Arcade to share it with the community and receive useful feedback.

1) Click on the Publish button in the toolbar.

2) Select Stencyl Arcade
 

This will generate the SWF behind the scenes and automatically upload it to our site. If you've already published this game in the past, it will update the existing entry by default.

Note: On occasion, your game will refuse to update and will be forced to publish anew. If you'd like to get a solution to this, post on the forums and let us know about it.

 

Removing the Splash Screen

Every Flash game published with Stencyl has a choice between a badge on the preloader or a pre-game splash screen.

If you'd like to remove this branding, purchase a Stencyl Pro license, which includes other benefits besides splash screen removal.

 

Site Locking

If your game is popular, people will snatch it and upload it to other sites, causing you to give others ad revenue off your game without your permission.

This can be deterred through site locking, a feature that prevents the game from starting if it's hosted on a different domain from any on a "whitelist" that you create.

1) In the Settings dialog with your game open, click on Loader button on the left sidebar.

Settings Loader Button

2) Fill in the sites that you want the game to work on. If you have multiple, put a comma between them (the space does not matter either way).

kongregate.com,newgrounds.com



 

Recommended Sites

When publishing your game, consider the following sites to upload to.

  • Kongregate. The king of Flash game portals. Developer-friendly, ad revenue share and a more hardcore audience.
  • Newgrounds. A long standing and popular Flash content and games site. The owner particularly is on the lookout for great Stencyl games to sponsor and has sponsored 2 to date and is looking at more.

 

Troubleshooting

On occasion, your game will fail to export. Sometimes, it will appear to "hang" at around the 25% mark without throwing an error in the application itself.
 

If this is happening, in over 90% of cases, it's due to an incompatible sound.

If you remove sounds from your game until it successfully exports, you can identify which sound is at fault. Once you do, a safe solution is simply to re-export it from a program such as Audacity while taking heed of the basic requirements of sounds that we talked about in the Sounds article.

  • 44.1 KHz
  • 16-bit
  • Constant bitrate (versus VBR)
  • No metadata

If you have removed all sounds, and your game still fails to export (silently), let us know on the forums
 

No Write Permissions

A second, less common cause is that the game is able to export to a SWF (you get a file chooser dialog) but fails to write the SWF out to the location you picked. This can be caused by insufficient file permissions. Choose a directory to which you can save files out to.

 



Last Updated: 2012-07-24 by Ceric

11213 have read this article
Disclaimer: The Stencyl Team does not actively monitor comments on articles. If you're seeking help for your game, please ask a question on the forums. Thanks!
3 Comments
frankbwalsh
How do i adjust images for smooth resizing. Easy to do in flash, but I don't see a setting in stencyl that allows me to publish to a flash file that has smooth resizing.
0 9 months, 2 weeks ago
Tikiana
How do I remove the site locking?
0 1 year, 5 days ago
Kasofa
This article is informative, but having the solution to the Stencyl Arcade failing to update would be good to include, and also reduce possible redundant forum posts. Could someone please add this, or explain a little bit more?
0 1 year, 2 weeks ago



Commenting Guidelines

Sign In to Comment

Make Games

  • What is Stencyl?
  • Roadmap
  • Pricing

Play

  • Arcade
  • Showcase

Community

  • Forums
  • Chat
  • Translations

Help

  • Stencylpedia
  • Stencyl TV

About Us

  • Blog
  • Contact Us
  • Press
  • Privacy
Follow Stencyl on Twitter



© 2013 Stencyl, LLC.