SketchPort automated videos

Check out these animated versions of the awesome artwork on http://www.sketchport.com.

The videos are automatically created when you post a drawing, using Adobe AIR, ffmpeg, PHP, the YouTube API, and a little magic.

Encoding them at 1920×1080 takes about 30 minutes for a 2 minute video. Not bad for an Amazon EC2 micro instance.

, , , , , , ,

Leave a Comment

“iIPA.exe has stopped working”

Getting this error message when trying to debug an iOS application with Flash Builder 4.7 on Windows 7?

Try this:
1. Open Windows Explorer and navigate to “(FLASH BUILDER)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.345990\AIRSDK\lib\aot\bin\iOSBin”
2. Right click on iIPA.exe and go to properties.
3. Go to Compatibility and check “Run this program in compatibility mode for: Windows 7″

Now it will stop crashing and you can debug!

3 Comments

SketchPort is almost live!

SketchPort is now mostly out of private beta. The home page, browse page, challenges page, user profiles and drawing pages no longer require login. The news section on the home page is also new.

The plan for the immediate future is to improve the drawing app with an eraser tool, allow live playback of drawings, and other new features.

Leave a Comment

I think I just figured out how to cure cancer

class CancerBot extends NanoBot:
	def onCellIdentified(self, cell):
		if cell.is_cancer():
			self.destroy(cell)

bot = CancerBot()
bot.run()

All I need is some help with implementation details.

Leave a Comment

Checklist for using Stage3D in AIR 3

  • Make sure you’ve overlaid the AIR 3 SDK onto your Flex SDK. For compiler errors
  • Set -swf-version=13 in the compiler args For “Error #1014 Class could not be found.” runtime errors
  • This step depends on how you’re creating the window that contains Stage3D content. Fixes “Context3D unavailable” runtime errors in the release version of AIR
    • If you’re using the initial window, set application->initialWindow->renderMode to direct in your application.xml
    • If you’re creating the window at runtime, set nativeWindowInitOptions.renderMode = NativeWindowRenderMode.DIRECT when creating the NativeWindow

Leave a Comment

AIR 3 Native Extension Example – PenTablet

This native extension allows you to read pressure sensitivity data from a pen tablet. It’s only been tested on Windows 7 with a Wacom Intuos 4. I’ll go through the build steps in the same format as last time.

Requirements:

Checkout the project on GitHub for all the code.

  • Source files
  • Project files for Visual C++ and Flash Builder
  • Batch files so you don’t have to use the command line
  • All intermediate files

The project contains some placeholder files that I cannot include in the repository because they are copyrighted by Adobe. After checking out the project, you need to:

  1. Replace FREPenTablet/FREPenTablet/FlashRuntimeExtensions.h with AIR_SDK/include/FlashRuntimeExtensions.h
  2. Replace FREPenTablet/FREPenTablet/FlashRuntimeExtensions.lib with AIR_SDK/lib/win/FlashRuntimeExtensions.lib

Now that everything is setup, you can try compiling everything yourself.

  1. Open FREPenTablet/FREPenTablet.sln in Visual C++ 2010
  2. Build the .dll (F7)
  3. Import PenTabletLib into Flash Builder
  4. Build the .swc (Ctrl + B)
  5. Open the .swc with a .zip editor, and extract library.swf to the same folder as the .swc
  6. Build the .ane (run PenTabletLib/bin/package.bat)
  7. Import PenTabletDemo into Flash Builder
  8. Build the .swf (Ctrl + B)
  9. Build the .exe (run PenTabletLib/bin-debug/package.bat)

If everything was successful, you can draw on the stage with pressure sensitivity!

22 Comments

AIR 3 Native Extension Example – ImageProcessor

This post will show you how to create an AIR Native Extension for Windows. Specifically, we will create an extension which uses .NET to transcode BitmapData objects into .bmp, .jpg, and .png formats much faster than existing ActionScript or Alchemy methods.

Requirements:

Checkout the project on GitHub for all the code.

  • Source files
  • Project files for Visual C++ and Flash Builder
  • Batch files so you don’t have to use the command line
  • All intermediate files

The project contains some placeholder files that I cannot include in the repository because they are copyrighted by Adobe. After checking out the project, you need to:

  1. Replace FREImageProcessor/FREImageProcessor/FlashRuntimeExtensions.h with AIR_SDK/include/FlashRuntimeExtensions.h
  2. Replace FREImageProcessor/FREImageProcessor/FlashRuntimeExtensions.lib with AIR_SDK/lib/win/FlashRuntimeExtensions.lib

Now that everything is setup, you can try compiling everything yourself.

  1. Open FREImageProcessor/FREImageProcessor.sln in Visual C++ 2010
  2. Build the .dll (F7)
  3. Import ImageProcessor into Flash Builder
  4. Build the .swc (Ctrl + B)
  5. Open the .swc with a .zip editor, and extract library.swf to the same folder as the .swc
  6. Build the .ane (run ImageProcessor/bin/package.bat)
  7. Import ImageProcessorTest into Flash Builder
  8. Build the .swf (Ctrl + B)
  9. Build the .exe (run ImageProcessorTest/bin-debug/package.bat)

If everything was successful, you can run the .exe and click the stage to encode a JPEG. It will be saved to “C:\temp.jpg”.

48 Comments

Follow

Get every new post delivered to your Inbox.