tutorials

I have written many tutorials and this is the place that you will find them. Most of them are in flash, but a few of them are in ColdFusion. Who knows what ind of tutorials I will create in the future?

All of the flash tutorials can be found on my good friends website Graphic Mania who has many such tutorials on many of the topics in Graphic Design. I started writing for the site back in Flash SC 4, and I still do in Flash CS 6, which as been a number of years. Even though of the many changes in flash we try to keep up, with what is popular today. The later tutorials have been on using flash & AIR, and we are working n some gaming features.

Using the Color Picker
How To Create A Flash Login Screen Tutorial
How To Create A Flash Login Screen Tutorial – Part 2
Embedding Fonts for Components in Flash
Checkbox and AS3 in Flash CS4
Making a Guessing Game in Flash CS4
Please refer to:
For a listing of my ColdFusion tutorials
Select like with cfqueryparam
Create Update Delete example

Why ActionScript 3.0 should be your first programming language

 ActionScript 3.0, is the best programing language for somebody just learning programing!

ActionScript sounds like a weird choice, right? It’s client-side, not server-side. You can’t connect to a database or create files on the fly without some sort of middleware (like java or ColdFusion).  ActionScript 3.0 can also create AIR applications that can be deployed everywhere, the desktop, iOS, and Android! ActionScript 3.0 is write once deploy everywhere.

I think ActionScript 3.0 is worth learning, and that it’s a great starter language for budding developers. Here’s why.

  • ActionScript 3.0 is syntactically similar to other C-style languages.
    Curly braces rule! Semi-colons are awesome! Getting comfortable with how AS3 looks and works will make Java less intimidating.
  • ActionScript 3.0 is strongly-typed.
    Strongly typed languages enforce rules for variable behavior. It’s particularly useful when debugging, and will help you understand what different variable types are and how they work across languages.
  • ActionScript 3.0 is Object oriented.
    Objects are at the heart of several programming languages, and supported in several more. Getting comfortable with how OOP works in AS 3 means it is easier to understand how it works in Java and other programming languages. In fact, ActionScript is in some ways similar to Java in how it’s structured.
  • ActionScript 3.0 is a dialect of ECMAScript.
    You can treat ECMA Script as a kind of subset that defines the basic language structure, syntax and semantics. Then ECMA is only a subset of ActionScript. The language adds a wide range of features to this subset.
  • ActionScript 3.0 supports Local Shared Objects
     Yep. Local storage “super cookies” have been available in Flash for years now. What’s more, key-value datastores are the next wave of databases.
  • ActionScript 3.0 supports event-driven programming.
    Event listening and handling is critical to game development or interactive experiences in which the sequence of user input can’t be (or shouldn’t be) controlled. Knowing how to generate, add and remove elements from the stage, or when an item can be safely garbage collected are portable concepts that you can learn with ActionScript.

Getting Flash Working on Android, Jelly Bean

images

Some popular video providers have not transitioned to HTML5, so if you still want Flash on your phone/tablet, there are ways around it — just keep in mind that this is not recommended by Adobe and that the experience with the plugin. Also note that downloading the Flash Player apk file from unofficial sources could open the gates to malware on your phone or tablet, so it’s not recommended to get the file from third-party sources.

The best source to download a working official version of Flash player is from Adobe’s own site. Download the latest version (Flash Player 11.1.for Android 4.0 (11.1.115.36)) Once you downloaded the apk file, you need to transfer it to you device.  A great free application that will help is “App Installer” you can get this from the Google Play store. Make sure you download this app!

Using “App Installer” find the flash player apk file, open the player  It will most likely say unknown sources.  Click on settings and check the unknown sources box, click on the flash player again and install it.

Now that Flash Player is installed, go to your browser (Not Chrome), and change some settings. Go to advanced, and make sure “enable plugin is always on!”

I did this myself on my galaxy S III and my Galaxy Note 10.1 Tablet.

Have Fun!

41hR2NAaK2L

swf-version meaning

Flash -swf-version meaning

It’s getting more and more versions! We can’t remember them all, so here we go!

SWF Version

Compiler Option Flash Player Version AIR version
-swf-version=10 10.1 2.0
-swf-version=11 10.2 2.6
-swf-version=12 10.3 2.7
-swf-version=13 11.0 3
-swf-version=14 11.1 3.1
-swf-version=15 11.2 3.2
-swf-version=16 11.3 3.3
-swf-version=17 11.4 3.4
-swf-version=18 11.5 3.5
-swf-version=19 11.6 3.6
-swf-version=20 11.7 3.7
-swf-version=21 11.8 3.8
-swf-version=22 11.9 3.9

 

AIR SDK Path

  • MacOS : /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.348297/AIRSDK

Features

Release notes

Download Flash Player

Download AIR

Labs

Document

swf-version meaning

Flash -swf-version meaning

It’s getting more and more versions! We can’t remember them all, so here we go!

SWF Version

Compiler Option Flash Player Version AIR version
-swf-version=9 9.0.115.0 N/A
-swf-version=10 10.0, 10.1 1.5, 2.0
-swf-version=11 10.2 2.6
-swf-version=12 10.3 2.7
-swf-version=13 11.0 3
-swf-version=14 11.1 3.1
-swf-version=15 11.2 3.2
-swf-version=16 11.3 3.3
-swf-version=17 11.4 3.4
-swf-version=18 11.5 3.5
-swf-version=19 11.6 3.6
-swf-version=20 11.7 3.7
-swf-version=21 11.8 3.8

 

