Thermophobia, Electrophobia, Cibophobia or maybe Polyphobia…draw your own Rorschach picture, ink blots,with this Flash actionscript3 test I made to see what your phobia is. (its just for fun folks, not real)

http://www.smithmediafusion.com/DG/ink/dripTest/DevSource/inkblots.html

Here’s a little Flash AS3 (ActionScript 3) function that returns a random number in a range given two numbers. Comes in handy when doing many things that require random values within a set range.

function randomRange(minNum:Number, maxNum:Number):Number {
var myRandomNum:Number = Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum;
return myRandomNum;
}

//usuage
randomRange(2,22);

The Flash Actionscript 3 Matrix class represents a transformation matrix that determines how to map points from one coordinate space to another. You can perform various graphical transformations on a display object by setting the properties of a Matrix object, applying that Matrix object to the matrix property of a Transform object, and then applying that Transform object as the transform property of the display object. These transformation functions include translation (x and y repositioning), rotation, scaling, and skewing.

Here’s a sample that uses the Matrix class to flip a Movie Clip horizontally:

function flipHorizontal(dsp:DisplayObject):void {
var matrix:Matrix=dsp.transform.matrix;
matrix.transformPoint(new Point(dsp.width/2,dsp.height/2));
if (matrix.a>0) {
matrix.a=-1*matrix.a;
matrix.tx=dsp.width+dsp.x;
} else {
matrix.a=-1*matrix.a;
matrix.tx=dsp.x-dsp.width;
}
dsp.transform.matrix=matrix;
}

//usuage
flipHorizontal(myMC)

Not all errors in ActionScript 3 happen when you call a function. Some errors can occur sometime after the call. A common example of this is loading content from the web like XML or other content. Here is a sample of how to catch these types of errors

var myLoader:URLLoader = new URLLoader();

myLoader.addEventListener(IOErrorEvent.IO_ERROR, catchIOError);
function catchIOError(event:IOErrorEvent){
trace("Error caught: "+event.type);
}

myLoader.load(new URLRequest("Invalid XML URL"));
trace("Error, continuing...");

This will output:
Error, continuing...
Error caught: ioError

Here’s a little Flash AS3 snippet that listens for the pressing of ENTER key using the Keyboard even listener.

this.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyEnterHandler);
function keyEnterHandler(event : KeyboardEvent) : void
{
if (event.keyCode == Keyboard.ENTER)
{
returnSavings_mc.visible=true;
}
}

You need to get this Flash book: ActionScript 3.0 for Adobe Flash CS4 Professional Classroom in a Book. CLICK HERE TO GET IT.

Here’s what it’s all about: The fastest, easiest, most comprehensive way to learn ActionScript® 3.0 for Adobe Flash CS4 Professional

ActionScript® 3.0 for Adobe Flash CS4 Professional Classroom in a Book contains 14 lessons. The book covers the basics of learning ActionScript and provides countless tips and techniques to help you become more productive. You can follow the book from start to finish or choose only those lessons that interest you.

Learn to add interactivity to Flash files using ActionScript 3.0: Control timelines and animation, write event-handling functions, and control loading of and interaction with data, text, video, sound, and images.

“The Classroom in a Book series is by far the best training material on the market. Everything you need to master the software is included: clear explanations of each lesson, step-by-step instructions, and the project files for the students.” —Barbara Binder, Adobe Certified Instructor, Rocky Mountain Training

Classroom in a Book®, the best-selling series of hands-on software training workbooks, helps you learn the features of Adobe software quickly and easily. Classroom in a Book offers what no other book or training program does—an official training series from Adobe Systems Incorporated, developed with the support of Adobe product experts.

At the MAX conference yesterday, Adobe announced that designers and developers will be able to use Adobe Flash Professional CS5 to create rich, interactive applications for the iPhone and iPod Touch.

This is NOT Flash Player running on the iPhone. There is no new information about Flash Player on the iPhone. This announcement means that Flash designers and developers can use Flash Professional CS5 and ActionScript 3 to build native applications that can be distributed and downloaded via the Apple App Store.

