Showing posts with label Flash. Show all posts
Showing posts with label Flash. Show all posts

Friday, November 20, 2009

The anticipated coolth of Adobe AIR 2.0

[update: this post has been in the limbo for way too long, I wanted a way to embed the flash videos from Adobe.tv here, but it looks like there is none. I am publishing this post today, in hopes that the reader may find it interesting enough to actually try the links... BTW this here might relate to the silverlight 4 thingy as well! ]

I am yet to sift through all the Adobe MAX 2009 videos.

I find it really generous of Adobe to put all of these up. Even if most of it is marketing, they still share a few gems of information. Really worthwhile for guys like me, who end up being so busy there's little hope of attending an actual MAX event unless planned at least six months ahead of time.

I chanced upon the Adobe AIR 2.0 preview video:  http://tv.adobe.com/watch/max-2009-develop/whats-coming-in-adobe-air-2-/

(I wish there was a way to embed flash videos from Adobe.tv into Wordpress...)

 



To me the most important ones are the support for USB (mass storage devices) and native apps (so you can now open a word document from within AIR). I am still a bit skep about the performance, but, I am sure this is going to improve over the new version too...

Check these videos out. Kinda nice. Kinda exciting.

 



Cheers.

 



S.

[update:

1. there's a lot more videos on AIR2 in the complete video list, but I did like this one by Kevin Lynch as well: http://tv.adobe.com/watch/max-2009-develop/kevin-lynch-demos-adobe-air-2-features/

2. I prefer the adobe media player for working out all of it. nicer neater faster AIR based video playing...]

Wednesday, October 14, 2009

Optimizing Actionscript 3 performance

Performance optimization has been a challenge I have been facing A LOT in my projects lately. The more I try to research it, the more confusing the answers get. There were a few ground rules that I had found on the actionscriptWiki (http://wiki.joa-ebert.com/index.php/Main_Page) but beyond that...nothing.

It turns out that Grant Skinner was talking about these same issues at the Flash On The Beach 2009 conference. He has the slides from his talk up on the website now, check these out here: http://gskinner.com/talks/quick/#1
Mike Chambers also wrote a nice post, where he dissects the performance issue with a case study: http://www.mikechambers.com/blog/2009/10/13/case-study-actionscript-3-performance-optimization/

Both the articles make for really interesting reading... check them out!

For more of GSkinner talks go to: http://gskinner.com/blog/archives/2004/06/conference_sess.html

Mkie Chamber's Blog: http://www.mikechambers.com/blog/

now I should be off again... more code to write, after all I need to optimize my performance as well...hehe

S.

Tuesday, October 6, 2009

Flash CS5, iPhone support, Flex SDK 4 b2, Catalyst b2, Story and Flash Player 10.1

Wow! This morning was very news worthy!

First there was the announcements regarding Flash CS5.
The big thing here was the new support for native iPhone Apps.
Apparently one can, with the Flash Professional CS5, write AS3 code that compiles as native iPhone application.
They announced it at MAX a few hours ago thru this entertaining video:





Nice!

To me there's other cool stuff in Adobe Flash Professional CS5 that is really interesting, like the xml based FLAs and the Text Layout Framework.

Mike Chambers here has a post that gets into more details of the iPhone support part.

Adobe has also released a few applications that you can try on your iPhone right away! I feel that it's a good idea to read thru the Developer FAQs and Aditya Bansod's article here. I did find the LLVM pretty interesting. There's a paper and a presentation to check out on llvm.org. For an iPhone a developer can actually use RTMP, remote shared objects and AMF APIs of the flash player. Developers will also have access to the file system and SQLite APIs of AIR 2.0. I am sure we will find out eventually that some stuff is not available, but, what the heck! There will be workarounds...hehe

The idea of a native iPhone Flash Player is still not around...I see places where they say "its on the cards...", but, there is no mention of a date. The Flash Player 10.1 is going to be available soon though! Again it was announced at Adobe MAX today. Check out Kevin Lynch introducing 10.1 in this video:





This kinda excites me more than the iPhone support. Flash Player 10.1 on Android, Net Books and even on set-top boxes for television providing seamless experience is an awesome awesome wow! More reach, more support for my products and services now. :)

