Saturday 16 April 2011

Actionscript 3.0 Jargon

What is a Proxy Class?
When you need to get data from an external source or create a virtual object (I will explain this later) then you require a Proxy Class. A Proxy Class will handle the communications between your application and the external source or API. The Proxy Class will handle the data calls and errors then it will dispatch an event to the event of success or failure. 


Virtual Proxy Class?
This is useful to manipulate  an object before it has loaded. A good example of this is when we load an image, we store the image as an object and then add the image to the stage before its loaded. Now we can manipulate this image (change the dimension or add filters) before its loaded, this is called virtual Proxy.

No comments:

Post a Comment