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

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!