This new feature was demonstrated in a sneak peak of Flash Professional CS5. The new features of Flash Professional CS5 also include a new text engine for creative freedom and control with text, XML based FLAs to boost team collaboration on projects, prebuilt code snippets for rapidly adding interactivity, as well as integrations with Adobe Flash Builder to improve ActionScript editing. A beta of Flash Professional CS5 will be available later this year via Adobe Labs.

Adobe announces ability to publish ActionScript 3 projects to run as native iPhone apps. More info at http://www.adobe.com/go/iphone

Adobe Flash Pro CS5 beta coming, supporting native iPhone apps. Sign up and more info at http://www.adobe.com/go/flashprobeta

You can learn more about this announcement in the FAQ below as well as in the following places • Adobe News Room (http://www.adobe.com/aboutadobe/pressroom/) •

Information about apps for iPhone on Adobe Labs (http://www.adobe.com/go/iphone) • Information about Flash Professional CS5 on Adobe Labs (http://www.adobe.com/go/flashprobeta)

More about Flash Professional CS5

What did Adobe announce at MAX regarding Flash Professional?
Adobe previewed an early version of the next major version of Flash, Adobe Flash Professional CS5. Adobe also announced that a public beta of Flash Professional CS5 will be available for download from Adobe Labs later this year. That beta will include support for the ability to compile ActionScript 3® projects in Adobe Flash Professional to run as applications for iPhone. Interested designers and developers can go to Adobe Labs to sign up and to be notified when the beta is available.

What are the new features of Flash Professional CS5?
There are many new and exciting features in Flash Professional CS5. These include
• New text capabilities via the Text Layout Framework (TLF). Get unprecedented control and creativity with text in Flash projects. Advanced styling and layout, including right to left text, columns, threaded text blocks let you work with text in Flash like never before.
• XML based FLA files let you manage and modify project assets using source control systems, and enable teams to easily collaborate on files.
• Code Snippets panel provides pre-built code that can be injected into projects for greater interactivity and also reduces the ActionScript 3 learning curve. The panel includes code for timeline navigation (ie: click to go to the next scene) actions (ie: drag and drop), animation (ie: move with keyboard arrows), audio and video, event handlers (ie: mouse events) and loading and unloading of assets.
• Flash Builder integration. Use Flash Builder to write ActionScript code within Flash projects.
• Improved ActionScript editor, including custom class code-hinting and completion

When will the Flash Professional CS5 beta be available for download?
The beta will be available for download from Adobe Labs before the end of 2009. How much will Flash Professional CS5 or Creative Suite cost? We are not announcing any pricing at this time. Where can customers go to be notified when the beta is available? You can sign up to be notified: https://www.adobe.com/cfusion/mmfor/index.cfm?name=fpcs5_notify

More information about applications for iPhone
Q: When will Adobe Flash Platform tooling support building applications for iPhone?
A public beta of Flash Professional CS5 including support for building applications for iPhone is planned for later this year. Sign up to be notified when the beta is available.: https://www.adobe.com/cfusion/mmform/index.cfm?name=fpcs5_notify

Q: How does the Flash Platform tooling update help developers?

The tooling update allows developers to use Flash technologies to develop content for iPhone and iPod touch, devices that were previously closed to them. Developers can write new code or reuse existing web content to build applications for iPhone. Because the source code and assets are reusable across the Flash Platform runtimes,—Adobe AIR and Flash Player—it also gives developers a way to more easily target other mobile and desktop environments.

Q: How is this different from Adobe Flash Player 10 coming to iPhone? Will iPhone users be able to view web content built with Flash technology in the iPhone browser?

The new support for iPhone applications in the Flash Platform tooling will not allow iPhone users to browse web content built with Flash technology on iPhone, but it may allow developers to repackage existing web content as applications for iPhone if they choose to do so. Flash Player uses a just-in-time compiler and virtual machine within a browser plug-in to play back content on websites. Those technologies are not allowed on the iPhone at this time, so a Flash Player for iPhone is not being made available today. Flash Professional CS5 will enable developers to build applications for iPhone that are installed as native applications. Users will be able to access the apps after downloading them from Apple’s App Store and installing them on iPhone or iPod touch.

Q: Can applications for iPhone built with Flash Platform tooling be delivered through Apple’s App Store?

Yes. Developers can deliver applications built with Flash Platform tooling just like any other iPhone application. This will require the developer to be a member of the iPhone Developer Program and follow the program guidelines.

Q: Do developers need to participate in Apple’s iPhone Developer Program in order to develop or deploy applications for iPhone using the Flash Platform tools?

Yes. A developer certificate from Apple is required in order to test and deploy applications to iPhone. Apple provides information on its developer programs at http://developer.apple.com/iphone/.

Q: Are applications for iPhone built with Flash Platform tools interpreted at runtime?

No. iPhone applications built with Flash Platform tools are compiled into standard, native iPhone executables, just like any other iPhone application.

Q: Can applications load SWF files or other code at runtime, such as a module from a website?

No. iPhone applications built with Flash Platform tools are compiled into standard, native iPhone executable packages and there is no runtime interpreter that could be used to run ActionScript bytecode within the application.

Q: Which version of the iPhone SDK/operating system is supported by the applications?

Applications can be built targeting iPhone OS 3.0 and later.

Q: Will applications built with Flash Platform tools work on iPod touch? iPhone 1.0? iPhone 3G? iPhone 3GS?

Applications should work on all iPhone and iPod touch devices. However, as the hardware specifications of the devices are widely divergent, content performance may vary between devices and device generations.

Looking for Adobe Flash actionscript 3 helps? Check out: http://dsmith.tv/

What: Flash AS3 dynamic video player

The Jest: Video player that pulls data from xml source and plays advertisements after x number of videos

see it in action, click here.

I’ve just received word that John Davey who runs the Flash on The Beach Conference (http://www.flashonthebeach.com) is having a 48 hour recession madness ticket sale for FotB Miami which runs April 6-8 2009, South Beach, Miami.

Flash on the BeachFor the next 48 hours only – ending at midnight PST on Wednesday 14th January. A full 3 day pass is only $99 with the following code:

RSKNUTS1

From the FOTB site: Don’t think of FOTB as just another Flash conference. The Flash bit of the title is more of a mentality or vibe than just a software product. What we mean by that is that Flash is one of the coolest web tools around. It breeds a mentality and vibe that sets it apart.

If you haven’t heard yet, Sr. Director of Engineering at Adobe Systems Paul Betlem was asked by an audience member about any news updates for Flash on the  iPhone while Paul was speaking at the Flash On The Beach (FOTB) conference in Brighton.

Paul  responded that the team was “working on Flash on the iPhone” but given that the iPhone is a closed and closely guarded system, Apple will have final say.

That is great news for everyone imo. Flash on the iPhone.

Flash on the iPhone

If you haven’t heard the news, NBC decided to stop making people suffer through the use of MS Silverlight…they switched to Flash.

I have to say that this is a great move on NBC’s part.  Trying to view the Olympics using Silverlight was terrible.

so I’ve posted a few updates to the dock_clock Adobe AIR app I created.  Here is one more that has an auto-updater.  Which means you won’t have to download any others from my blog.  If I make an update to the AIR app, it will notify you that there is a new version and ask you if you want to download it.  Check it out here: http://www.smithmediafusion.com/bugClock/dock_clock.air

The creative shop, Struck (www.struckcreative.com) is on the hunt for top-notch Flash developers. So if you’re a rockstar in both AS 2.0 and AS 3.0/Flex send us your code samples. We’re looking for the kind of people that understand that classes are not something that you just take in college; the kind of people that get cranked about translating Photoshop comps into awesome, coded motion. We’re looking for the kind of people who embed videos into Flash in their dreams. Send samples to: [email protected]

« Previous Entries