Sigh!
...and just like that...FLEX 4 is here!
:)
1. http://blogs.adobe.com/flex/archives/2010/03/flex_4_sdk_and_flash_builder_4.html
2. http://www.adobe.com/products/flex/
Check it out!
Go! Play!
:)
Shaurya.
Monday, March 22, 2010
Flex 4 is here!
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.
Wednesday, March 11, 2009
#tweetcoding - a notable mention YAY!!!!
post #twex I got really interesting in another experiment...
#tweetcoding was a kick ass code contest by Grant Skinner (@gskinner)
gskinner.awsum(thx);
prtcipnts hd 2 code sth. cool in ls thn 140 chrs!
140's too less you say? go check out the awesome stuff people did for 140!
@machine501 setup an online compiler to showcase all the #tweetcoding going on.
machine501.awsum(thx);
.
.
.
and now the results are out!!!
The Winners :
diagonal snake by @tomee6
Tunnel of Stripes by @piXelero (a personal favorite!)
winners.sendMsg("Congratulations!!!");
The Runners-ups :
the drummer by @vectorcinco
Ghost Marquee by @dickwolf
runnerups.sendMsg("Congratulations!!!");
and there were some entries that got a Notable mention ...and My entry was amongst them:
The time-sketch by @shauryashaurya
happy happy - Wooohooo!!!!
judges.tweetcoding.sendMsg("this is really encouraging!!!");
judges.tweetcoding.awsum(thx);
take a look at the #tweetcoding winners page.
- Check out all of the #tweetcoding (compiled) entries online
- the #tweetcoding rules
- link to @gskinner's blog post on #tweetcoding
- @gskinner says here that the next round should be in around next month: am eargely waiting!!!
S.
P.S. #twex analysis is still pending (my apologies!!! - sum dum projkts @ wrk I need to fin firs.) but results should be out next month! stay tuned :)
for those interested, the entry asked for 140 chars of code that, if embedded in some already given "me code" (from @gskinner) should do something "cool". Here is the source code of my entry (turn strict mode off in Publish setting>action script 3 setting):
// @gskinner's me code 1
g=graphics;
mt=g.moveTo;
lt=g.lineTo;
ls=g.lineStyle;
m=Math;
r=m.random;
s=m.sin;
i=0;
o={};
function f(e) {
// 140 chars of my code
if (i<1)>
j=o.x;
k=o.y;
z=j=k=200;
mt(j,k);
g.beginFill(0,.5);
}
i+=.05;
p=m.PI/2-i;
c=m.pow;
j+=i*c(s(2*p),3);
k+=i*c(s(3*p),3);
ls(k*.01,10,1);
lt(j,k);
}
// @gskinner's me code 2
addEventListener("enterFrame",f);
cheers!
S.
:):):)
Tuesday, July 1, 2008
Eckel Talks ActionScript!
One of my favorite authors, Bruce Eckel now writes on ActionScript!!!
(He :
- is the reason, I feel confident on Java and C++,
- gives amazing insights on programming in his books, check them out!
- simply the coolest, because he gave out his books for free! )
Wow!
Take a look at:
- http://www.adobe.com/devnet/flex/articles/creating_components.html
- 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:
- either AS is really good, worth writing about
- or it has now become 1
- or there are a lot of business opportunities in AS
- or Adobe hired him and asked him to write something on AS.
- all of the above
- none of the above.
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...
- Bruce Eckel's Website: http://www.mindviewinc.com/
- Artima Developer, where the article first appeared: http://www.artima.com/weblogs/viewpost.jsp?thread=230610
- What's new in ECMAScript 4 that is not already in AS3: http://moock.org/lectures/newInECMAScript4/
- Overview of ECMAScript4: http://www.ecmascript.org/es4/spec/overview.pdf
- ECMAScript 4 - Progress: http://spreadsheets.google.com/pub?key=pFIHldY_CkszsFxMkQOReAQ&gid=2
:)
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.
- FutureSplash Animator (Spring 10 April 1996) – initial version of Flash with basic editing tools and a timeline
- Flash 1 (November 1996) – a Macromedia re-branded version of the FutureSplash Animator
- Flash 2 (June 1997) – Released with Flash Player 2, new features included: the object library
- 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
- Flash 4 (15 June 1999) – Released with Flash Player 4, new features included: internal variables, an input field, advanced Actionscript, and streaming MP3
- 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
- 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
- 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. - 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.
- 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.
- 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 :
BTW: "Voodoo chicken" is also a slang for "a spicy chicken dish"...
ciao.
shauryashaurya
