Monday, 4 June 2007

History Panel in Flash IDE

Ever tried the History Panel in Flash IDE? :)

Even though the history panel made it's way into Flash since the MX 2004 days, I couldn't find a good reason to use it. I mean, why would I need an extra panel to clutter up my screen estate when it's already tough to juggle between the designer and developer related panels? I could easily do a Ctrl-Z(Undo) and Ctrl-Y(Redo) at any time that I want~

Well, time has changed. :D Since I've started messing around with JSFL, the history Panel becomes the basic tool to learn JSFL commands. Don't believe me? Follow me through then. ;)

1. In Flash IDE, go to Window --> Other Panels --> History (Ctrl-F10)

History Panel Normal
2. Click on the options button Options Button, under View, you should see a menu as follows:

History Options Dropdown
The Default view that you see, shows the commands in normal layman English that everyone will understand. I have still yet to find any purpose with the Arguments in Panel view, so I'm gonna skip that. The JavaScript in Panel view is what we're interested with.

3. Here's the JavaScript in Panel view.

History Panel JavaScript
Did you notice the lines and lines of codes in the history panel now? Well those are JSFL codes! If there's something that you wish to create for Flash IDE, and have no slightest idea where to begin, yet you know that there's something similar been done already, you now know where to look!


Further Reads:
Using History and Flash Panels for Faster Development

Sunday, 3 June 2007

New toy: JSFL

I first came across JSFL when I tried to compile a Flash file through FlashDevelop. That was the time when I saw in Flash IDE's Output panel, some error message about a particular JSFL file failing to execute (I can't remember what's the exact error message, as it's so random and I never really take note).

Of course at that time, I had no clues about what JSFL was and I'm not bothered to find out what it might do. I'm more pressed with the concern that my Flash file is failing on me. :D (The dateline was so tight, JSFL don't blame me. :P)

Recently, while reading Grant Skinner's blog, I stumbled upon his gAlign extension tool for Flash IDE. In that blog post, he mentioned about using "custom JSFL calls" to accomplish his stuff. Seeing how JSFL is able to manipulate Flash IDE's content, that got me seriously curious about the technology behind it.

Googled for JSFL as I had absolutely no idea where to start from, and found this introductory article by Guy Watson. In the article, he establishes facts about JSFL and where did it came from. Unfortunately, it didn't seems to be what I'm looking for.

How can one ever forget about Flash Help? :D I did a search in there and found exactly what I needed. All the treasures and secrets about JSFL were all lying in the book Extending Flash, waiting for me to uncover them. hehe..

So now, I'm getting all excited about this new discovered "power" (of course the power itself is not new, and existent for a pretty long while. it's just my ignorance. :D but no more!). Got some opinions from friends about what should I develop as an extension for flash, and Arul in particular gave an interesting one.

My first JSFL project will hence be,




*drum roll*




*drum roll*




*drum roll*








an Arrow Drawing Tool!







Stay tuned!

Friday, 1 June 2007

The World's Fastest Indian


This movie managed to moved me even though I'm not a lover of motorcycles. Can't imagine if someone like Arul watches this movie. :P

Burt Munro, an ordinary man with extraordinary determination, had an ambition to set the land-speed world record using his 1920 Indian motorcycle. His passion overcame all difficulties, obstacles, barriers, and even to the brink of risking death.

In 1967, he finally sets the under-1000 cc world motorcycle land speed record, which still stands today, at Bonneville Salt Flats with his self-modified Indian motorcycle that originally could only run at a top speed of 86.90 km/h (54 mph). His official record?

295.44 km/h
~183.58 mph
Burt Munro
If you don't follow through on your dreams, you might as well be a vegetable (not your regular cabbage kind of veg! :D).

Burt Munro took 25 years to realise his dream.

How far are you willing to go for yours? :)

Wednesday, 30 May 2007

The Prestige


The prestige, the final act of the three acts of a magic show, the act that will leave the audience astounded, mystified, shocked and overwhelmed. With the success of a prestige, acclaimed magicians will always want to find out that secret, how the trick was being done.

Robert Angier and Alfred Borden were two friends when they began their career as magicians. Through an accident that caused the death of Angier's wife, their friendship turned into hatred, which leads to rivalry. With the prestige of an ultimate trick, their rivalry evolves to a battle that promises to tear their lives down and affect everyone around them.

Intense. That's the word to describe the movie. It keeps you to the edge of your seat through the brilliant performance by Hugh Jackman (Robert Angier) and Christian Bale (Alfred Borden). To see both in a movie was almost *dreamy*, as I admire both actors a lot. Hugh Jackman is best known for being Wolverine in the X-Men series, whereas Christian Bale as Batman Begins (which I love thoroughly, can't wait for the sequel!).

This is a must watch for people who love drama, thrills, twist and turn of plots.

Tuesday, 29 May 2007

Charlotte's Web


How many people had grown up without reading Charlotte's Web? haha.. Well, I'm one of those few. Since young, I really dint like to read, which probably explains why my English is horrible! :P

As I said, since this is the first time I get in touch with this story, on many levels I'm not distracted by what the book actually wrote, how the plot unfolds, and more importantly, no spoilers. :D

The story is a simple and straightforward one. Of trust, loyalty, and sacrifice between friends. Do not judge a person by its cover, like how Wilbur sees Charlotte. Charlotte in turn teaches us that promises made are to be kept. Their dynamic relationship creates a spark that changes everything in their town, both human and animals.

If we apply those precious lessons to our lives, wouldn't that make our world a better place to live in? ;)

Sunday, 27 May 2007

The Illusionist


When was the last time I watched a magic show? haha... This movie though, is many levels more than that. The plot was intriguing, and the ending carried such a twist it blew me off.

It was a direct pit of intelligence, between Eisenheim (the illusionist), the chief inspector and the crown prince, as Eisenheim tries to use his powers as an illusionist, to secure a future with his lover, a woman who is well above himself in regards to social status.

Prepare for the ride and be mystified. :)

The Pursuit Of Happyness


Inspired by a true story based on the life of Chris Gardner, this movie shows the struggle of a father trying to hold the family together despite of the tremendous daily difficulties that he face. His sales job was going downhill, his wife left him, his inability to pay his fines landed him in jail, he had no money for daily expenses and eventually, homelessness. In spite of these, he was determined for a career change to be a stockbroker.

The love between Chris and his son was also extremely moving. It almost seems that Chris motivation behind his daily struggles was his son, that he wants his son to be happy. In one scene when Chris was teaching Chris Jr., this dialogue left a very deep impression in me and I felt it captured the essence of the movie.

Chris Gardner
Don't ever let somebody tell you, you can't do something. Not even me. You got a dream, you gotta protect it. People can't do something themselves, they wanna tell you you can't do it. If you want something, go get it. Period.

After months of being deep in mud, struggling with life and at the brink of depression, Chris finally have a chance at happiness with life when he got chosen to be a stockbroker out of the 20 that applied for it. That joy that he had was incomparable.

That joy moved me to tears.