Warning: Cannot modify header information - headers already sent by (output started at /home/itontips/public_html/msinghinteractive.com/blog/index.php:4) in /home/itontips/public_html/msinghinteractive.com/blog/wp-includes/feed-rss2.php on line 8
Manjit Singh - Flash Developer » AS3 http://www.msinghinteractive.com/blog Flash/Air AS2, AS3 Developer Mon, 25 Jul 2011 12:58:25 +0000 http://wordpress.org/?v=2.8 en hourly 1 Actionscript 3.0 programming with classes and objects http://www.msinghinteractive.com/blog/2011/07/actionscript-3-0-programming-with-classes/ http://www.msinghinteractive.com/blog/2011/07/actionscript-3-0-programming-with-classes/#comments Mon, 25 Jul 2011 12:26:01 +0000 admin http://www.msinghinteractive.com/blog/?p=99 Programming using classes is essential to take advantage of the full power of actionScript 3.0. By using classes, you participate in object-oriented programming, a versatile way to think about and structure code. Objects are high-level building blocks, and classes are the constructs which define them. In this article you will learn what constitutes a class, how classes relate to objects and other language constructs, and how write a class in ActionScript 3.0

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.


]]>
http://www.msinghinteractive.com/blog/2011/07/actionscript-3-0-programming-with-classes/feed/ 0
Adobe Flash/Air CS5.5 and Flex 4.5 for Apple iPhone, iPod touch, iPad and Android tablets http://www.msinghinteractive.com/blog/2011/06/adobe-flashair-cs5-5-and-flex-4-5-for-apple-iphone-ipod-touch-ipad-and-android-tablets/ http://www.msinghinteractive.com/blog/2011/06/adobe-flashair-cs5-5-and-flex-4-5-for-apple-iphone-ipod-touch-ipad-and-android-tablets/#comments Fri, 24 Jun 2011 14:47:12 +0000 admin http://www.msinghinteractive.com/blog/?p=91 Since 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 also 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 developer 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 actually 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

adobe-and-apple-and-flash

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

]]>
http://www.msinghinteractive.com/blog/2011/06/adobe-flashair-cs5-5-and-flex-4-5-for-apple-iphone-ipod-touch-ipad-and-android-tablets/feed/ 0
Easy to use Flash AS3 Contact Us form class http://www.msinghinteractive.com/blog/2009/09/easy-to-use-flash-as3-contact-us-form-class/ http://www.msinghinteractive.com/blog/2009/09/easy-to-use-flash-as3-contact-us-form-class/#comments Thu, 03 Sep 2009 15:12:19 +0000 admin http://www.msinghinteractive.com/blog/?p=3 I have created a new easy to use Flash AS3 Contact Us Class. This clas creates all the required elements of a flash contact us form like Name, Email, Subject, Message Input fields and Submit and Reset buttons. On backend I am using php script to post the flash email form data to server. Here is the sample code how to create an instance of this class and your contact us form is ready with minimum efforts. Below I will show you how to use this code to create the dynamic contact us form.

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

]]>
http://www.msinghinteractive.com/blog/2009/09/easy-to-use-flash-as3-contact-us-form-class/feed/ 8