Adobe's even working on Slider - a mobile optimized port of the Flex 4 codebase.

Along with all of this Adobe also announced a host of other betas available! Check out the list below:


  1. The Flex 4 SDK Beta 2 release

  2. The Flash Builder 4 Beta 2 release

  3. The Flash Catalyst Beta 2 release

  4. and then there's also the Adobe ColdFusion Builder beta 2 release

  5. and the Adobe LiveCycle Data Services 3 beta release


I also found two very interesting project on Adobe labs.

The first is called workflowlab. A tool (AIR) that allows one to create and share workflows and best practices. Project Managers, Designers and developers can collaborate and contribute to a project in a nicer way with this. The big part is that they used the Flash Builder and Flash Catalyst to create this utility!

Finally, the second one is about something that is really close to my heart too. Adobe Story is an application for collaborative script development. I tried a few scenes of a sample movie script with it. Works really well! The code hints like auto-correct/completion features are really neat! What even nicer is that it supports export to a lot of formats including MS Word, Final Draft (Word and FD  are my preferred screen-writing applications) and also to PDF, CSV, XML and plain text! (There's probably an AIR application available too, but, I have not tried that as yet). The Story beta was out on Sept 10, so I am a little late (and a little out of place) in talking about it here, but, with all the great up coming stuff, I wanted to blog all of it together.

Really cool stuff happening around. Lots to look out for.

:)

Wednesday, May 6, 2009

Flash Player 10 - bad install for Firefox - Solution.

Flash Player 10 had been giving me a lot of grief when it came to working with Firefox.
I finally figured out a solution, am still unclear what the trouble was!
Wonder is my solution is correct - it seems to work for now tho.

Issue:
I was using Flash CS3 with player 9 installed. The ActiveX and .dll files worked well on IE and Firefox. Then I upgraded to Flash CS4 and Flash Player 10. Things worked well for IE, but did not work well for Firefox 3. I used the flash player uninstaller and still - nogo...

Solution:
It seems the following files:

  1. NPSWF32.dll
  2. NPSWF32_FlashUtil.exe
were present in two locations:
  1. C:\WINDOWS\system32\Macromed\Flash
  2. C:\WINDOWS\system32
and although the installer did update folder #1, it did not bother with the files in folder #2. Thus in my case folder #1 had flash player 10 files (which worked for IE) but folder #2 still had flash player 9 files (which did not work for firefox)...

So I manually copied the files from C:\WINDOWS\system32\Macromed\Flash to C:\WINDOWS\system32 (replacing those old flash player 9 files)

I restarted Firefox and things seem to be working fine now!

Still I wonder if I'll have to do this each time there is a new flash player release...

Wednesday, September 24, 2008

...CS4!!!

On September 23, Adobe released the long-awaited Creative Suite 4, this also included Flash CS4 and Photoshop CS4.

Check out the wicked new features in Flash CS4 here. Although it looks like Flash CS4 uses Flash Player 9 update 3(press release). Meaning there should be a Flash CS4 update for Flash Player 10 sometime soon.
Niiiice :)

And they have just added more bang to 3D in Photoshop CS4!!! The top new features here. Hey if you were wondering about the sexy resize... it's there in all it's glory... YAY!!!

to re-iterate...

NNIIIIIIICEEE!!!

Tuesday, July 1, 2008

Eckel Talks ActionScript!

One of my favorite authors, Bruce Eckel now writes on ActionScript!!!
(He :

  1. is the reason, I feel confident on Java and C++,
  2. gives amazing insights on programming in his books, check them out!
  3. simply the coolest, because he gave out his books for free! )
AS - language I spend most of my time with.

Wow!

