Archive for the 'Students' Category

How to load xml in Actionscript 3

If you have content stored in a database or in xml that is suitable for presenting in flash, then XML is one of many ways to give flash the content. Information stored in XML can be similar to this example:


<mobiles>
<mobile image="images/C905_product_quality_image_1.png" name="C905" />
<mobile image="images/G502_product_quality_image_1.png" name="G502" />
<mobile image="images/T650i_product_quality_image_1.png" name="T650i" />
<mobile image="images/W302_product_quality_image_1.png" name="W302" />
<mobile image="images/W350_product_quality_image_1.png" name="W350" />
<mobile image="images/W902_product_quality_image_1.png" name="W905" />
<mobile image="images/X1_product_quality_image_1.png" name="X1" />
<mobile image="images/z770i_product_quality_image_1.png" name="Z770i" />
</mobiles>

In order to get the XML content in flash you have to create a URLLoader and load the url where the XML is located. Here is an example how to get the attributes in the mobile node Read more »

Icon carousel with XML support version 2 now in AS3

I previously posted a icon carousel written in as2, but wanted to do the same for as3. Both the AS2 and the AS3 version loaded an XML-file that was parsed to retrieve the content/images that should be viewed. This article explains the files needed with code to get the final result visualized below.

First and foremost we have to create the XML-file that holds the data. We do not need a XSD for this and it´s just rock´n roll. Read more »

Understanding the use of designer objects in separate as-file(class)

There are many ways to go when you want to start creating a flash application with your own fresh idea, but there are problems understanding the interaction between the objects you create in the designer and how to access these from separate actionscript classes. This post will help you understand the basics on doing this.

There are different approaches with this type of interaction:

  1. Having a static object visually in the movie with “instance name”
  2. Linking the object to “Export for Actionscript”

Having a static object visually in the movie with “instance name”
folder rubyrails

If you have an icon placed on the stage you can access this object directly just by using the “instance name”. The interaction that flash does behind the scene makes you able to use these objects as already created and added objects in the OOP language. Since these objects are created you can use them directly. This is the same procedure as you would use the actionscript panel in the designer to access the drawn objects on stage. Below you can see how to access the object Read more »

Third leg of teaching actionscript 3

myvideosSo I´ve done two lectures since the last post, and my workflow has been increased on both of my jobs, so this post is a late one, but better late then never. My students are beginners in using actionscript 3, but have had two full-day events in actionscript 2 so they have knowledge in using flash and what its good for.

I thought long about what the students should create using actionscript 3 but it was difficult so the students took over and said what they wanted to build. The result was YouTube, in flash. You can see the demo and download the code from the link on the page http://flash.lillegutt.com/project/nith/

The code is not well commented, but some comments exists. The sample here will show how the basics in object oriented coding and give a few pin points on how to do many things.

Hope you like it. Please give me a views/comments/changes if you download the code and test it out.

Teaching Adobe Flash part 1

Presentation part 1

Hi guys, just created a category for you to go to when you need som guidance. The first part contains the basics of learning Actionscript 3. The example in the presentation is about creating a Contacts class in order to have objects pointing to the information you retrieve from either a service or just static. You´ll find the presentation below

Read more »