* Login   * Register


Last visit was:
It is currently Sat Jul 31, 2010 1:05 pm
View unanswered posts
View active topics




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Flex/fcsh task
PostPosted: Wed Oct 17, 2007 6:47 am 
Offline

Joined: Tue Aug 28, 2007 1:44 am
Posts: 4
Hi, I'd like to use the new fcsh launcher as described in the feature list. Can't see any doc on the name of the ant task etc. Can someone point me in the right direction please?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 10:07 am 
Offline
Site Admin

Joined: Fri Oct 20, 2006 3:33 pm
Posts: 1216
Location: Aachen, Germany
Hi,

the FCSH launcher is not an Ant task but an launcher. Before you start you have to install an FlexSDK with FCSH of course (if you are on Mac install it in an folder without any whitespace in the path!). Theese FlexSDK must be known to FDT. You can do it the following way:

1. Goto "Preferences...->FDT->Core Libraries"
2. Select the tab "AS3 Core Libraries"
3. Press "Fast Add..."
4. Select "Flex 2 SDK" (or "Flex 3 SDK, if you have installed this one)
5. Press "Browse..." and select the folder where the FlexSDK is installed (e.g. "C:\Tools\FlexSDK\")

If you want to have more control about the process you can use the "Add..." button instead of "Fast Add...", but I would recommend this only for advanced users.

After this steps FDT knows about the FlexSDK. Then there are several ways you can invoke the launcher. The most simple one is to open your main file, make a right click on the editor and select "Run As->"FDT AS3 Application". FDT will compile your application to SWF, place this in the root of your project and start an launcher. More control over the process is granted through the menu "Run->Run As...". Here you can configure the whole process in detail (the two launchers "FDT AS3 Application" and "FDT AS3 Library" are the ones to look for).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 1:19 pm 
Offline

Joined: Tue Aug 28, 2007 1:44 am
Posts: 4
Followed your instructions thanks. Now i'm getting an exception when trying to invoke the launcher using Flex 3 SDK. I have the details from the eclipse log if you'd like me to send them?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 1:52 pm 
Offline
Site Admin

Joined: Fri Oct 20, 2006 3:33 pm
Posts: 1216
Location: Aachen, Germany
Yes, please post the stack trace of the exception here, along with your operation system (WinXP, MacOS ...), Java Version (1.4, 1.5...) and Eclipse Version (3.2, 3.3...). The path of your FlexSDK would be helpfull, too.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 4:29 pm 
Offline

Joined: Fri Aug 03, 2007 8:44 pm
Posts: 20
Hey, i have the same problem. All i have in my project is one class (Main.as). It seems to start fcsh but stops there and gives me the error below.

I'm using:
Mac OS X 10.4.10
FDT 3.0.0.1038
Java 1.5.0_07
Eclipse Europa(I20070625-1500)

Flex SDK 3(M3) directory: /Developer/SDKs/Flex

Stack trace:
Quote:
Error
Wed Oct 17 16:20:13 CEST 2007
An internal error occurred during: "Launching Main.as".

java.lang.UnsatisfiedLinkError: no dllcall in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at it4systems.dllcall.Library.<clinit>(Library.java:190)
at com.powerflasher.fdt.internal.ui.util.PathUtil.getShortPathName(PathUtil.java:40)
at com.powerflasher.fdt.internal.ui.util.PathUtil.quoteBlanks(PathUtil.java:17)
at com.powerflasher.fdt.internal.ui.launch.fcsh.MxmlcLaunchConfigurationDelegate.createCompileText(MxmlcLaunchConfigurationDelegate.java:152)
at com.powerflasher.fdt.internal.ui.launch.fcsh.AbstractFCSHLaunchConfigurationDelegate.launch(AbstractFCSHLaunchConfigurationDelegate.java:140)
at com.powerflasher.fdt.internal.ui.launch.fcsh.MxmlcLaunchConfigurationDelegate.launch(MxmlcLaunchConfigurationDelegate.java:122)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 5:07 pm 
Offline
Site Admin

Joined: Fri Oct 20, 2006 3:33 pm
Posts: 1216
Location: Aachen, Germany
You have blanks in your path to your workspace, the resulting FLA or to your FlexSDK (don't you)?

Please read the FAQ and especialy this one http://www.powerflasher.com/fdt/forum/v ... php?t=1643


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 10:09 pm 
Offline

Joined: Tue Aug 28, 2007 1:44 am
Posts: 4
WinXP
FDT 3.0.0.1038
Java 1.5.0_08
Eclipse 3.3 (I20070625-1500)
FlexSDK Path: C:\Program Files\Adobe\Flex3SDK

Quote:
!ENTRY org.eclipse.core.jobs 4 2 2007-10-17 21:16:13.448
!MESSAGE An internal error occurred during: "Launching Flex Build Detail Screen".
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(ArrayList.java:323)
at com.powerflasher.fdt.internal.core.resources.AbstractClasspath.isUsedAsSharedCode(AbstractClasspath.java:444)
at com.powerflasher.fdt.internal.ui.launch.fcsh.MxmlcLaunchConfigurationDelegate.createCompileText(MxmlcLaunchConfigurationDelegate.java:153)
at com.powerflasher.fdt.internal.ui.launch.fcsh.AbstractFCSHLaunchConfigurationDelegate.launch(AbstractFCSHLaunchConfigurationDelegate.java:140)
at com.powerflasher.fdt.internal.ui.launch.fcsh.MxmlcLaunchConfigurationDelegate.launch(MxmlcLaunchConfigurationDelegate.java:122)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 10:53 pm 
Offline

Joined: Fri Aug 03, 2007 8:44 pm
Posts: 20
Oh, nothing can have blanks apparently.

I had a linked library in a path with blanks that caused the error, moving it to a path without blanks solved it.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 11:23 pm 
Offline

Joined: Tue Aug 28, 2007 1:44 am
Posts: 4
I thought the problem with blanks was only for MAC? Still getting the same error after i move Flex SDK to a path with spaces. The project I am using was originally setup to use the CS3 framework. I will try to create a new blank project using flex sdk 3.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 11:46 am 
Offline

Joined: Sun Oct 01, 2006 12:19 am
Posts: 20
Hi there,

I'm not able to compile an AS3 application using Flex...
Here is my configuration :

Windoiws XP French
Eclipse 3.3.1
AS3 Core Library created using Fast Add Flex 3 SDK is pointing to : D:\FlexSDK3\3.0.0
In this folder i have the bin folder with the exe needed (mxmlc and fcsh)...

I got an error :
An internal error occurred during: "Launching New_configuration".
Unvalid FlexSDK, no 'mxmlc' and no 'fcsh'.

Can you please tell me what I'm doing wrong ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 12:09 pm 
Offline
Site Admin

Joined: Fri Oct 20, 2006 3:33 pm
Posts: 1216
Location: Aachen, Germany
Maybe your launch configuration uses a differen Flex SDK? Please open the launch configuration (Run->Run...) and check in the tab "Flex SDK" that the correct SDK is selected.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 3:16 pm 
Offline

Joined: Sun Oct 01, 2006 12:19 am
Posts: 20
Ok, I made it, but it throw this :

Execute command: mxmlc -o C:/eclipse/workspace/LowRASnapshot/bin/loaderUI.swf -sp C:/eclipse/workspace/LowRASnapshot/src -l C:/PROGRA~1/Adobe/ADOBEF~2/fr/CONFIG~1/ACTION~1.0/Classes/PLAYER~1.SWC -default-size 550 400 -default-frame-rate 31 -default-background-color 0xFFFFFF -source-path D:/FlexSDK3/3.0.0/frameworks/locale/en_US -verbose-stacktraces -debug=true -- C:/eclipse/workspace/LowRASnapshot/src/net/kilooctet/lowra/snapshot/visual/VisualLoader.as

----------
Adobe Flex Compiler SHell (fcsh)
Version 3.0 build 189825
Copyright (c) 2004-2006 Adobe Systems, Inc. All rights reserved.

(fcsh) fcsh: Assigned 1 as the compile target id
Loading configuration file D:\FlexSDK3\3.0.0\frameworks\flex-config.xml
Error: flex2.compiler.CompilerSwcContext.<init>(ZZ)V

(fcsh) java.lang.NoSuchMethodError: flex2.compiler.CompilerSwcContext.<init>(ZZ)V
at flex2.tools.SimpleShell.mxmlc(SimpleShell.java:797)
at flex2.tools.SimpleShell.process(SimpleShell.java:123)
at flex2.tools.SimpleShell.main(SimpleShell.java:63)

----------


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 13, 2008 10:57 am 
Offline

Joined: Sat Sep 15, 2007 6:01 pm
Posts: 5
Hey Arne,

Thanks for all the useful posts on the forum about this... but, I'm not quite there yet, I also get the CompilerSwcContext error:

Code:
Execute command: mxmlc  -o /Users/Shared/Workspace/MarqueWeb/MarqueWeb.swf -sp /Users/Shared/Workspace/MarqueWeb/source  -l /Network/Servers/xserve.gla.thirdeyedesign.co.uk/Volumes/Data/ThirdEyeUsers/jamesgreig/Documents/Common/Fl_cpackage.swc  -l /Users/Shared/Workspace/MarqueWeb/lib/playerglobal.swc  -default-size 550 400 -default-frame-rate 31 -default-background-color 0xFFFFFF -source-path /Users/Shared/Flex3B3/frameworks/locale/en_US -verbose-stacktraces  -debug=true  -- /Users/Shared/Workspace/MarqueWeb/source/com/marque/web/MarqueWeb.as

----------
Adobe Flex Compiler SHell (fcsh)
Version 3.0 build 189825
Copyright (c) 2004-2006 Adobe Systems, Inc. All rights reserved.

(fcsh) fcsh: Assigned 1 as the compile target id
Loading configuration file /Users/Shared/Flex3B3/frameworks/flex-config.xml
Error: flex2.compiler.CompilerSwcContext.<init>(ZZ)V

(fcsh) java.lang.NoSuchMethodError: flex2.compiler.CompilerSwcContext.<init>(ZZ)V
   at flex2.tools.SimpleShell.mxmlc(SimpleShell.java:797)
   at flex2.tools.SimpleShell.process(SimpleShell.java:123)
   at flex2.tools.SimpleShell.main(SimpleShell.java:63)

----------
Launch SWF Viewer
Launch SWF Viewer


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 13, 2008 11:15 am 
Offline

Joined: Sat Sep 15, 2007 6:01 pm
Posts: 5
Ok, I fixed it so please ignore my message above.

DO NOT OVERWRITE THE FCSH FILES IN THE FLEX 3 BETA 3 SDK!

They are fine as they are :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 20, 2008 4:07 pm 
Offline

Joined: Sun Jan 06, 2008 1:02 pm
Posts: 21
Location: Poland
I tried to switch flex sdk from 2 to 3. Now it is all messed up. I still get some kind of java related errors. Even if I create new project in workspace and copy classes it is still all broken. I don't know what to do with such an error (why is it calling flex2? it should call flex3, or maybe I am wrong) :
Code:
(fcsh) fcsh: Assigned 1 as the compile target id
Loading configuration file /Applications/flex_sdk_3/frameworks/flex-config.xml
Error: null

(fcsh) java.lang.NullPointerException
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.SwitchStatementNode.evaluate(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evalAndFold(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.StatementListNode.evaluate(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evalAndFold(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.IfStatementNode.evaluate(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evalAndFold(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.StatementListNode.evaluate(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.FunctionCommonNode.evaluate(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.FunctionDefinitionNode.evaluate(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.StatementListNode.evaluate(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.ClassDefinitionNode.evaluate(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.StatementListNode.evaluate(Unknown Source)
   at macromedia.asc.semantics.ConfigurationEvaluator.evaluate(Unknown Source)
   at macromedia.asc.parser.ProgramNode.evaluate(Unknown Source)
   at flex2.compiler.as3.Compiler.parse1(Compiler.java:314)
   at flex2.compiler.API.parse1(API.java:2306)
   at flex2.compiler.API.parse1(API.java:2259)
   at flex2.compiler.API.batch2(API.java:367)
   at flex2.compiler.API.batch(API.java:1108)
   at flex2.compiler.API.compile(API.java:1281)
   at flex2.tools.SimpleShell.mxmlc(SimpleShell.java:941)
   at flex2.tools.SimpleShell.process(SimpleShell.java:135)
   at flex2.tools.SimpleShell.main(SimpleShell.java:75)

----------
Launch SWF Viewer


I have even tried to create new workspace and copy the classes and swc's but I still get this error. Are there some kind of settings stored in hidden files? It all works with my test class but crashes after adding my own.

I am using Mac OSX 1.5.2 and FDT 3.0.4.1007


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB2 template by N.Design Studio
phpBB3 template by SE-Tuning