Classes in real world
To program using classes you must understand what classes are. Classes per-form multiple roles in object-oriented programming, and there are many ways to think about them. Classes often work best, and are easiest to think about, when they represent objects in the real world. You can, for example, create a class to represent a bicycle. That bicycle can have a color, a size , and two tires. You can pedal it, brake it, switch gears, and ring the bell. The bicycle has relationships with other real-world objects: your feet, the road surface, occasionally a bike pump. If we model bicycle as a class we represent all of these, and carefully design it to interact with the other objects in the right way.
Object
Object can have slightly different meanings in different contexts. An Objects is the basic unit of objects oriented programming. It is self contained thing that contains data and operations. Every objects is defined by a class. For example a bicycle object would be defined by the class Bicycle.
Class
A class is a blueprint for an object. It defines the object in full: the data and operations of that object. You write classes before you run your program, and when your program is running, they are set in stone. Classes contain the code you write. When your program runs, it’s an orchestrated production of objects, and that productions is directed by the code in the classes.
Instance
An instance is a specific object created from a specific class. It may be used by itself or with the name of the class to specify the type of the instance, as in “an instance of the FuzzyLobster class”. Instances are unique.

Now Apple has removed the restrictions from Adobe for publishing and submitting applications for iPhone/iPod touch and iPad, developed using Flash/Flex and AS3. I hope all the Flash developers around the world have welcomed Apple’s decision. After this announcement from Apple Flash Developers have endless opportunities to develop apps for iPhone and iPad using Flash CS5.5 and AS3 rather than learning XCode and Objective C skills.
And another very good news for Flash Geeks is that with the release of Flash CS5.5 and Flex 4.5 they are not only restricted to develop applications for just Apple iPhone/iPod touch/iPad but can also develop for All major tablet and smart phone device which are running Google’s Android Operating System like HTC, Motorola, Samsung etc. Once developer finished coding their application using AS3 they can use Adobe’s iOS packager or Android packager for publishing and running their games/applications for relevant devices. This packager basically converts all ActionScript byte code to native iOS/Android appellation.
But one thing I would like to point about which many Flash Developers might not be aware of is that they have to get registered for apple iOS Developer programme. It costs 99 USD per year and they can submit as many apps as they want to submit to Apple iTunes store. In iOS Developer programme portal developers will be able to create certificates which they will need when submit applications to app store and provisioning profiles which are required for testing of applications on actual devices during development. And same applies to for Android Market but sure for less annual fee which is only USD25. So in order to submit applications to Android market you need to do following three things.
1. Create a developer profile
2. Pay a registration fee ($25.00) with your credit card (using Google Checkout)
3. Agree to the Android Market Developer Distribution Agreement
So now all the browser based flash games can be converted as iPhone and other mobile device apps which will encourage the Flash Developers Community contribute more in mobile apps development.
Well done Adobe, Well done Apple
]]>1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package{ import classes.*; import flash.display.*; public class main extends Sprite{ public var contactForm:ContactUsForm; public function main(){ contactForm=new ContactUsForm(400,450); addChild(contactForm); contactForm.x=100; } } } |
This Action Script code is free and available to download below but you need to do few things before it can be fully functional according to your requirement.
1. Edit the send_email.php file and change $receiver variable and put your email id there.
2. Or you can change the send_email.php file path in ContactUsForm to point it to the folder wher you upload php file.
3. Make sure send_email.php is in same folder as the contact us form swf is on server.
And your contact us form ready:

Soure Code Download
Enjoy!
M
]]>