Sunday, January 1, 2017

How to make HelloWorld Program for web,desktop and mobile using actionsctipt 3.0

Adobe Flash Professional or Animate CC is a adobe product. which allow you to write Web,Desktop and Mobile Applications using single programming language(ActionScript 3.0). In this post i will teach you how to write a HelloWorld (A Basic Program) in ActionScript3.0 Language. 

Step 1. Download and install Adobe Animate CC. you can download 30 days free trail of adobe animate cc form adobe site (http://www.adobe.com/in/products/animate.html)

Step 2. Open Adobe Animate CC and choose any plateform (Web,Air for Desktop,Air for Android or Air for IOS)





Step 3. Now create a new file and choose ActionScript Class and name it Main and save it on same location where you saved HelloWorld FLA file.





step 4. Now start coding in Main.as file.

package
{
   import flash.display.Sprite;

   public class Main extends Sprite

   {
      public function Main()
      {
           //method to print output
           trace("Hello World!");
      }
   }
}

"trace" is a function which is used to print output. it is the same as print function. In parameters you can pass any kind of object.

Step 5. Now save "Main.as" file and open "HelloWorld.fla" file and in documents class, write "Main" which is our document class file.

Step 6. Now save it and compile it by pressing control + enter keys.

Now you will see HelloWorld text in output panel.

if you want your result on screen then you have to follow few more steps

step 7. In HelloWorld.fla choose text tool from tools panel then drag and drop it into stage name and change its instance name to mytxt and embed text.




step 8. now you have to add one more line in you code

           mytxt.text = "Hello World!";

code:- 

package
{
   import flash.display.Sprite;

   public class Main extends Sprite

   {
      public function Main()
      {
           //method to print output
           trace("Hello World!");
           mytxt.text = "Hello World!";
      }
   }
}






step 9. Now, save it and compile it by using control + enter keys and booommm you see "Hello World!" text on you screen.




In upcoming blog i will come with advance application and game programming.

Till then, Keep coding...☺☺✌






Wednesday, December 28, 2016

How to make Applications and Games for Web,Desktop(Mac and Windows),Android and iPhone using single programming language.

Adobe Animate CC 

For nearly two decades, Flash Professional has been the standard for producing rich animations on the web. Because of the emergence of HTML5 and demand for animations that leverage web standards, we completely rewrote the tool over the past few years to incorporate native HTML5 Canvas and WebGL support. To more accurately represent its position as the premier animation tool for the web and beyond, Flash Professional will be renamed Adobe Animate CC, starting with the next release in early 2016. [Update 2/8: Animate CC is now here!]



you can download 30 days free trial version of adobe animate cc from adobe site(http://www.adobe.com/in/products/animate.html). In Adobe animate cc you can use ActionScript 3.0 language to make web, desktop, Android and iPhone Applications.


Here is the start screen of Adobe Animate CC you can select you plateform for which you want to make application or game.



Using ActionScript 3.0 you can make Arduino, Microsoft Kinect, Camera Motion Sensor, Leap Motion Applications and Games, using ActionScript 3.0 you can also make 3D Applications and Games for Web,Mobile and Desktop.


In next blog i will come with some AS3.0 Programming tutorials.