Adding Flash Player 11 for FDT

Posted by admin | Posted in Actionscript 3.0, FDT, Flash, weloveFDT | Posted on 02-11-2011

3

Since flash player came out, you will want to upgrade the Flex SDK in FDT to include flash player 11.

First you will need

Now in the SDK we have to do a few things.
In the folder frameworks/libs/players you need to add a folder called 11.0, and in this folder you put the playerglobal .swc (you will have to rename it to this)
Next you will need to upgrade the flex-config.xml file, you will need to change the first two resources. It should look like this when done
Now in FDT you can use either flash player 10.2 or flash player 11.0. By default it is flash player 11.0
You can also change back to flash player 10.2
That is it, nw you can use flash player 11 in FDT 5 :)

view FDT project index page in web browser

Posted by admin | Posted in Actionscript 3.0, FDT | Posted on 19-03-2011

0

The new html wrapper for AS 3 projects in FDT 4.2 is a really nice feature!

Here is a “Quick Tip” that will let you full this web page inside of FDT.

Lets create a simple ball project

package {
   import flash.display.Shape;
   import flash.display.Sprite;

   public class Main extends Sprite {

   // Global variables
   private var circle:Shape = new Shape();
   public function Main() {
     init();
   }

   public function init():void {

     circle.graphics.beginFill(0xcccccc);
     circle.graphics.drawCircle(150, 150, 50);
     circle.graphics.endFill();
     addChild(circle);

   }
 }
}

Now when you run the project your html page is created for you. To view this inside of FDT open in web browser

this will produce this view in FDT

CF Builder & FDT4

Posted by admin | Posted in ColdFusion, FDT | Posted on 17-03-2011

0

I installed CFBuilder into FDT 4 it is working really nice. I posted a video on youTube about it

Create SWC from Linked Resources in FDT 4

Posted by admin | Posted in FDT | Posted on 07-01-2011

2

On my other post about creating a swc by using the SWC library, somebody asked about how to create a swc from a link Resource. You can see the main post here – http://hfug.net/?p=1307

For this example I will be using the Hype Framework.

Download the framework on the Hype Website the current version is 1.1.8.

Now you want to grap the src file put it someplace on your machine, I like to keep all my libraries in a libs folder

create a linked Resource, here is an example of mine

Now create a new flash project call it hype, create a folder called libs.
Then import the linked resource hype_1_1_8 into your project.
Go to “Run Configurations” Create a new SWC Library and create a new SWC Library

Now hit “apply”, then Run and in your libs folder you will have a new hype.swc

now add to source path to view the swc


Next HFUG Meeting is on AssetLoader

Posted by admin | Posted in Actionscript 3.0, FDT, HFUG, HFUG Meetings | Posted on 04-12-2010

1

The Next Hawaii Flash User Group Meeting will be on AssetLoader (In a Robotlegs scenario)

The meeting will be on December 17th, 2010 at 8:00 pm (Hawaiian Time), please find your time here

Matan Uberstein will be given this talk

For more information and to RSVP for the meeting, Please check the Adobe Groups Site for HFUG”
http://hawaiiflash.groups.adobe.com/index.cfm?event=post.display&postid=32843

This meeting will be hosted on-line, and URL for this meeting will be at:
http://experts.adobeconnect.com/hawaiiflash/

Setup, getting started and the “good-to-know”
o   General application of AssetLoader in RL.
o   Smart inheritance of Parameters to reduce code.

Building Loading Queues
o   Straight.
o   Via XML config.
o  Explain how external config is parsed.

Signals
o   AssetLoader’s Signal structure.
o   Handling Signals within Commands.
o   Handling Signals within RL Actors. E.g. Mediators, Services.
o   Progress and Error consolidation.
o   Global Error handling.
o   IAssetLoader’s onChild Signals.

Resources
o   http://www.matanuberstein.co.za/assetloader/
o   http://github.com/Matan/AssetLoader/
o   http://github.com/robertpenner/as3-signals/

FlexUnit Testing
General information

