In this folder you will find several examples on how to use the Firebase services with ActionScript 3.
It is strongly recommended to use recent versions of Adobe AIR
and Apache Flex
.
An Apache Flex example that demonstrates how to use the Firebase Database with realtime data and Email auth.
You will require to enable the Email
provider for your project, you will also require the following Database Rules:
{
"rules": {
"messages": {
".read": "auth != null",
".write": "auth != null"
}
}
}
An Apache Flex example that demonstrates how to use the Firebase Database with non realtime data.
You will only require the following Database Rules:
{
"rules": {
"journal": {
".read": "true",
".write": "true"
}
}
}
An Apache Flex example that demonstrates how to use Federated Login with the Firebase Database to manage a private journal. Each user can only read and modify their own journal.
You will require to enable the Facebook
, Twitter
or Google
providers for your project, you will also require the following Database Rules:
{
"rules": {
"journal": {
"$user_id": {
".read": "$user_id === auth.uid",
".write": "$user_id === auth.uid"
}
}
}
}
An Apache Flex example that demonstrates how to use Firebase Auth, Firebase Storage and Firebase Database to store and manage user images. Every user will have their own private folder where they will be able to upload, download and delete their images.
You will require to enable the Email
provider for your project, you will also require the following Database Rules:
{
"rules": {
"images": {
"$user_id": {
".read": "$user_id === auth.uid",
".write": "$user_id === auth.uid"
}
}
}
}
You will require the following Storage Rules:
service firebase.storage {
match /b/<YOUR-PROJECT-ID>.appspot.com/o {
match /images/{userId}/{allPaths=**} {
allow read, write: if request.auth.uid == userId;
}
}
}
An Apache Flex example that demonstrates how to use Firebase Storage to store any kind of files and show a progress indicator.
You will require the following Storage Rules:
service firebase.storage {
match /b/<YOUR-PROJECT-ID>.appspot.com/o {
match /public_files/{allPaths=**} {
allow read, write;
}
}
}
An Apache Flex example that demonstrates how to perform most operations from the Email Auth service.
You will only require to provide your Firebase API Key and enable the Email & Password
auth provider.
An Apache Flex example that demonstrates how to perform log-in using Google, Twitter and Facebook providers within the same app.
You will only require to provide your Firebase API Key and enable the providers of your choice.
Main repository: ToDo App
ToDo App is a mobile application developed with Starling Framework and FeathersUI. It showcases how to use Firebase services with ActionScript to create simple and secure CRUD system.
Main repository: Pizza App
Pizza App is a mobile application developed with Starling Framework and FeathersUI. It showcases how to use Firebase services with ActionScript to create a small social network.