Take a look at:
  1. http://www.adobe.com/devnet/flex/articles/creating_components.html
  2. http://www.adobe.com/devnet/flex/articles/as_collections.html

I am going to look for more articles he may have written on AS, see if I can come up with anything, Welcome to ActionScript Bruce!

There is another important point to note here...
If Bruce Eckel is writing on AS... it means that:
  1. either AS is really good, worth writing about
  2. or it has now become 1
  3. or there are a lot of business opportunities in AS
  4. or Adobe hired him and asked him to write something on AS.
  5. all of the above
  6. none of the above.
Another point to note... though it could be a little far fetched.
ECMAScript 4 (and probable AS4 ) proposes Iterators, and Bruce takes the same topic as an example to explain functional programming. Coincidence?

Anyway, I find that I get into the "hero-worship" mode really quickly, and that mode switch is happening again....

Bruce Eckel writes on AS3 and Flex... cool!

Other References...

:)

S.

Thursday, March 6, 2008

about flash performance

Hey People!
In doing SRM06 we faced a major hurdle about flash performance – flash kept crashing
In investigating all that we got to learn a lot of under the hood stuff about the flash player and the flash compiler.Much of it would require a lot of space to share…But, there was one very interesting resource that I dug up, rummaging thru my favs. Folder… hehe .
http://oddhammer.com/actionscriptperformance/
The site is very informative about flash performance issues, has some tests calibrating various operations to milliseconds too!Also there is a wealth of other stuff here – including tutorials on Unicode characters in flash.
It’s a bit old and caters to flash 6, 7, and 8, but the info it gives is still relevant and useful
Enjoy!
:-) :-) :-)
Shaurya

Monday, October 22, 2007

A short history of Flash!

Hey people!

Today me and Sureshbabu, got around to talking about a history of flash, and turns out that several of my facts were wrong! It turned out to be quiet in interesting discussion.

Here's a short history of the software to tickle your interest.

  1. FutureSplash Animator (Spring 10 April 1996) – initial version of Flash with basic editing tools and a timeline
  2. Flash 1 (November 1996) – a Macromedia re-branded version of the FutureSplash Animator
  3. Flash 2 (June 1997) – Released with Flash Player 2, new features included: the object library
  4. Flash 3 (31 May 1998) – Released with Flash Player 3, new features included: the movieclip element, JavaScript plug-in integration, transparency and an external stand alone player
  5. Flash 4 (15 June 1999) – Released with Flash Player 4, new features included: internal variables, an input field, advanced Actionscript, and streaming MP3
  6. Flash 5 (24 August 2000) – Released with Flash Player 5, new features included: ActionScript 1.0 (based on ECMAScript, making it very similar to JavaScript in syntax), XML support, Smartclips (the precursor to components in Flash), HTML text formatting added for dynamic text
  7. Macromedia Flash MX (ver 6) (15 March 2002) – Released with Flash Player 6, new features included: a video codec (Sorenson Spark), Unicode, v1 UI Components, compression, ActionScript vector drawing API
  8. Flash MX 2004 (ver 7) (9 September 2003) – Released with Flash Player 7, new features included: Actionscript 2.0 (which enabled an object-oriented programming model for Flash), behaviors, extensibility layer (JSAPI), alias text support, timeline effects
    Macromedia Flash MX Professional 2004 (ver 7) (
    9 September 2003) – Released with Flash Player 7, new features included all Flash MX 2004 features plus: Screens (forms for non-linear state-based development and slides for organizing content in a linear slide format like PowerPoint), web services integration, video import wizard, Media Playback components (which encapsulate a complete MP3 and/or FLV player in a component that may be placed in a SWF), Data components (DataSet, XMLConnector, WebServicesConnector, XUpdateResolver, etc) and data binding APIs, the Project Panel, v2 UI components, and Transition class libraries.
  9. Macromedia Flash Basic 8 (released on 13 September 2005) – A less feature-rich version of the Flash authoring tool targeted at new users who only want to do basic drawing, animation and interactivity. Released with Flash Player 8, this version of the product has limited support for video and advanced graphical and animation effects.
  10. Macromedia Flash Professional 8 (released on 13 September 2005) – Released with the Flash Player 8, Flash Professional 8 added features focused on expressiveness, quality, video, and mobile authoring. New features included Filters and blend modes, easing control for animation, enhanced stroke properties (caps and joins), object-based drawing mode, run-time bitmap caching, FlashType advanced anti-aliasing for text, On2 VP6 advanced video codec, support for alpha transparency in video, a stand-alone encoder and advanced video importer, cue point support in FLV files, an advanced video playback component, and an interactive mobile device emulator.
  11. Flash CS3 Professional (as version 9, released on 16 April 2007) – Flash CS3 is the first version of Flash released under the Adobe name. CS3 features full support for ActionScript 3.0, allows tweens to be converted into ActionScript, adds better integration with other Adobe products such as Adobe Photoshop, and also provides better Vector drawing behavior, becoming more similar to Adobe Illustrator and Adobe Fireworks.

