Increasing memory in FDT Enterprise Standalone

To increase the memory in FDT Standalone go to your FDT Enterprise folder

/Applications/FDTEnterprise

right click on the FDT program to show package details

in the terminal Open the

Mac OS/ eclispe.ini

The eclipse.ini file consist of

-startup
../../../plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.0.0.v20090519
-product
com.powerflasher.fdt.product.product
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx768m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

On line 15 -Xmx768m this value is the memory currently,
I am going to try to change this to -Xmx1024m.
I will let you know how this works out.

I would like to thanks @LittleBuddha87 & @a_campitelli for their help on twitter!

adding flash player 10.1 support for Flash CS 5

When using Flash CS 5, and using the Actionscript 3 template there is only the option of targeting Flash Player 10.0. I am trying to add flash player 10.1.

I found that the playerglobal.swc for flash player is located at

/Applications/Adobe Flash CS5/Common/Configuration/ActionScript 3.0/FL10/playerglobal.swc

Therefore I thought that I would download the playerglobal.swc for flash player 10.1 and add the folder FP10.1 where

/Applications/Adobe Flash CS5/Common/Configuration/ActionScript 3.0/FL10.1/playerglobal.swc

then I would have the option to choice between an AS 3 file using either flash player 10.0 or flash player 10.1, but no luck. I could replace the  flash player 10.1 playerglobal.swc in the Fp10 folder and be able to use it, but I want both options.

I am looking into this today, as I don’t see where the players are for the older versions either.

If anybody knows a solution, please let me know.

I would like to thank Antonio Holguin very much for his help on this!
he posted a solution on his blog.

First read his post on updating Flash CS 5 to use Flash Player 10.1, this is done by replacing your current playerglobal.swc with the one for flash player 10.1. This works great, but I wanted a solution to have the option to use flash layer 10 and flash player 10.1.

There is another post on swfHead Swapping Between FP 10 and 10.1 playerglobal.swc in Flash CS5 a must read if you are interested in this!

Just follow the instructions on his post, and it works perfect.

I created a folder FL10.1 with the flash player 10.1 playerglobal.swc in

/Applications/Adobe Flash CS5/Common/Configuration/ActionScript 3.0

then open the file FlashPlayer10.xml located in

/Applications/Adobe Flash CS5/Common/Configuration/Players

change the following lines to this

<player id="FlashPlayer10.1" version="10" asversion="3">
<name>FlashPlayer10.1</name>

also change the path to your playerDefinitionPath for as3

<playerDefinitionPath as3="$(AppConfig)/ActionScript 3.0/FP10.1/playerglobal.swc" />

that is it, when you start a new flash AS 3 file, it is still flash player 10, but if you go to publish settings you will now see the option to target flash player 10.1

Now you can switch from flash player 10 & flash 10.1!

I did notice on snag, while targeting 10.1 and using the TLF text I got this error message, A strange error while suing flash player 10.1 as the error says ” supported with Flash Player 10 or higher!

This issue is fixed now, check out the post on swfHead.

you need to add the line

<feature name=”textLayoutFramework”       supported=”true” />

to the features node. Antonio has updated his xml file download!

thanks so much Antonio  for all your help on this!

flash player version when test movie in Flash IDE

To test to make sure I have the same version of the flash player for the standalone, external, and plug in I did a test:

import flash.system.Capabilities;

//show results in the text fields
version.text="flash payer verion"+"  "+ Capabilities.version;
playerType.text="Player Type"+"  "+ Capabilities.playerType;

//trace results for the output window
trace(Capabilities.version);
trace(Capabilities.playerType);

which version of the flash player is being used when I test movie in flash CS 5. I know it is the external one, but the version number is different.

When I use Test Movie, launched in the Flash CS 5 IDE using command enter, I am using the External version:
MAC 10,1,52,14
External

When I debug movie I am using the StandAlone version:
MAC 10,1,82,76
StandAlone

When I publish the file, and I view it in the browser I am using the plugin version:
MAC 10,1,82,76
PlugIn

You will notice that the External one(used by test movie in the flash IDE) is a different version, than the Standalone & Plugin version

I went to adobe site for the latest downloads:
Adobe Flash CS5 Professional update (11.0.1) Did this in the past!

Plugin Flash Player

Debug & projector versions:

I downloaded and installed all 3 version:

I replaced the version in:

/Applications/Adobe Flash CS5/players

Is 10,1,52,14 the latest External version for flash player 10.1? or Am I missing something here?

Download the files used here

creating a swc file with FDT

Create a new As 3 project in FDT, here is a simple example of displaying text

package {
	import flash.text.TextField;
	import flash.display.Sprite;

	/**
	 * @author johnbarrett
	 */
	public class Main extends Sprite {
		private var myText : TextField = new TextField();
		public function Main() {

			myText.border = true;
			myText.x = 10;
			myText.y = 10;
			myText.width = 220;
			myText.height = 20;
			myText.text = "Creating a swc using FDT";
			addChild(myText);
			//trace(myText.text);
		}
	}
}

Now if you just run this file in FDT, you will see “Creating a swc using FDT” in a text field, no surprise here, but actually you did not actually create the swc file yet, to do so go to Run – >Run Configurations

Choose  double click this and create a project name for it, I like to use the same name as the project, in this case my project is called Ant. then choose your settings

