I have been getting some requests for some examples of the components included on DRK 3, so I am going to try and post a bunch over the coming days.
The first example is a simple one showing how to validate user input using the TextField component and Data Validation library.
You can view a running archived version here
And here is the code:
#include "com/macromedia/validation/DataValidation.as"
//set the function to be called when isValid is called.
//in this case it is the isDigit function from the DataValidation library
myTextField_txf.setValidationFunction("isDigit", DataValidation);
//set the default textfield icon to error.
myTextField_txf.setIcon("ftf_errorIcon");
//this is called when the validate button is pressed
validate_btn.onRelease = function()
{
//call isValid to see if user input is valid.
if(!myTextField_txf.isValid())
{
//if it is not, give an error and show the error icon.
msgBox_txf.text = "Invalid Input. Please enter a number.";
myTextField_txf.showIcon(true);
}
else
{
//if it is valid, make sure the icon is off.
msgBox_txf.text = "The input is a valid number";
myTextField_txf.showIcon(false);
}
}
You can view the on-line docs for the TextField component here.
OK. As many of you have noticed, some of our DRK marketing materials use some pictures of me. You can see some examples on the macromedia home page (you may have to reload it a couple of time) as well as here, here and here.
Well, I don’t know what to say except that marketing made me do it! Anyways, I have already seen a couple of spoofs, so I figured I would roll with it. So, I am going to hold a contest for the best spoof of the DRK ads. The winner will receive a copy of DRK 3.
If you are a DevNet Pro or DevNet Essentials subscriber, DRK 3 will be available for download from Your on-line subscription portal in the next couple of hours. You should receive an email when it is available.
Update : DRK 3 is now available for download from your subscription portal.
As I posted earlier, the DevNet Resource Kit Volume 3 (DRK 3) is available today. One of the highlights of DRK 3 is the Flash UI Components Set 5.
The new component set includes the following components:
Tab View: The Tab component provides an advanced user-interface element for displaying and navigating between multiple elements within an application.
Week View: The Week View Calendar component allows users to navigate easily through a calendar and select days and weeks.
DevNet Resource Kit Volume 3 (DRK 3) is avaliable today to DevNet Pro and DevNet Essentials subscribers. DRK 3 contains Flash, Dreamweaver and for the first time, complete ColdFusion content.
So what Flash content does it contain?
I have written a logged in article which discusses some of the highlights of DRK 3.
I have been getting a lot of questions today about which DRKs are included with DevNet Pro Subscriptions. So here is the answer.
When you subscribe to DevNet Pro, you get:
So basically, DevNet Pro includes DRK 1 and 2, which were part of Studio MX plus, plus a subscription to DevNet Essentials. Hope that helps clarify the question.
We have launched a new Macromedia weblog. The Macromedia Tech Sales weblog is run by some of our Sales Engineers (SEs). They are the developers who go out and run the seminars about our products, and use the tools almost every days.
There are already two posts (or I should say mini tutorials) up on the site:
They will be making posts about multiple products and technologies, so make sure to check them out.
If you are using multiple Macromedia products, it can be difficult to keep up with the latests patches and updates (unless of course you have DevNet Pro).
I just noticed that we have a page on our new website which lists the latest product and player updates.
You can view the page here.
Dave Yang has posted a ton of photos from the Flash in the Can conference.
Of particular interest are two photos from Josh Davis’s presentation outline some useful tips for doing some cool stuff with Flash.
Ripping large amounts of shapes and colors for use in ActionScript
Capturing ActionScript Programs for Print
You can view all of the pictures here.
Btw, I had a great time at the conference this week. I want to thanks Shawn Pucknell and crew for putting on such an amazing conference. I am already looking forward to the conference for next year.