History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: FB-9303
Type: Bug Bug
Status: Waiting on Info Waiting on Info
Priority: C C
Assignee: Tim Buntel
Reporter: Tom Lane
Votes: 59
Watchers: 19
Operations

If you were logged in you would be able to see more operations.
Flash Builder / Flex Builder

ActionScript project wizard needs an AIR option

Created: 09/06/07 05:15 PM   Updated: 08/25/08 10:39 PM
Component/s: AIR: Project
Security Level: Public (All JIRA Users )

Severity: Usability Issue
Reproducibility: Every Time
Discoverability: Medium
Found in Version: Moxie M3 (Beta 2)
Affected OS(s): All OS Platforms
Steps to Reproduce:
Now that we've integrated framework-enabled AIR projects into the Flex project wizard, and now that we've integrated AIR support into the library wizard, the absence of an AIR option in the ActionScript project wizard feels like a glaring omission. It's not readily apparent to the user how they are supposed to create an AS-only AIR project.

Steps to reproduce:
1. New > AS project
 
 Actual Results: Hmm, how do I make this for AIR?
 
 Expected Results: A choice between desktop and web like you see in the Flex wizard.
 
 Workaround (if any): Strip down an AIR project created with the Flex project wizard.
 
 
 
Language Found: English
Bugbase Id: none
Triaged: No
Regression: No
QA Owner: Mac Martine
Fixed Version: (Planning) Post Moxie - Next Build
Participants: Larry McLister, Laurenţiu Lozan, miguel portilla, s k, Thomas Colliers, Tim Buntel and Tom Lane
UI Change Needed: Yes


 All   Comments      Sort Order:
Larry McLister - [09/07/07 01:16 PM ]
QRB deferred for moxie. I believe there is a work around that involves adding the swcs tot eh lib path and there are probably only a handful of people (if that) that would use this workflow.

Tom Lane - [09/07/07 01:59 PM ]
Yes, to be clear, the workaround is to strip down an AIR project created with the "Flex" wizard. This is just a bug to track the usability issue of it being absent from the AS project wizard.


Larry McLister - [04/18/08 06:46 PM ]
To Tim for consideration

s k - [04/29/08 02:47 AM ]
Larry: I have been trying to find exact details of the workaround you mention with no success. Can you please explain exactly what the work around is and which specific SWCs you need to add to the library path.

Laurenţiu Lozan - [04/29/08 03:06 AM ]
s k, the workaround is quite simple in fact:
- create a new flex project
- choose Desktop Application (runs in Adobe AIR)
- press Next, next
- on the screen with two tabs ("Source path" and "Library path") there are three text input boxes lower : "main source folder", "main application file" and "application id".
- change the extension on the "main application file" from .mxml to .as
- Voila!

s k - [04/29/08 03:16 AM ]
thanks laurentiu, but this is the workflow i have tried previously with no success. When I try to run the application nothing happens, when i try to debug it i get:
  Process terminated without establishing connection to debugger.
  Command:
        "C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\bin\adl.exe" "[path to project]\bin-debug\[name of app].xml" "[path to project]\bin-debug"
  Output from command:
        invocation forwarded to primary instance
my FlexBuilder version is 3.0.194161. I am trying to get info of which specific SWCs might need to be included

Laurenţiu Lozan - [04/29/08 03:28 AM ]
nothing happens probably because unlike the Flex AIR project, the AS AIR project doesn't create the windows automatically. it took me a while to figure that out when i first did it, but now all i'm doing to create an AS AIR project is just the steps enumerated there.

Of course after the project is created i add code to create the windows and stuff, but that wasn't the issue, so i involuntarily ommited that. :)

try something like:

var options:NativeWindowInitOptions = new NativeWindowInitOptions();
//options.systemChrome = "none";
//options.transparent = true;
var mainWindow:NativeWindow = new NativeWindow(options);
mainWindow.activate();

and you add content to that window throught mainWindow.stage. :) hope that helps

Laurenţiu Lozan - [04/29/08 03:30 AM ]
and I have the same Flex Builder version, so that's also shouldn't be the issue :)

s k - [04/29/08 03:53 AM ]
thanks a million for the info, tried it and am still getting nothing when building / errors when debugging. Heres the class:
package
{
import flash.display.NativeWindow;
import flash.display.NativeWindowInitOptions;
import flash.display.NativeWindowSystemChrome;
import flash.display.Shape;
import flash.display.Sprite;
public class AS3AIRTest extends Sprite
{
public function AS3AIRTest()
{
var options:NativeWindowInitOptions = new NativeWindowInitOptions();
var mainWindow:NativeWindow = new NativeWindow(options);
mainWindow.activate();
var shp:Shape = new Shape();
shp.graphics.beginFill(0x0000FF);
shp.graphics.drawRect(0,0,100,100);
shp.graphics.endFill();
mainWindow.stage.addChild(shp);
}
}
}


Laurenţiu Lozan - [04/29/08 04:00 AM ]
Well, that is strange indeed. Because i just created a new proj, copy-pasted your code and it works. No swc's added, no nothing.

Try uninstalling flex, cleaning up folders, registry, and then reinstalling it again. There's surely some other problem with your Flex Builder.

s k - [04/30/08 02:58 AM ]
Update on this issue: I tried the above code on my Mac home computer (not work PC) and found it worked! They both have exactly the same Flex Builder version.

I think we can all agree that having the option to create ActionScript AIR projects from the wizard would not be 'only used by a handful of people'.

miguel portilla - [05/07/08 03:30 PM ]
I've just run into the same problem, no AS AIR project option. I sure hope this gets fixed.

Thomas Colliers - [08/25/08 10:39 PM ]
It's weird this feature isn't available. Flex is an excellent Actionscript 3 IDE and compiler. Would love to see this fixed.