I have received a couple of emails over the past couple of days, asking how to manually loop through a RecordSet / DataProviderClass. It is actually pretty simple and utilizes the getItemAt() and getLength() methods of the DataProviderClass (pseudo interface).
Here is the code:
//rs is a RecordSet object retrieved via FlashRemoting
var len = rs.getLength();
var tmpObj;
for(var i = 0; i < len; i++)
{
tmpObj = rs.getItemAt(i);
trace("Field 1 : " + tmpObj.field1);
trace("Field 2 : " + tmpObj.field2);
}
This will work for all RecordSet and DataProviderClass classes.
DRK 1 includes some ActionScript classes for sending and retrieving email via Flash Remoting. It also contains an EmailAddress class that represents a valid email address (its basically validates that the email address is in a valid format).
So, why am I talking about this? Because I am trying to figure out what other types of data or user input would be useful to have validation functions for?
Thus far I have thought of:
DRK 3 is shaping up very nicely. We have all of the Flash components and some other cool stuff lined up, and I have some time to get some additional content together. So, what type of content do you want to see on the next DRK? Articles, sample applications, code libraries, etc..?
Post your thoughts and ideas in the comments section. Be as general or as specific as you like.
With the ton of announcements yesterday about DevNet Subscriptions, FreeHand MX and Studio MX Plus, I forgot that we also released some new Flash MX resources on the new DevNet center.
We also launched the new FreeHand MX Development center which has a cool article on how to make your own Macromedia rune with FreeHand MX.
We are considering publishing an RSS resource feed along with our current XML resource feed. I have published a beta of the feed, and would appreciate any feedback on it. The current beta is RSS 1.0 using the Dublin Core (dc) module.
Is this something that would be useful? Are there any bugs in the feed? Do you want any additional information? Have I formatted the date field correctly? Post you thoughts and suggestions in the comments.
The Macromedia Designer and Developer Center is one year old. It has become one of the top on-line resources showcasing the works, talents and knowledge of some of the top community leaders and developers.
Today we re-branded the site from DesDev to DevNet, why? From Craig Goodman’s article:
The Designer and Developer center has been extremely successfully, showcasing articles from some of the most talented developers and designers on the web. However, we felt that the name, Designer and Developer Center left out the most important part, the relationship between designers, developers and Macromedia. DevNet is the central space where designers and developers can “hook up” with Macromedia and other designers and developers. This may through contributing content and articles, exchanging components and extensions on the exchange, or communicating directly with other designers and developers on the forums.
We announced today the release and availability of FreeHand MX. The version offers tons of new features and functionality including improved Flash integration:
Increase productivity and streamline development of Macromedia Flash MX projects. Plan, layout and design entire projects in single document. Now you can even import more complex Macromedia Flash movies (SWFs) into your FreeHand MX document and integrate them into your designs before exporting back out to SWF with improved efficiency. Placed SWFs can be edited using the new launch and edit in Macromedia Flash MX functionality. Macromedia Flash MX can also open and import FreeHand MX files.
Today we announced Macromedia DevNet Subscriptions. There are two levels of DevNet subscriptions: DevNet Professional and DevNet Essentials. DevNet Essentials is a yearlong subscription to the DevNet Resource Kit (formerly Developer Resource Kit) and includes four DRKs a year. DevNet Pro is a software subscription service consisting of Macromedia MX tools, servers, and DevNet Essentials. Both levels include access to a personalized subscriber portal where you can manage your license(s) and download the latest software, servers, DRKs, and upgrades based on your subscription level.