o   Assertions and what they do.
o   Why Unit Testing is important.
o    A look at a Real-world example (AssetLoader’s Unit Testing).
o   Simple Example (Live coded).
o   Setup within FDT4.
o   Writing Suites.
o   Writing Tests.
o  Async Signal Testing.
o   Running.
Resources.
o   http://www.flexunit.org/
o   http://docs.flexunit.org/
o   http://github.com/eidiot/as3-signals-utilities-async/

HFUG October Meeting – What’s New in FDT4

Posted by admin | Posted in FDT, HFUG, HFUG Meetings | Posted on 03-10-2010

1

FDT4

Topics to Include

SDK Management
Completely new SDK management and project setup makes it simple to switch Flex SDKs, or change the project type easily.

Profiler
New Profiler will help you find memory leaks more quickly and optimize the performance of your Flash/Flex projects.

Project Templates
Choose from a list of available project templates in the “New Project Wizard” or easily create your own using a simple XML format.

Launcher Chain
Chain multiple launch configurations in any desired order to setup complex build processes fast and easy and adapt FDT to your project workflow.

Additional Flex Support
including FXG, Flex 4 States, the new MXML 2009 language tags, Debugger, Organize Imports, Quickfixes, Formatter and Toggle Comment in MXML.

Dependency Visualizer
View the dependencies between Classes and Interfaces or between packages visually to detect design or dependency problems at a glance.

Font Library Creator
Create font library SWF, Actionscript or SWC files with just a few clicks by using the new Font Library Editor.

Advanced Formatter
More options in the AS3/MXML Formatter settings to configure your preferred code style or follow your team code guidelines.

Faster Compiler
Full and incremental build times have decreased tremendously while memory consumption was dramatically reduced, this is especially noticeable in bigger projects with multiple modules.

More to come, …

Please view the meeting on the Adobe Groups site and RSVP if you are are member of the Hawaii Flash User Group.

Also, you can RSVP through facebook on the Events page

here about updates on twitter @hug
here about updates on facebook http://www.facebook.com/hawaiiflash

FDT 4 & Project Templates

Posted by admin | Posted in FDT | Posted on 27-09-2010

1

If you install the final release of FDT4 the location of the FDT folder, which included the project types & project templates on Mac OS X has changed. In the past it was located in your main Users folder:

/Users/{yourusersname}/FDT

Now it has changed to

/Users/{yourusersname}/Library/Application Support/FDT

you will see this folder structure

So as an example if you want to change your output folder from bin to deploy in your Empty AS 3 project, you would use this new location

/{yourusersname}/Library/Application Support/FDT/projectTemplates/Web/EmptyAS3/description.xml

Mine reads like so

<?xml version="1.0" encoding="UTF-8"?>
<tns:projectTemplate xmlns:tns="http://fdt.powerflasher.com/ProjectTemplate"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://fdt.powerflasher.com/ProjectTemplate ../../projectTemplate.xsd">

<name>Empty AS3 Project</name>
	<description>This template contains only the basic libraries to develop and compile a pure AS3 project.</description>
	<projectType>AS 3</projectType>
	<folders>
		<sourceFolder>src</sourceFolder>
		<outputFolder>deploy</outputFolder>
	</folders>
</tns:projectTemplate>

I would like to thank @yapiodesign for helping me out with this :)

MySQL with FDT

Posted by admin | Posted in FDT | Posted on 11-09-2010

4

Setting up FDT as a MySQL development environment using the Database Development perspective is quite easy. I assume that you have MySQL installed installed. The only other part you need is the J/Connector

Download the  Connector/J MySQL Database Driver.

The current version is 5.1.3, unzip the connectents of the file, and place it someplace. I put the file in my common libs folder, I was not sure if there was a place in the MySQL folder where drivers are located. The zip comes with a bunch of files but the only one you will need is the “mysql-connector-java-5.1.13-bin.jar”

Now in FDT, and switch to the “Database Development” perspective. (Window –> Open Perspective –> Other –> Database Development perspective)

After you open the perspective choose a new connection

On the pop-page of the Connection Profile Wizard, select the MySQL connection profile, name your connection, and then click next

you will need to pick the type of driver that you want to use(we are using 5.1 here so pick that one)

There are no drivers set up so click on the circle to the right of the pull down menu,and switch to the jar tab.

there is a slight issue as the original driver here does not work, which is the reason for downloading the driver from MySQL, just delete the old one

