Ben Reynhart

Geekin' it up

0 notes

FDT / Eclipse Error : ‘overlaps the location of another project’

I’ve got this error a few times, and it’s really frustrating. When in FDT / Eclipse and you create a new FDT project in a new folder, you get ‘this location overlaps the location of another project’. When it clearly does not overlap the location of an existing project!

I found the answer on the Eclipse forums and thought i’d share.

http://www.eclipse.org/forums/index.php/m/270705/

What happens..

1. Create a New Project

2. Choose a directory inside the current workspace (in which there are more project dirs already) e.g. /xxx/workspace/my_new_project

3. Eclipse says project location overlaps with another project (NOT true, as other projects are in /xxx/workspace/otherproject, etc.)

What I did to workaround the problem:

1. Go to “%ECLIPSE_HOME%\configuration.settings” and delete the workspace listed at the key RECENT_WORKSPACES
2. Restart Eclipse, go to File>Switch Workspace>Other… and select your workspace dir again
3. Now I could create new projects as always


Hope this helps!

0 notes

AS3 - Error when embedding assets in a pure as3 project

Today I stumbled across a weird error when embedding image assets into a class in a pure ActionScript 3 project using Flash Builder.

Using the following code:

[Embed (source=”../assets/video-preview-bg.png” )] public var _videoPreviewBg:Class;

I got this error:

Error #1014: mx.core::BitmapAsset could not be found

What’s weirder is that I copied the code from another project into a new one, and confirmed that all the files where in the correct place, and my file-paths where also correct.

After some digging on the net I found that because it was a pure ActionScript 3 project, sometimes Flash Builder doesn’t include some necessary Flex SDK libraries that are needed to embed images in this way. 

The Solution is simple, just copy core.swc into your project specific /libs/ directory, or add it using Flash Builder in the screenshot below.

Flash builder settings

0 notes

Faces

This is a technical demo for face substitution technique. The application works in real time and it’s developed using the opensource framework for creative coding openFrameworks:

6 notes

AS3 TextField setSelection not work

Recently I was having problems using setSelection on a textfield using a FOCUS_IN event callback. It simply wasn’t working as I expected.

I found the solution in the comments of one of Ryan Henson Creighton’s blog posts: 

http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/

The solution (by Eightlines) is simple..

FocusEvent.FOCUS_IN does not allow setSelection() to operate as expected. Changed it to MouseEvent.CLICK and it works correctly.

Use a CLICK MouseEvent instead of the FOCUS_IN event.

Filed under AS3, Actionscript, Flash, Gotcha