Archive for February, 2011

Chad Upton

Cloning Objects in Actionscript (Deep Copy)

Wednesday, February 9th, 2011

By Chad Upton – Senior Consultant

If you need to make a copy of an object in ActionScript, rather than create a reference, you can use this clone method. I made it a static method so you can put it in a utility class and reference it from anywhere:

static public function clone(source:Object):*{
 var byteArray:ByteArray = new ByteArray();
 byteArray.writeObject(source);
 byteArray.position = 0;
 return(byteArray.readObject());
}

Follow us on Facebook and Twitter

bileni

Inferring an XSD from XML

Wednesday, February 9th, 2011

By Bilen Imam – Consultant

When working with forms in LiveCycle, it is important to know the structure of the XML data that gets exported from the form and passed around the LiveCycle process. In ES2 Adobe has introduced the ability to create and use an Adobe Data Model to describe the structure. Workbench has a tool which will allow you to to create these models and Adobe is really trying to encourage developers to use it more, not just in LiveCycle development, but also in enterprise level development with Flex and Java.

However, being old school, I still found it more comfortable to use an XML schema file (.xsd) to describe the structure of the data in the form and to use in a LiveCycle process to be able to access the separate fields in a form.

Creating an XSD can be troublesome, creating it from scratch even more so. The easiest method to create the XSD file is by inferring it from an XML file. There are many XML editors that are able to do this, a few being:

Unfortunately you have to pay for these software. There are a few free options out there, my favorite being Trang. Its a small and simple command line tool that works in multiple platforms. The way to use it is to

  1. Download Trang. You can download Trang at http://www.thaiopensource.com/relaxng/trang.html
  2. Extract the files from the zipped download
  3. Run the command passing your input XML file (it can be multiple XML files) and specifying the result XSD file.

The syntax of the command should look like;

java -jar trang.jar input.xml input2.xml input3.xml output.xsd

And its as simple as that! You have your XSD file that you can use in your form and in your process to describe the structure of the data.

edv

NTG Now Offers Full Range of Android Training

Tuesday, February 8th, 2011

In connection with our Flex/Flash practice New Toronto Group has been developing applications on a variety of phone and tablet devices using the Android operating system.

To supplement our Android platform Application Development practice New Toronto Group now also offers a comprehensive set of courses on Android development including

Students are able to learn best practices for the Android platform from instructors who have hands on development experience.

edv

Adobe Connect: Toronto Seminar (Prov Gov’t) – Feb. 16, 2011

Wednesday, February 2nd, 2011

New Toronto Group and Adobe Systems have teamed up to provide Adobe Connect software, a leading solution for web conferencing and eLearning. This package is listed as an Ontario Public Sector Vendor of Record product, under VOR 1017.

Join New Toronto Group and Adobe for a live seminar showcasing how Adobe Connect can provide the ability to captivate your audience with interactive web meetings and virtual classroom experiences.

Winner of the 2010 Bersin Award, and recognized as a leader by Forrester Consulting, (June, 2010) Adobe Connect is a “must see” if your organization is evaluating eLearning and web conferencing software solutions. This award winning solution provides unique capabilities including:

  • Flash technology base – allows easy access to on line sessions.
  • Reduced network requirements – allows better interactivity.
  • Strong security – feel comfortable with sharing information.
  • Feature rich environment – based on established software base.
  • 7th generation solution – thousands of customers worldwide.

Learn how organizations like the Ontario Ministry of Health, the Ontario Ministry of Education and U.S. Dept. of Defence have implemented Adobe Connect for their eConferencing and eTraining needs.

Date / Time: February 16, 8:30am – 11:00am

Location: Queen’s Park Conference Facilities – Niagara Room, Macdonald Block, 77 Wellesley Street E., Toronto, ON

To register: http://ntg.acrobat.com/e19917765/event/registration.html

For more details, phone Tom Rowe at: 613-595-0121

edv

Adobe Connect: Ottawa Seminar (Federal Gov’t) – Feb. 9, 2011

Wednesday, February 2nd, 2011

New Toronto Group and Adobe Systems have partnered to provide Adobe Connect software. Adobe Connect is listed on the DISO.

Join New Toronto Group and Adobe for a live seminar showcasing how Adobe Connect can provide the ability to captivate audiences with interactive web meetings and virtual classroom experiences.

Winner of the 2010 Bersin Award, and recognized as a leader by Forrester Consulting, (June, 2010) Adobe Connect is a “must see” if your organization is evaluating eLearning and web conferencing software solutions. This award winning solution provides unique capabilities including:

  • Flash technology base – allows easy access to on line sessions.
  • Reduced network requirements – allows better interactivity.
  • Strong security – feel comfortable with sharing information.
  • Feature rich environment – based on established software base.
  • 7th generation solution – thousands of customers worldwide.

Learn how Adobe Connect is currently used by several Federal Government departments including NRC, DND, HRSDC and CFIA. It is also widely used for eConferencing and eLearning by organizations such as the Ontario Ministry of Health, the Ontario Ministry of Education and U.S. Dept. of Defense.

Date / Time: February 9, 8:30am – 11:00am

Location: Adobe Systems Canada – Acadia Room, 343 Preston Street, Ottawa

To register: http://ntg.acrobat.com/e21492724/event/registration.html

For more details, phone Tom Rowe at: 613-595-0121