AS3 Listen for the Enter Key to be pressed

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;
}
}

Flash Book: ActionScript 3.0 for Adobe Flash CS4 Professional Classroom in a Book

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.

Flash CS5 on the iPhone, Apps

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.

Flash Helps Site Launched

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

Flash Video Player Long Island Bride And Groom

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.

Flash on the Beach Discount Code

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.

Flash and JavaScript

Flash on the iPhone

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

NBC Sports drops Silverlight

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.

dock_clock AIR app update

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

Flash Developers Needed

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: info@struckcreative.com

Quick Adobe AIR Sample – AIR Clock

Just created a quick AIR sample app for you to enjoy. It is an analog clock based off of a clock sample in the Flash samples. I merely added a few AIR functions to make it minimize, maximize and drag. You can download the AIR Clock file here: AIR Clock (right click Save As…)

Flash 9 Security Update Verification

Jesse Harding posted this on his blog yesterday on how to verify if a user has the Flash 9 security update…really solid.  So solid I thought I blog it.  Jesse’s article here.

/*

I mashed up some existing frameworks out there to create an alert that displays on your web site if your visitors don’t have the latest version of the Flash player (9.0.124.0). It is highly recommended that all web users install the latest version of the player due to exploits possible in the previous version.

You can see an example of my alert here.
(for testing purposes I requiring Flash 11 here so everyone should get the alert for the time being)

Download the files for my script here.

The zip file download has a readme.txt file that explains how to use the script in detail. I’ll give a brief summary here:

My hack uses swfobject and a  jQuery Thickbox together to display a very noticeable alert.

Normally swfobject is great for verifying the most recent version, but considering the urgent nature of this update, I combined it with a  Thickbox as the alert to make sure it is very visible.

The way I did this was somewhat sneaky. Rather than point to the expressInstall.swf file that swfobject usually defaults to when flash is out of date, I pointed to my own thickBoxWarning.swf which uses ExternalInterface to launch the Thickbox.

If for whatever reason you want to go without the Thickbox simply remove the reference to thickBoxWarning.swf in the swfobject code and you’ll get a standard swfobject warning banner at the top of your site.

Here is an example of what that looks like.

Basically all you need to do to use this is place the flashSecurity folder on your server. The paths in these examples assume your flashSecurity folder is in the same folder as your web pages. If this is not the case, you’ll need to update the paths in the code appropriately. You may also need to change the path to the Thickbox window which is set in the included thickBoxWarning.fla file. Add a couple divs to the top of your page (there are examples in the zip) and you are good to go.

This is a very simple but effective way to protect your users and ensure they are aware of the update.

If you have any questions on this email me at jesse AT frogblade.com

*/

Flash Player 10 Beta

Flash Player 10 public beta released: http://labs.adobe.com/technologies/flashplayer10/

Adobe® Flash® Player 10, code-named “Astro,” introduces new expressive features and visual performance improvements that allow interactive designers and developers to build the richest and most immersive Web experiences.  These new capabilities also empower the community to extend Flash Player and to take creativity and interactivity to a new level.

This public prerelease is an opportunity for developers and consumers to test and provide early feedback to Adobe on new features, enhancements, and compatibility with previously authored content.  Once you’ve installed Flash Player 10 beta, you can view interactive demos.  You can also help make Flash Player better by visiting all of your favorite sites, making sure they work the same or better than with the current player.

Cool Flash Sites: Eye Project by Kiddi

Just came across this Flash site by Kiddi called “Eye-Project”. The Eye Project is insanely amazing. They’ve taken users’ photos and made a cool thingy: http://eye.kddi.com/content.html

« Previous Entries