Final Exam Question and Answer

I’ll be posting the take-home final up here this Wednesday. Before then, please ask any questions about the material below in the comments. I’ll be following them and answering as quickly as I can, so keep coming back and checking!

The final will be comprehensive, covering everything from XHTML all the way up through Flex. You’ll have from Wednesday up until the Monday of the final to email me your answers. Also, make sure you are present during the final exam period. Attendance will taken!

2 Responses

  1. Hi. In Flex, I’m not sure what the following code is doing:
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;

    Does this bring in some kind of information from another document?

    Also, I’m not sure what is meant when you use
    resultFormat=”e4x” in the HTTPService to read the data.
    Could you please let me know what this does?

    Thank you,
    Alex Eligon

  2. The “import” lines are loading in the classes that follow. So the first line – “import mx.rpc.events.ResultEvent;” – is loading the ResultEvent class located in the mx.rpc.events collection. These kind of imports are usually provided in the tutorials or references when needed for a particular Flex component.

    E4X is a format of XML that treats each tag like a property or variable within an object. For example, if you wanted to check the author within the second entry of your blog tag in XML, using E4X you would say “blog.entry[1].author” in ActionScript (remember, arrays are usually indexed starting at 0).

Leave a Reply