Thursday, August 8, 2013
Friday, March 7, 2008
For example, input_txt.restrict = "A-Z";
This restricts the characters to upperspace characters and disallows everything else.
And input_txt.restrict = "^0-9";
The ^ symbol indicates that whatever comes after that is disallowed. Here, the numbers 0 to 9 are not allowed, everything else is allowed.
The interesting part is what if you want to restrict the Backslash(\) character?
Apparently, the right way to do it is:
input_txt.restrict = "^\\\\";
From the livedocs documentation:
"You can use a backslash to enter a ^ or - verbatim. The accepted backslash sequences are \-, \^ or \\. The backslash must be an actual character in the string, so when specified in ActionScript, a double backslash must be used. "
So, the first two backslashes are as required, when you add the third backslash, the flex compiler thinks that you are trying to escape the " character. Hence you need the fourth backslash in the string.
Thursday, February 7, 2008
I have been working on the flash part of Shutterfly Gallery for the past few months. It went public today. Hence thought I'd promote it on my blog. The pictures were taken during my Seattle trip during 2008 New Year's. Head over here to see this photobook in more detail and for more such beautiful photobooks.
Wednesday, December 12, 2007
Then Adobe declared that they are skipping Flash Player 8 for Linux and going for version 9 directly (it was called 8.5 for sometime). People were extremely unhappy and quite skeptical about this move.
Then in May of 2006, there was this post by Mike Melanson over at Adobe that changed everything. After months in development, Flash Player 9 for Linux was launched
Come October 2007, Adobe showed more love towards the Linux community by revealing their plans for Flex Builder running on Linux. Check out this cool video of the first sneak peek of Flex Builder on Linux (also taking a dig at vi and emacs while at it)
Well, enough of history for now. Lets get into the nitty gritty of Flex Builder on Linux. You can download the alpha version here. It is available only as a plug-in, which means that you need to have Eclipse already installed on your machine. Go ahead try it out. It is definitely better than your vi/emacs/gedit, etc :-)
The official story is that this release is supported only on SuSE, RedHat and Ubuntu flavors of Linux. I installed mine on Fedora and it works perfectly fine! I also copied over an existing project from my Windows machine over and opened it with it. I was pleasantly surprised that it opened without any issues. I could compile the project and debug it just fine.
A few details that you need to know:
1. It has a number of features from Flex Builder 3 (which is available as beta here, only for Windows though). But Adobe says that these two products are NOT the same and that they will have separate timelines.
2. It does not 'yet' support the cooler features in Flex Builder 2 such as Design View, States View, Refactoring(FB3), etc. Also, the part that I was most interested in - Adobe AIR support is not in yet. I hope they fit in somehow soon.
On a personal note, I have never had Linux as my development machine. I never had the right tools on Linux. Now that Flex Builder is available on Linux, I might give it a try for a few days. I am sure there are bugs and issues around, I hope to provide feedback as I keep working on it... Still, the features like refactoring, Adobe AIR support are very important to me. I think I will stick to my beloved Windows box for now :-)
Tuesday, June 19, 2007
In every Flex project there is a folder: html-template. This folder contains all the templates required to create the html wrappers around the out .swf that the Flex project creates. The most important file is index.template.html.
But, when you want to do this with Flex Ant and the mxmlc compiler, no matter what customizations you do in index.template.hml, they do not appear in the output index.html file. Apparently, the command line mxmlc compiler does not look at the index.template.html file when its building the index.html file. I have searched all the documentation, but there is no way to specify which template file to use while compiling (there IS a 'template' attribute, but is for determining flash-client install options, history management, etc.)
If you anyone knows how to do this, please post a comment. That would be a very useful thing.
Tuesday, May 8, 2007
Anyways, here is the problem and the solution:
If you want to embed images into your icons or for any other purposes, you use something like this:
Wednesday, April 25, 2007
I am a long time Flash/ActionScript developer. I currently work as a software developer in the Bay Area.
Having recently started working full time with Flex 2 and ActionScript 3, I have been facing a number of issues while trying to get things done. Many a time, a blog post by some Flex developer somewhere in the world explaining how he/she solved a particular problem has helped me a lot.
The same way, I am going to start posting about how I solved certain issues/challenges while working with Flex. Also, I will be posting about unsolved issues that I cant figure out solutions for; hopefully someone would respond :-)