cool! huh! I took this down from the ubiquitious wikipedia.

http://en.wikipedia.org/wiki/Adobe_Flash

You get many more interesting tidbits there. Check it out!

Also, for those who are hungry for more here is the history of flash and how it came around by the inventor of Flash - Jonathan Gay.

until next time then!

ciao.

shauryashaurya

...

Tuesday, October 16, 2007

'Voodoo Chicken' or the 'Vietnam War', If It Is Working Don't Change!

In figuring out the Big OOP Kahuna, we've all come across the ubiquitious 'Design Patterns' right?

Cool, now how many times just 'knowing' about a design pattern helped us write better code, create more robust systems, create reusable, more valuable code?

In my experience, not many.

No matter how well engineered the application, how well written the code, we still have rarely profited by writing code for that very application, in terms of raw effort, if at all, our profit margins have been pretty slim.

I go from project to project coding similar applications, and its a rare instance that I am able to reuse my code with minimal effort. Even in the cases where I know a 'trick' of how to get something done, I still struggle as hard in 'implementing' it in my current situation, as I fought with the problem in the first case!

There are too many examples to count : Multi Page Printing in flash, or Depth Management in Flash, or Drag-Drop like activities in Flash. Although I know how I did it in one project, It's still hardly a 15-20% reduction in my effort, the next time I do it!

This sort of problems plague us coders every step of the way, in every project, in every product.

But, where do we miss, where is it that things go wrong?

In the quest to improve the quality of (and practice of writing) my code, I came across a significant observation, I'll quote this verbatim :

"Identifying bad practices can be as valuable as identifying good practices."

How simple was that!

With this deceptively simple little observation in place, software engineers across the world set out to document both, their smiles as the good practices, and their sins as the bad ones. [okay pathetically cheesy line, but, you do get the point, don't you.]

The good practices took the shape of Design Patterns, from starting in the completely unrelated feild of architecture (the brick and mortar kind), they spread to management practices, governance and finally in programming of digital applications, a domain where we, the coders, encounter them most often.

But, what happened to the bad practices?

As it turns out, these were documented as the "Anti-Patterns".

Their official definition is :
"An AntiPattern is a pattern that tells how to go from a problem to a bad solution."

It makes an interesting read, wading thru the Anti Patterns Catalog.

I must confess to have comitted many of these sins as listed in the catalogue :)
Look thru, how many can you recognise to have comitted? Ummm... don't tell me, hehe...

But, there's always hope, and I am trying to improve, I look at some of these anti-patterns, and try to eliminate them from my day-to-day work and from my line-to-line code.

Here are some of my favorites, not just interesting names, but, interesting lessons in software engineering too, check them out :

So, people, take a look at these and see if there is anything you can find to help you improve as a coder, or help you resolve an issue your project...

BTW: "Voodoo chicken" is also a slang for "a spicy chicken dish"...

ciao.

shauryashaurya