Posts Tagged ‘adobe’

Quick introduction to Flash 10’s built-in 3D


Tuesday, November 10th, 2009

At Microsoft, we’ve been re-working some of our Papervision3D projects into the internal Flash 10 way, and I must say for certain things, it is much better than the external 3D libraries out there. Two of our projects (the unreleased PageCUBE and The Interactive Panel) have benefited big-time! The PageCUBE’s file-size dropped 90% after moving away from the Papervision library.

You can’t do everything with Flash 10’s built-in 3D that you can do with the external 3D libraries, but it’s getting close!

Take a gander at the following video from AdobeTV, I’ve also attached some more resources below.

More resources:

Check out the Adobe Language Reference on the DisplayObject class, this is where all of the new 3D stuff exists.

The new properties are:

  • rotationX : Number
    Indicates the x-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.
  • rotationY : Number
    Indicates the y-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.
  • rotationZ : Number
    Indicates the z-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.
  • scaleZ : Number
    Indicates the depth scale (percentage) of an object as applied from the registration point of the object.

  • z : Number
    Indicates the z coordinate position along the z-axis of the DisplayObject instance relative to the 3D parent container.

The new methods are:

  • globalToLocal3D(point:Point):Vector3D
    Converts a two-dimensional point from the Stage (global) coordinates to a three-dimensional display object’s (local) coordinates.

  • local3DToGlobal(point3d:Vector3D):Point
    Converts a three-dimensional point of the three-dimensional display object’s (local) coordinates to a two-dimensional point in the Stage (global) coordinates.

Z-Sorting

The Z-Index represents the Layers in 3D space. Whatever has a higher z-index is on top.

If you are going to be constructing multiple objects in 3D space with Flash, I highly recommend you download the source files from the GotoAndLearn.com tutorial on the 3D Carousel. You only need the files in com.theflashblog.fp10 called SimpleZSorter.as. This file takes care of the z-sorting in your 3D space. Whatever object is closer to the user, is automatically put to the top of the z-index. It’s an extremely useful tool (Thanks Lee!).

To use it, just import the class, and run a loop (while your 3D objects are moving or changing) that does the sorting:

import com.theflashblog.fp10.SimpleZSorter;
addEventListener(Event.ENTER_FRAME, zSortLoop);
function zSortLoop(e:Event):void {
    // container is the DisplayObject that is the parent of the 3D Objects.
    SimpleZSorter.sortClips(container);
}

Don’t forget to removeEventListener() on the zSortLoop when you are not changing the 3D Objects. This is a best practice that should always be followed…never leave loops running unless they are being used.

Adobe Flash Platform: Social


Tuesday, November 3rd, 2009

SocialAdobe has released a beta version of their service called Social. As the website states:

The Social service enables you to write applications that integrate leading social networks such as Facebook and MySpace into your apps. The service, implemented through an easy to use API, provides an abstraction layer that connects with different networks.

This is big news for anyone who wants to develop for MySpace or Facebook (among others). The API available makes it simple to connect and manipulate social user’s data, including their friends info!

Getting started is easy, just sign up for an API Key, then get to digging in the developers guide. There is also a very good demo of the technology available here.

Supported Networks

Doing something cool with Social? Post your stuff in the comments!

Adobe LiveCycle Collaboration Service


Thursday, October 22nd, 2009

Adobe LiveCycleIf you haven’t been keeping up with Adobe lately, this is one thing you need to check out: LiveCycle Collaboration Service. It’s a module for the Flash Platform that allows you to create real-time, multiuser collaboration tools.

As Adobe points out, you can:

  • Enable VoIP audio — Improve productivity by enabling multiple users in dispersed teams to speak to one another through a browser, without the need to install additional software.
  • Broadcast using webcam video — Meeting hosts and participants can use a webcam to broadcast live video to enhance the effectiveness of overall communication by enabling desktop video conferencing and sharing. Hosts and participants can pause, share, or stop their cameras at any time during the meeting.
  • Offer real-time text chat — Conduct one-on-one or community chat in context within an existing or new application interface without having to launch or run separate desktop chat applications.
  • Collaborate using multiuser whiteboards — Enhance collaborative experiences by providing multiuser whiteboards where users can explore and discover ideas rapidly and dynamically.
  • Synchronize with real-time push messaging — Keep clients synchronized and enable developers to create collaborative portals and applications, ranging from a simple chat box to a complex collaborative application, such as expert consultation with an existing or potential customer, a live support desk, or a multiuser eLearning application.

This is a paid service, and here are the prices, as corlan.org pointed out:

  • Live Stream Bandwidth ($0.49 per GB)
  • Push Messages ($0.10 per 1,000 messages) – count messages sent in to LCCS
  • User Minutes ($0.01 per Hour) – time clients spend connected to LCCS

These prices are pretty low, and could be easily passed off to the end-user through various means.

You can also check out the whole Adobe LiveCycle Enterprise Suite 2, which offers lots of amazing solutions.

I’m very excited about this new service…If you have any related info, drop it in the comments!

Adobe Blogs: Presentation Patterns in Flex


Wednesday, October 21st, 2009

FlashI came across this great article by Paul Williams on the Adobe Blogs. It goes into detail describing quite a few different Presentation Design Patterns for use in Flex (could be used in Flash as well).

Design Patterns, for those who don’t know, are general reusable solutions to commonly occurring problems(Wikipedia). They are a key component of Object Oriented Programming, and is not Actionscript-specific.

The patterns explained (with nice examples and source files) in the article are:

  • Autonomous View
  • Supervising Presenter
  • Presentation Model
  • View Helper
  • Code Behind
  • Passive View

Read through the article, and if you get stuck, drop a comment here and I will try to help out. You will not be disappointed, design patterns are probably your most precious ally when it comes to development.

Adobe’s BrowserLab


Friday, October 16th, 2009

BrowserLabOne of the hardest part of developing websites is getting them to look the same across all browsers. Flash has helped a little bit. But still, its nice to be sure that your site is going to look the same, no matter where its viewed (ahem, IE!).

Along comes BrowserLab, by Adobe. This web-based software allows you to emulate different browsers, and view any site in them! You can even do a side-by-side comparison. If you use Dreamweaver CS4, you can get an extension to test your files in the different browsers.

Their website says that this is an open free preview of their new service, so expect this to cost some money in the future. Good thing about that is, if they are charging for it, you can also expect a bunch of great features to be added!

The following browsers are supported:

  • Firefox 2.0 – Windows XP
  • Firefox 3.0 – Windows XP
  • Internet Explorer 6.0 – Windows XP
  • Internet Explorer 7.0 – Windows XP
  • Internet Explorer 8.0 – Windows XP
  • Safari 3.0 – OS X
  • Safari 4.0 – OS X
  • Firefox 2.0 – OS X
  • Firefox 3.0 – OS X

Adobe has really stepped it up with this one! An AIR app would be perfect! At least we can keep up via @adobebrowserlab.

BrowserLab Screenshot