Adobe Max 2007 – Chicago – Peter Elst

Adobe Max 2007 – Chicago
Peter Elst – OOP for AS3

Myth – Do you need to use OOP if you are a lone programmer?  YES

Concepts of OOP

  • Classes
  • Inheritence
  • Encapsulation
  • Polymorphism
  • Interfaces

Introducing Design Patterns

What is OOP?

OOP structures code into reusable units that provide a blueprint for any number of instances that are created from it.

In OOP there are

Class = Blueprint
Object = House

 What’s new in AS3?

  • Display List API
  • DOM3 Event Model
  • ECMScript for XML(E4X) – easy way to query XML
  • Runtime Error Checking – Prevents you from making major mistakes
  • Regular Expressions –
  • Method Closures
  • Protected Scope
  • etc…

Classes

  • Classes describe an object using properties and methods
  • Anynumber of instnace can be created from

Inheritance

  •  Allows you to extend classes, propeties of a super class(i.e. the clas which to extend
  • AS3 classes require the override keyword to override methods or por
  • The final keywords disallows for any extending of classes

Inheritance vs. Composiion

  • Composition does not extend a class but instantiates it at runtime.
  • Inheritance is used for an ‘is a’ relationship, whereas composition typically implies a ‘has a’ relationship
  • Composition gives control over creation and destruction and garbage collections

Encapsulation

  • Allows you to protect the inner workings of a class through the use of access modifiers
  • Provide an API to interact with your class through getter/setter methods
  • Keywords
    • public – accessible everywhere
    • private -only accessible within class
    • protected -within class and derivative classes
    • internal – accessible within same package

Polymorphism – (the easiest concept in OOP)

  • Allows different classes to respond to same method names with their own implementation.
  • Common mehtod names make classes interchangeable at runtime.
  • Uses override to change the function at runtime

Interfaces

  • Allows you to specify a set f methods that classes are required to implement
  • Classes can implement multiple interfaces, interfaces can extend each other
  • Interfaces can be seen as contracts to be developed against.
  • Interfaces just implements a list of code

    public interface Cat implements (IAnimal, ICuteness)

Patterns

Observer Pattern

  • Don’t make any references to the classes that you listening to.

Singleton

  • Eables a class to have just one instanceaccessible through a static method
  • Singleton classes provide a global point of access
  • AS3 doesn’t yet allow constructors to be private so you must do an if statement to check if it has already been called.
Posted in Uncategorized

Adobe Max 2007 – Chicago

Adobe Max 2007 – Chicago
Keynote – Kevin Lynch

Announced the Adobe Developer Connection

IntroNetworks has their next generation app online transformed into a Flex app.

This is the 30th Anniversary

80’s people put their stuff on floppies,
90’s Copmact Disc was the new format
2000’s everything is now on the web and the hey are now Swank Rich Internet Apps

Shatanu Narayen

We believe that the time is right for the flexibility of the web and the power of the desktop.  We need to make the customer front and center.  Great digital experiences are more the exception than the rule, even today.  I would like to share 5 experiences.

  1. Content is king.  Sometimes the wrapper is a barrier.  Don’t develop the interface first but rahter the build around the content.
  2. Make it personal.  – Deliver when and where people want.  Specifically phones. Example showed that the focus on multimedia, video, pictures, and social life.  If you can adap the software to the user you will have customer loyalty.
  3. Less is (still) More – Focus on the heart of the problem and make it simple.  Premiere Express is made so that anyone can edit video.  It is software as a service. He showed that with a few drag  focus on a few things and do them really well.
  4. Movement has Meaning – make the actions meet the users expectation.  He showed the Adobe Media Player with the ‘Glide UI’ that makes your eyes track.
  5. Create an Experience Not a UI – Showed California Bike Tour, integrated video with GPS info and added Flickr images and chat into one experience.  Make it engagin

Technology is finally catching up with our vision.  We can make the whole digital experience what we dremed in the past.

Kevin Lynch –

Video – 70% of all video on the web is Flash.  Flash is the number one standard on PC’s.
H.264 is now embedded in the Flash Player.  Yahoo showed a movie about how they can point their appdirectly at their h.264 content and it will just play without any additional transcoding.

A huge upgrade to the Flash player and video

  • h.264 support
  • upt to 1080p on video (the quality is amazing compared to 480p)Halo3 site is full video and interactivity
  • Building desktop video app with AIR – CBS, PBS, etc… The Adobe MediaPlayer will pull all content into an easy to experience.
  • Adobe media player is available today.
  • Flash Lite3 is coming out soon
  • 300,000,000 phones have Flash.  1 billion by 2010.  Video will play the same with mobile phones and Flash lite and FLash media server with downloaded or streamed content.  Download next month.
  • United way connects people to help as disasters happen.
  • Cold Fusion 8 just came out.

Scott Fegette / Ben Forte

In one week they created many things on  the United way site.  They combined a form that then output a PDF that gave a personal document based on user input.

Spry Framework 1.6 available today on Adobe Labs.

AIR – One guy wrote an AIR app that does drag and drop of vCards that then pulls in a

Beta2 of AIR and Flex3 and Flash Authoring AIR extension are available today.  300,000 downloads of AIR to date.

Hiedi Wiliams – Four of the new features

  1. Performance profiling – Can look at all
  2. Language intelligence – Refactoring – refactor/rename.  With a single click of a button the
  3. Advanced Data Visualization Components –
  4. Flex Framework caching – A 500k app is now 300k.  The framework is only downloaded once.  Download the beta of Flex3 on Labs.

AIR Developers Derby

spaz.AIR – a twitter cllietn

Ora Time Tracker

Agile Agenda – The winner of the AIR Developers Derby.  It is a great little project management tool that is really simple to use.

Search Coders

Digimix

Ebay is launching their new interface as an AIR app.

AOL is developing  a great new AIR app

Cary Gibaldi/Bob Ott

Adobe AIR gives the best experiential app for Disney Travel, agents and travelers.  The demo showed drag and drop from the dashboard, images from the desktop, text from a PDF.  He then compiled a PDF directly from the app that was custom made.

Kevin Lynch

Showed tweetr a new app that is a twitter inteface

Snipage

Pronto

Google Analytics is now an AIR app as well.

Paypal has an AIR app for all of their API’s  You can darag and drop between AIR apps.

FaceBook chat called WaveIM

DigiMix will save wav files

Nickelodeon has a puzzle app that you find the pieces on the web and drag and drop the pieces from the web into the  AIR app.

Buzzword – A robust word editor that Adobe just acquired.  IT is collaborative, you can wrap images, you can open word docs and pagination.  It runs Flash player, Flex builder Flash and AIR.

MTV is making an Adobe AIR Challenge. Sign up today.

Anthropologie has a really terrific app to find clothes, match with colors or

Next version of Flash is called Astro.

Emmy Hunag/ Justin Everett Church – Astro

New Text Capabilities

ActionScript Text Components

Left to right languages break appropriatley even in a right to left language blocks, column breaks,

New 3D Effects

  • Simple API for Transforming display objects in 3D space – We will now have Z rotation as well as Z and Y.
  • Full interactivity
  • High Perfomrance

New Custom Filters, Blend Modes and Fills

We can create filters today because it is already on Labs.  The language for creating filters is called Hydra.  Hydra is a pixel shader.  You can adjust color samples,

Posted in Uncategorized