you should be left with only your driver, just point to the area where you saved it.

set up your database information, and test the connection, you should see “ping succeeded”

the original look of the newly created database

to get to the data, right click on the database table and sample content or edit

I went with edit,as it is a little cleaner I think, and there is also a window to write your own SQL!

That is all there is too it, you now how MySQL working inside of FDT.

You can also create database tables using this method.

to start use the file menu, and create a new sql file, this allows you to include the sql file along with your project. this way is sloppy(sorry for that!) it is better to crate a new project and link it to the FDT project that you are working on, as this creates a new folder automatically for you. In my case I create a new sql file called meetings.sql and in it’s properties I link it to the project, and set up all the properties needed.

In the newly created sql file you have the sql editor where you can create a new table with the properties you want, then just right click and execute. I did this in two steps to show that you can continue using the editor to do whatever you can do with sql. There is even sql code completion :)

Each time you will be showed your results, and if you have any errors in your sql

Now you can view the results in the Data Source Explorer, and then I show you can edit the data visually, or just sample the content. Below is a final image showing the results.

I hope you enjoyed the tutorial on setting up and working with MySQL with FDT

In part 3 of the series, we will set up the cross domain file, and create a flash remoting project with FDT 4 & ColdFusion 9 :)

FDT & Coldfusion -Part 1

Posted by admin | Posted in ColdFusion, FDT, Flash Remoting | Posted on 10-09-2010

1

Setting up the Environment

In the first part of the series of getting FDT & ColdFusion/MySQL to work for remoting we will focus on setting up the environment.

First I assume you have FDT, ColdFusion 9, and MySQL installed.

If you don’t:

Downloding CF Eclipse so you will have code completion, and some other goodies, it is free.

  • click next
  • agree to the license
  • wait for it to install and re start FDT

If you want to use cfeclipse open it’s perspective, but since we are just using it for writing cfcs for remoting that it not necessary.
The one thing that you will have to do if it bothered you as much as it did me, is to modify the top tollbar while in other perspectives not to show the tool bar from cfeclipse. this is easy to do.

right click on the tool bar, and pick customize perspective.

make sure CFEClipse and MXUnit is unchecked for the all other perspectives except cf eclipse. I don’t know why it does this, but it does, frusting!!

Also in the context menu there are new items, even in the FDT perspective.

I am not sure how I did it, but I got rid of the cfeclipse menus while working with the FDT prespective :)

to use cfeclipse in your FDT project just pick new file like you also do, but in this case pick other/cfeclipse

There is a nice wizard for creating the cfc. cfeclipse is a nice IDE for ColdFusion in Eclipse, if you are using ColdFusion I would recommend you check it out. Actually I just wanted something for the code hinting completion, but I will have to say that the features in cfeclipse are very nice!

You actually have everything you need to work with FDT & ColdFusion, but since we want database support that will be the next and final part of the set up.

I will update this post to show the set up with cfbuilder if you prefer using cfbuilder over cfeclipse.

Update: I got cfbuiulder installed and got RDS, and all the goodies working, however, the text editor did not! Also, to do this you need to uninstall cfeclipse first, it made such a mess of everything I had to re install FDT altogether! Stick with cfeclipse :)

Actually for the needs of working with flash remoting cfeclipse does more than what I  need, I wish I could just get the code editor with code completion, which is all I was really after. Yes a lot of work, but it is nice to be able to create & editor your ColdFusion files while in FDT and working with remoting.

In part 2 of the series I will show how to get MySQL working

FDT & ColdFusion for Remoting

Posted by admin | Posted in ColdFusion, FDT, Flash Remoting | Posted on 09-09-2010

1

This will be the first part of a series that I will do on setting up FDT for flash remoting with ColdFusion.

In the first part of the series will will set up the environment, and will focus on AS 3.

  • setting up cfeclipse & FDT to work together
  • setting up the crossdomain policy
  • setting up a way to View/Edit your MySQL database in FDT
  • testing to make sure that the connection is working
  • showing more advanced AS 3 examples

In the second part of the series after everything is set up, we will focus on Flex 4

  • displaying query results in a Flex 4 datagrid
  • setting up a CRUD application to mange the data
  • graphing the results from the database