Jun 03, 2010

BSS Actionscript Package

Developed over years, matured through a long process of adding, removing rewriting, refining, curating, forgetting, re-adding, improving, collecting, enhancing, rewriting … hours of hard work by an amazing team. The Big Spaceship package is a collection of useful classes that help us to do our basic daily tasks faster so that we have more time to concentrate on the fun stuff.

Here it is, the public Big Spaceship AS3 Repository on github:
http://github.com/bigspaceship/as3

This package is not a full framework for building sites or apps. It does provide some loose organizing and structural principals for combining complex code with rich animations created on the timeline, and it should be able to be integrated into any existing framework. We want everyone to be able to use their preferred design and development environment and code frameworks to ensure a fast way to produce innovative high quality custom work.

We are constantly adding, changing and tweaking the code in this package. There is no documentation at the moment, save for some sparse comments in the code, but soon we will be starting a series of posts here on Labs which will explain how we use various classes and packages. Copies of these posts will also be stored on github.

For now, here is a quick overview of some of the most commonly used packages and classes …

com.bigspaceship.api.facebook
These classes are used for connecting a Flash application to Facebook. Works in conjunction with the Javascript file in the js repository on github.

com.bigspaceship.audio
The AudioManager class is used to quickly add sound effects and music to Flash applications.

com.bigspaceship.display
Most of the classes in this package provide basic functionality and an event model for controlling timeline animations for any UI elements. We generally don’t link library assets directly to existing classes but are using an Object-Composition like approach instead of inheritance, and pass the artwork (DisplayObject, usually a MovieClip) as a parameter to the constructor of a class. The MovieClip should be set up with specific frame labels and code on the timeline to trigger AnimationEvents.

com.bigspaceship.loading
Classes used for loading various assets into Flash applications.

com.bigspaceship.tween
We typically use many of the open source tweening engines that are out there. Each developer on the team has their preferences, but one of our favorites is TweenLite/TweenMax. But we keep some handy custom tween classes in this package as well as Robert Penner’s easing classes for easier reference.

com.bigspaceship.utils
This is a collection of small and very useful helper classes. Some of the most used utilities are Environment, can tell you whether the application is in a browser or not, and what domain it is running on, etc; Lib, used for retrieving assets out of swf libraries; Out, our custom trace wrapper which can use adaptors to output to a variety of 3rd party trace consoles; SimpleSequencer, for sequencing animations and other actions.

So take a look, and check back here soon for more posts about the code.

Share this Post


                           

Comments


Fabian     Aug 19, 2010
Thank your for releasing the package for free. *thumbs up*

cole     Jul 15, 2010
Another thing I noticed is that if I

1. remove your app.

2. Go to your page while logged in

http://apps.facebook.com/oauthbridge_iframe/

Your login btn appears. Is that correct?

When I click it asks me if I want to connect.

Is there a way to not show the login btn if the user is logged in and has not installed your app? Go right to the allow access part of it?


Bas van Kuijck     Jul 15, 2010
Nice package bundle.
Nice to see you guys' coding standards are almost identicall as ours

cole     Jul 14, 2010
I think I found a bug in your Iframe FB code. Or at least a weird user experience. Firefox and IE.

1) Go to your demo app - http://apps.facebook.com/oauthbridge_iframe/
2) Login using your app’s login btn.
3) On success close login window if needed.
4) Refresh page
5) You are logged in, but are presented with the login btn and empty profile image.


It is like you are not getting the session on refresh. I am also seeing lots of weirdness with logging in and out and refreshing the page.
I have tested using your app on Mac and pc with the same erratic results.

Any thoughts?

I thought it was my code so I went back to your app, but got the same results from your demo page.


Thanks for your time,
Cole Peterson


Joshua Hirsch     Jul 12, 2010
@cole Make sure you pull the latest version of the code, and check out the new post about the Facebook code - http://bit.ly/duB6BA

If you are still having issues, add a comment on that post, and we'll help you out.

cole     Jul 11, 2010
I have almost got the facebook code working. I must be missing something.
fb page loads.
click log in btn and log in dialogue box appears.
log in successfully.
and then nothing. the image never loads and the log in btn does not go away.
http://apps.facebook.com/cpeterson_flashtest/
does the app have to be submitted to work?




Nick     Jun 30, 2010
Thought I'd add to the list of requests for Facebook docs!

Özgür ALTAY     Jun 21, 2010
I cant believe you share them 'll!

Thank you Joshua.

(BTW, some doc. would be great for Facebook api)

Moda     Jun 21, 2010
Thank you, great sources in here. I should more follow up bigspaceship blog.

sokak trendleri     Jun 13, 2010
Really good share. Thanks for the tips and resources.

Mads Bjerre     Jun 09, 2010
Awesome, Joshua - thanks for sharing! Noticed that the link for your js repository on github links to your as3 repository - I think it should link to http://github.com/bigspaceship/js, right?

Martin Klausen     Jun 08, 2010
Sweet lord, that looks like a piece of love!

Moda     Jun 08, 2010
Thank you, I have to digg all of it.

Joshua Hirsch     Jun 07, 2010
@Franz funny you should ask. the first post about the code, which is coming this week, will be about some of the Facebook classes.

Franz     Jun 06, 2010
Can you please provide some documentation or example for your facebook integration?

Edwin Toh     Jun 05, 2010
Thanks for sharing! This is amazing!

Juan Jose     Jun 04, 2010
Thanks Joshua for sharing this work, help Flash beginners like me learn more about code creation and agency workflow!

Haungo     Jun 04, 2010
Fantastic! This is good.. I hope it's everything that I assume it is. :]

Andrei Potorac     Jun 04, 2010
Thank you for sharing this! Any way you could also upload some code to see how you guys handle the issue with the fonts? Especially with the special characters.

We could consider the way you do it to be a standard. :P

Peter     Jun 04, 2010
I remember seeing a bss package ages ago and have been trying to track it down ever since. Many thanks for releasing this!

JKaris     Jun 03, 2010
looking forward to looking through this - thanks.

frebro     Jun 03, 2010
Awesome, thanks :)

Antoine     Jun 03, 2010
Awesome ! Thanks for sharing. :)

Marc     Jun 03, 2010
Good stuff...much appreciated!

soung     Jun 03, 2010
Hé, Thank you !

Teksetta     Jun 03, 2010
Thank you so much for sharing...some great tools you've given us to play with.

Tahir Ahmed     Jun 03, 2010
Wow!! I luv to be a part of Flash community .. Thanks Joshua !!

- Tahir.

Ali     Jun 03, 2010
Really !! .. WOW .. thanks A lot :)


Speak






Submit »