AIR SDK Path

  • MacOS : /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.348297/AIRSDK

Features

Release notes

Download Flash Player

Download AIR

Labs

Document

Adobe roadmap for the Flash runtimes

Say Hello to “Irving” and  “Jones” and Flash Player releases!

Flash Player and AIR “Irving” and “Jones”

Adobe is planning its next two releases for late 2013 and early 2014. These releases continue to focus on premium video, gaming, security, and stability.

Some of the features being worked on for these releases include the following:

  • OSX Mavericks support for desktop Flash Player and AIR
  • Significant reduction in iOS packaging times
  • ActionScript concurrency for mobile (beta)
  • iOS 7 support (depends upon Apple schedule)
  • Support for Windows 8.1 PlayTo
  • Support for Windows 8.1 tab suspension improvements
  • Support for Windows Internet Explorer 11 back navigation caching
  • XXHDPI icon support for AIR Android
  • pkg installer bundle for Mac OSX (vs .dmg)

Read more on Adobe’s site about the Flash Runtimes Roadmap – http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html

 

swf versions

Flash -swf-version meaning

It’s getting more and more versions! We can’t remember them all, so here we go!

SWF Version

Compiler Option Flash Player Version AIR version
-swf-version=9 9.0.115.0 N/A
-swf-version=10 10.0, 10.1 1.5, 2.0
-swf-version=11 10.2 2.6
-swf-version=12 10.3 2.7
-swf-version=13 11.0 3
-swf-version=14 11.1 3.1
-swf-version=15 11.2 3.2
-swf-version=16 11.3 3.3
-swf-version=17 11.4 3.4
-swf-version=18 11.5 3.5
-swf-version=19 11.6 3.6
-swf-version=20 11.7 3.7
-swf-version=21 11.8 3.8

 

AIR SDK Path

  • MacOS : /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.348297/AIRSDK

Features

Release notes

Download Flash Player

Download AIR

Labs

Document

Getting Flash Working on Android, Jelly Bean

images

Some popular video providers have not transitioned to HTML5, so if you still want Flash on your phone/tablet, there are ways around it — just keep in mind that this is not recommended by Adobe and that the experience with the plugin. Also note that downloading the Flash Player apk file from unofficial sources could open the gates to malware on your phone or tablet, so it’s not recommended to get the file from third-party sources.

The best source to download a working official version of Flash player is from Adobe’s own site. Download the latest version (Flash Player 11.1.for Android 4.0 (11.1.115.36)) Once you downloaded the apk file, you need to transfer it to you device.  A great free application that will help is “App Installer” you can get this from the Google Play store. Make sure you download this app!

Using “App Installer” find the flash player apk file, open the player  It will most likely say unknown sources.  Click on settings and check the unknown sources box, click on the flash player again and install it.

Now that Flash Player is installed, go to your browser (Not Chrome), and change some settings. Go to advanced, and make sure “enable plugin is always on!”

I did this myself on my galaxy S III and my Galaxy Note 10.1 Tablet.

Have Fun!

41hR2NAaK2L

setting up FDT for Flex 4 SDK & Flash Player 10.1

Aiden Tailor wrote a great blog post on how to set up the Flex 4 SDK with FDT. You can check it out here

Read what he says, and follow the instructions, I did it and it works perfect, any problems just ask!

The point to this post is to take this one step more to configure the Flex 4 SDK to work with the Flash Player 10.1

Download Adobe Flash Player 10.1 beta 3 at Adobe Labs here

In the flex 4 SDK that you just set up from Aiden’s blog:

{SDKFolder}/frameworks/libs/player/10

replace the playerglobal.swc with the flash 10.1 that you just downloaded

open the flex-config.xml replace line 16 to read

 <target-player>10.1.0</target-player>

restart FDT

Now create a new project, “Flex 4 Test”
create a Main class

package {
	import flash.display.Sprite;
	import flash.events.AccelerometerEvent;
	import flash.sensors.Accelerometer;
	import flash.text.TextField;

	public class Main extends Sprite {
		private var myText:TextField = new TextField();
		private var acc:Accelerometer = new Accelerometer();
		private var isSupported:Boolean = Accelerometer.isSupported;

		public function Main() {
			myText.width = 200;
			addChild(myText);
			checksupport();
		}

		private function checksupport():void {
	    	if (isSupported) {
		    	myText.text = "Accelerometer feature supported";
			    acc.addEventListener(AccelerometerEvent.UPDATE, getInfo);
			} else {
			    myText.text = "Accelerometer feature not supported";

			}
		}

		private function getInfo(evt:AccelerometerEvent):void {
	    	myText.text = String("at: " + evt.timestamp + "n" + "acceleration X: " + evt.accelerationX + "n" + "acceleration Y: " +   evt.accelerationY + "n" + "acceleration Z: " + evt.accelerationZ);

		}
	}

}

Run file. I do get the following warning

This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.

UPDATED
To fix this warning is an easy fix as it turns out, I had to search the flex-config.xml file to find it, but if you open the flex-config.xml file on line 385, you will see

<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>

make sure this property is set to true! it is set to false by default. This will get rid of the compiler warning when you run your projects using the Flex 4 SDK.

 

For some reason the text below in the swf file is very small, this is not the case! If you could like to see a version with larger text, lease go here.
The final swf
[kml_flashembed publishmethod=”static” fversion=”10.0.0″ movie=”http://blog.hawaiiflash.org/wp-content/uploads/2010/03/Main.swf” targetclass=”flashmovie”]

Get Adobe Flash player

[/kml_flashembed]