hit apply, and then run, and your swc will be created

Now I will show a much better way using an Ant script for this.

create a build.xml file this is the ant task file that will be used. Making this in FDT is really easy:

<?xml version="1.0" encoding="UTF-8"?>
<project name="Ant">

	<target name="create swc">
		<fdt.launch.library projectname="Ant" target="../bin/Main.swc" />
	</target>
</project>

then drag this build file into the ant prospective

hit the green arrow to run, and Ant will create your swc.
Make sure you use the same Jre was workspace, otherwise you will get an error!

the file has a project name, same as the project name in FDT (Ant in my case), then in the build file I give it a target name “create_swc” as this is what this does. You can have many “tasks” in your build file. Then by using the fdt.launch.library projectname property, and using target to tell here you want the swc file to go, it is done.

you can you variables to in Ant as well, but this was just might as a simple tutorial, next one I will show that way.

Pretty easy, right?

Demand for Flash Developers is way up!

Reading on the Wall Street Journal’s website, it seems like the trend for flash developers & Engineers is way up!

according to the article:

[box] At the same time, the supply of such engineers remains low. It is particularly difficult to find Flash engineers who have both an artistic and computer-science background, say executives.[/box]

Therefore, there are more jobs than flash developers to fill them, so employeers are having troubles finding qualified flash developers to fill their positions! This is great news if you are a flash developer!

read the original post  on WSJ

Adobe Web Fonts on Typekit

Adobe has launched Web Fonts on Typekit. The Typekit service makes it easy to sign up and start adding rich typographical content to your sites right away.  And with over 120 Adobe Web Fonts (from 16 families) now available from Typekit, you have even more to choose from.

Web Developers: 
Adobe Web Fonts and the Typekit service enable developers to expand well beyond the same small set of web-safe fonts they have been using for years with access to broad font libraries from many foundries and now fonts from Adobe.  Using the @font-face rule in CSS, developers can now produce sites where headlines and body text can be chosen from a broad array of fonts, and referenced directly in their code.

Web Designers:
Web Designers  have long been looking for greater flexibility and typographic variety when using fonts on the web.  For years, they have been confined to the same set of web-safe fonts.  With the Typekit service, designers now have access to a set of font libraries which enable them to choose the right typeface for the job. Adobe Web Fonts are now available for the web and are engineered to look great on multiple screen types.

Adobe Web Fonts: Top features:

  • Over 120 fonts (16 families) from the Adobe Type Library
  • Technical reliability you have come to expect from Adobe
  • Created by award-winning designers consistently beautiful and high-quality type
  • Extended character sets many supporting Eastern European languages
  • Classic designs which, until now, haven’t been available for the web
  • Engineered to look great on multiple screens

Check out http://blogs.adobe.com/typblography/ & Adobe Web Fonts for more information

Fun with Actionscript

var Cr:Array = new Array();
var Po:Array = new Array();
var sw = 1024;
var sh = 786;
var P0 = new Point(sw/2,sh/2);
var Pvx:Array = new Array();
var Pvy:Array = new Array();
var r:Array = new Array();
var angle:Array = new Array();
var l = 1200;
var rmax = 370;

for (var i = 0; i < 200; i++){
	Cr[i] = new Circle();
	r[i] = rmax * (0.01 + 0.99 * Math.random());
	angle[i] = 2*Math.PI * Math.random();
		for (var j = 0; j < i-1; j++){
			if(Math.abs(r[i]-r[j])<0.05*rmax){
				if(Math.abs(angle[i]*r[i]-angle[j]*r[j])<0.5*rmax*rmax/(rmax + 10*r[j]))
				{i--;break;
				}
			}
		}
	Po[i] = P0.add(Point.polar(r[i],angle[i]))
	Cr[i].x = Po[i].x;
	Cr[i].y = Po[i].y;
	Pvx[i]=0; Pvy[i]=0;
	var scale = 0.3 + 1.6 * Math.random()*rmax/(rmax + r[i]);
	Cr[i].scaleX = scale; Cr[i].scaleY = scale;
	addChild(Cr[i]);
}

addEventListener(Event.ENTER_FRAME, float);

	function float(e:Event):void{
		for (var i = 0; i < 200; i++) {
		var dx:Number = mouseX - Cr[i].x;
		var dy:Number = mouseY - Cr[i].y;
		var sq:Number = Math.pow(dx, 2) + Math.pow(dy, 2);
		var force:Number = -50000 / (sq + 10);
		var dist:Number = Math.sqrt(sq);
		Pvx[i] += (force * dx / (0.4*dist+70)) + (Po[i].x - Cr[i].x) / 30;
		Pvy[i] += (force * dy / (0.4*dist+70)) + (Po[i].y - Cr[i].y) / 30;
		Pvx[i] *= 0.96; //play numbers to get various effects
		Pvy[i] *= 0.96; //play numbers to get various effects
		Cr[i].x += Pvx[i] / 30;
		Cr[i].y += Pvy[i] / 30;
		}
	}

[kml_flashembed publishmethod=”static” fversion=”10.0.0″ useexpressinstall=”true” movie=”http://johnbarrett.net/wp-content/uploads/2012/08/floating.swf” width=”400″ height=”300″ targetclass=”flashmovie”]

Get Adobe Flash player

[/kml_flashembed]