Last week, I was able to implement this into an application we’re currently developing at work. It took me a while to figure it out but I must say, it is really handy. A ViewStack for example will allow switching from one child to another, but as the child of that container gets to be really complicated, it may highly affect your application’s performance.
Why???
If no creationPolicy is specified for a container, that container inherits its parent’s creationPolicy. If no creationPolicy is specified for the Application, it defaults to ContainerCreationPolicy.AUTO.
This is where Deferred Instantiation can save your day.
I have below a basic example of how you can implement Deferred Instantiation using createComponentFromDescriptor()
createComponentFromDescriptor allows you to create one child at a time.
March 25th, 2008 Ashier de Leon | Posted in Flex |
When creating Flex components, all child components (buttons, combobox, etc..) you add are always publicly accessible. There is a way to hide this and this is by using the Metadata tag "Exclude"
Now, the "btn" property won't be accessible outside that component. will still be accessible but it won't show up in the code hinting. Thanks to Sid Maskit for pointing this out.
Sid Maskit provided ways on how to do this not using the [Exclude] metadata/
Here's how I managed to setup BlazeDS on my windows local machine.
Steps:
1. Download the latest BlazeDS.
2. Extract it.
3. Download the latest Java Development Kit (JDK), Install it.
4. Set JAVA_HOME environment variable.
Setting up Environment Variable in Windows
1. Open Control Panel
2. Click the System icon then a window will pop up
3. Go to the Advanced tab
4. Click the "Environment Variables"
5. Select "New" in System Variables.
6. In the Variable Name textbox type JAVA_HOME
7. In the Variable Location textbox type the JDK directory
you should be able seeing this:
8. Click Ok.
9. Click Ok.
4. You're done installing BlazeDS.
Running Installed Sample Applications.
1. Start Tomcat by double clicking [blazeds directory]tomcat\bin\startup.bat
2. Now, check if it works by running http://localhost:8400/ in your browser.
January 18th, 2008 Ashier de Leon | Posted in Flex |
While reading at Ted Patrick's blog, I found out that they are already working on flex to run on mobile platforms. This again is a good news for us. Just like what Ted said, Flex is really revolutionizing development, either its in the web, desktop, and mobile.
* Advanced DataGrid, OLAP DataGrid, advanced charting, and automation agents are now part of the Advanced Data Visualization Developer Guide. Advanced Data Visualization is available when you purchase Flex Builder 3 Professional, although a watermarked version is available in Flex Builder 3 Standard.
* For the core Flex documentation, we reorganized the online table of contents to display information in a topic-oriented (as opposed to book-oriented) manner. Go to http://livedocs.adobe.com/labs/flex3/html/index.html to see what I mean.
* Of course, the big news is the release of BlazeDS. You can get more information at http://labs.adobe.com/technologies/blazeds/ and Mike Peterson will be blogging about the docs later today.