PubNub Flash-based APIs
JavaScript ActionScript Java HTML Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ANE
demoApp
demoAppAir
docs
pubnub-as2js-proxy
pubnublib
screenshots
unitest
.gitignore
CHANGELOG
LICENSE
README.md

README.md

YOU MUST HAVE A PUBNUB ACCOUNT TO USE THE API.

http://www.pubnub.com/account

Additional Docs

https://www.pubnub.com/docs/flash-actionscript/pubnub-actionscript-sdk provides tutorials and API reference for using the PubNub Flash SDK in your app. For more platform specific documentation details, please see the README in each associated sub-directory.

PubNub 3.6 Real-time Cloud Push API - AS3, Flex, and Air

PubNub is a blazingly fast cloud-hosted messaging service for building real-time web and mobile apps. Hundreds of apps and thousands of developers rely on PubNub for delivering human-perceptive real-time experiences that scale to millions of users worldwide. PubNub delivers the infrastructure needed to build amazing MMO games, social apps, business collaborative solutions, and more.

Starting from version 3.5 Flash API is a complete rewrite, and is not compatible with older PubNub Flash/AS3 clients!

Flash Example App

An example app is available in the demoApp directory. To set it up from scratch, perform the following steps:

  1. Clone repository
# Checkout repo into a local folder
$ git clone https://github.com/pubnub/flash.git ./pubnub-flash
  1. Set Flash Builder workspace to match root folder of repository

ScreenShot

  1. Import builder projects from folders pubnublib and demoApp, they are in repository root

ScreenShot

ScreenShot

ScreenShot

  1. Set up HTTP to work with the demoApp project. Don't forget to press Validate Configuration button

ScreenShot

  1. Create and launch WebApplication configuration for the demoApp project

ScreenShot

ScreenShot

  1. Browser should load demoApp project and connect to flash_channel automatically. Subscribe button should turn inactive from that point.

ScreenShot

Air Example App

  1. Clone repository
# Checkout repo into a local folder
$ git clone https://github.com/pubnub/flash.git ./pubnub-flash
  1. Set Flash Builder workspace to match root folder of repository
  2. Import builder project from demoAppAir folder, it is in repository root

ScreenShot

  1. Create and launch DesktopApplication configuration for demoAppAir

ScreenShot

  1. Upon launch, app should automatically connect to default channel. Subscribe button should turn inactive.

ScreenShot