Flash Player 10 finally released

icon_flash_lg.png

Flash player 10 has finally been released with new and funky stuff. Here is a summery of the new top features from on of their release pages:

  • 3D effects
  • Custum filters and effects
  • Advanced text support
  • Dynamic sound generation
  • Vector data type
  • Dynamic streaming
  • Speex audio codec

Really looking forward to getting the new Flash CS4 in the mail soon…

Error handling in actionscript 3

When writing actionscript you allways forget to add some lines of code which are necessary on either syntax level or runtime level. Once you get the hand of it, you will understand what went wrong even before it happened. Sometimes you can struggle with the one-liner for many hours when the error only was an error so simple. Thats why this little post could come handy. If you should experience errors not described below, please post a comment and I´ll add it to the post. Hope this will help you a bit when pulling your hair.

1009: Cannot access a property or method of a null object reference.
This is a runtime error stating that an object has not been initialized. You can find where the error occurred if you look at the output below the error line. Here is an example of what you might experience:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ThumbHolder()
at ThumbsContainer() Read more »

Creating symbols and associative classes

When you create symbols in Flash CS3 and export them to Actionscript in the standard way, Flash generates a class representing the symbol. This is great when you want to access the symbol from the code. Every symbol you have created and is located in the library view can be exported to actionscript. If this is new to you, please recap on the article Understanding the use of designer objects in seperate as-file(class).

linkage_associative_class2

When you want to manipulate the symbol at runtime you would want to create your own class for the symbol. Read more »

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 »

AMFPHP – Server interaction with ActionScript

AMFPHP logoAll of the blogs i follow concerning flash, actionscript and future web technologies have now looked into AMFPHP so why should`nt I. AMFPHP is a open source implementation of the Actionscript Message Format(AMF). This message format lets you send native types and object to and from a server because the AMF allows for binary serialization. What this means is that you can have a folder on your server with AMF installed, create some PHP-files with your request methods and your server is done. The only thing now is to write a few lines of actionscript to connect to your server and your server interaction is done.

I will be back to write a tutorial on this matter so you hold on… or just go to Lee Brimelow`s second part of his AMFPHP video tutorial. Also check out their site.

Have fun!

« Previous PageNext Page »