Actionscript 3 :: Flex Builder - Set Relative Url In Launch Configuration Properties?

Jul 20, 2010

I am trying to use a custom html wrapper for my application, but when I browse to choose my file it defaults to an absolute path to my custom-wrapper.html file. I want to be able to pass off this project via SVN without any necessary configuration changes, but I'm not sure how to input a relative URL into this configuration dialog. I tried standard back referencing from where my main actionscript application file is in the src directory (i.e. ../../bin-debug/custom-wrapper.html), but that does not work.

I think that I need to use properties like ${DOCUMENT} or ${FLEX_HOME}, but I'm not sure where these properties get defined and which ones come by default in the environment.

View 1 Replies


Similar Posts:


Configuration In Adobe Flex Builder

May 3, 2011

I installed Adobe FlexBuilder 3 Pro Eclipse Plug-in 3.0.2, but when i want to configure weblogic inside widows->preferences->server then server link button won't be appeared inside flex builder. can anyone help me out how i have to configure weblogic inside adobe flex builder.

View 2 Replies

Flex :: Make Flash Builder 4 Launch Browser On Run?

Mar 15, 2011

I recently installed Adobe Flash Builder 4 in standalone mode on a new installation of Windows 7 x64.I can load and build an existing Flex 4.1 project I have been working on, but when I go to run the project in the browser (Firefox 3.6.15), I get:'Launching BensApp' has encountered a problem. An internal error occurred during: 'Launching BensApp'

Clicking the Details >> button reveals:

java.lang.NullPointerException

My project is creating the SWF and container HTML page as expected, but fails to load the browser.

View 2 Replies

Flex :: Passing Properties To Custom Component In Flash Builder 4

Sep 7, 2010

I'm trying to pass some properties to a component I've created in Flash Builder 4. In my example below I want to pass the "label" property to update the label property of the Button.

// MyApp.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:local="*">
[Code] .....

View 1 Replies

ActionScript 3.0 :: Get And Set Relative Properties?

Nov 6, 2009

Is there a way for me to handle relative properties? For example I have a circle in a box. The box is being moved, resized, rotated etc. How do I move, resize, rotate etc. the circle as if it were inside the box? Or must I remember the properties of the box, resize, move etc. it to default, move the ball then move, resize, rotate etc. the box again?

View 3 Replies

Actionscript 3 :: Use A Relative Path For A Swc Library In Flash Builder 4.6?

Mar 8, 2012

I'm using Flash Builder 4.6 and in one of my ActionScript projects, I have a referenced .swc library file.The way I added it was Project > Properties > Flex Library Build Path > Library Path tab > Add SWC...Here a popup occurs and I must select a .swc file by browsing through my machine and selecting one. Once I do that, it'll display the added library like this:

somelibrary.swc - /Full/Path/to/the/swc/here/lib/somelibrary.swc

What I want to be able to do is use a relative path instead, like:

somelibrary.swc - ../../lib/somelibrary.swc

Does anyone know a way to do this or a workaround to be able to use relative paths for swc libraries in Flash Builder?

View 1 Replies

Flash Builder 4 :: Using Relative Paths With The -output (-o) Compiler Argument?

May 2, 2010

I'm trying to use a relative path in the -output compiler argument, here's what I've tried (with and without quotes):

-o="./deploy/file.swf"
-o="/./deploy/file.swf"
-o="./file.swf"

[code].....

View 1 Replies

Actionscript 3 :: Flash Builder: Define Relative Source Link For Linked Lib

Apr 22, 2011

How do you define a relative link to the source of a linked library in Flash Builder (4).
I have a swc folder defined for a project. I want to link one of the contained swcs to it's associated source. This works fine except that the path stored in the .actionScriptProperties file is absolute. Here you can see the linked lib:

[Code]...

View 1 Replies

Flex :: Adding Runtime-library-path To Flex Build Configuration Using Ant Mxmlc Task

Feb 9, 2011

I'm trying to build a flex project, linking it to some RLSs. When setting up the project in Flex Builder, the corresponding "build configuration" (that I got by adding -dump-config to the compiler options) generates (among other things) a tag like this :

<runtime-shared-libraries>
<url>some-lib.swf</url>
<url>some-other-lib.swf</url>

[Code]....

View 2 Replies

Flex :: Configuration - Host And Load KML File In Flex Project (IGN)?

Jul 23, 2010

I'm looking at a tutorial to display placemarks using a KML file on a flex application. I'm using IGN API (openscales) in flex project. The example works perfectly (http:/[url].......

<os:KML url="http://www.parisavelo.net/velib.kml"
proxy="http://openscales.org/proxy.php?url="
numZoomLevels="20"
style="{Style.getDefaultCircleStyle()}"/>

But when I'm hosting the same kml file on my server like that :

<os:KML url="http://www.cycom.org/velib.kml"
proxy="http://openscales.org/proxy.php?url="
numZoomLevels="20"
style="{Style.getDefaultCircleStyle()}"/>

Placemarks don't show up on the map. I tried to host the kml file on different hosts but that doesn't change.

View 1 Replies

Professional :: Launch Flash Builder From Flash Cs5 Don't Work

Mar 3, 2011

I have a trial version of flash builder (eclipse plug-in) and registered flash cs5 proI'm trying to open a new AS3 class like in this tutorial: [URL]nd it doesn't work.at first it did asked if I want to edit the file in flash builder or not, and it didnt work.now it won't even ask.and also I cant open a flash proffessional  project in flash builder, it says "This feature requires Adobe Flash CS5 or higher to be installed."but it is installed!

View 1 Replies

Flex :: Add Custom Configuration Variables?

May 19, 2010

We have to deploy a flex app through a series of development tiers. We are not using Blaze_DS or LCDS. My data/service urls are tier specific and are currently embedded in AS files. We'll be building the project on each tier. I'd like to make them environment variables, but am not sure what the best way to do at compile/build.

Is there a compiler option to read in a custom-config.xml? or -myCustomVariable = value? or should we just setup the build to select a config.as file?ted.

View 1 Replies

Actionscript 3 :: Coded SWF Properties In Flash Builder 4

Aug 19, 2010

i want to add a SWF metadata tag to an ActionScript Project in Flash Builder 4, that denotes the default size and background color of the swf. i can do this in Flash Professional, but it doesn't work with ActionScript projects in FB4? can i not include this tag? i know i can set these properties in the properties panel, but i'd like to have them in my code.

View 1 Replies

Flex :: Reading Server URL From AS3 For Cairngorm Configuration

Aug 30, 2011

I need to read the URL that the browser shows when a Flex application is called because I would to reference it in a mxml configuring Cairngorm remote objects. The goal I would reach is to automatically configure Cairngorm services from environment to environment (dev,test,qa,prod) without statically set the value in the mxml or other ActionScript. Since the Flex client is deployed in the root of the war of the webapp, it's enough to read where the browser is pointing.

I have written a class that is doing so:
public class ConfigServer {
public function ConfigServer() {
var loaderUrl:String = FlexGlobals.topLevelApplication.loaderInfo.loaderURL;
var urlToSet:String = <loaderURL-string-manipulation>;
_serverUrl = urlToSet;
[Code] .....

But whenever I call the ConfigServer constructor and for every (known to me) technique I applied (statics or singletons or public ro so on), I have always had the same error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.fao.fapda.util::ConfigServer()[C:devworkspacesFAPDA runkFAPDA-clientsrcorgfaofapdautilConfigServer.as:8]

Cairngorm services initialization is done as follow:
<fx:Declarations><cut/>
<services:FAPDAServices id="services"/>
<cut/></fx:Declarations>
And the problem is that FAPDAServices.mxml is read runs before FlexGlobals is valid. Is there a point in the Flex Application lifecycle where such loaderURL is defined so that I can construct ConfigServer? When in startup events that initialization in done?

View 1 Replies

Xml :: Loading A Configuration File BEFORE The Flex Application Loads?

Apr 19, 2010

We are using an XML file as an external configuration file for several parameters in our application (including default values for UI components and properties values of some service layer objects). The idea is to be able to load the XML configuration file before the flex application initializes any of its components. This is crucial because XML loading is processed a-synchronously in flex, which can potentially cause race-conditions in the application.

For example: the configuration file holds the endpoint URL of a web service used to obtain data from the server. The URL resides in the XML because we want to allow our users to alter the endpoint URL according to their environment. Now because the endpoint URL is retrieved only after the XML has been completely loaded, some of the application's components might be invoking operations on this web service before it is initialized with the correctendpoint.The trivial solution would have been to suspend the initialization of the application until the complete event is dispatched by the loader. But it appears that this solution is far from being trivial. I haven't found a single solution that allows me to load the XML before any other object in the application.

View 1 Replies

Actionscript 3 :: Change Properties Of Elemntschilds Created With It On Flash Builder?

Mar 6, 2012

I'm creating/adding elements in my item renderer but from some reason you cant access their specific properties, you can only change the general properties. I created a LABEL component but when i do LabelName.font , nothing happens, its like flex doesn't recognize that this is a LABEL. [code]...

View 2 Replies

Java :: Externalizing Client ChannelSet Configuration For Flex Web Application?

Dec 10, 2010

I am looking for an approach that will allow me to (somehow) dynamically pass the server name, server port, and web context to my Flex client so it can create a ChannelSet for it's RemoteObjects to use. These three properties are, of course, readily available to my Java server-side code so I just need a way to get them to the client.

By default, Adobe says you should compile your Flex application against the server configuration file "services-config.xml". This is a highly inflexible practice that Spring says should be avoided (I agree).

One popular approach is to use Flex's http service to download an XML configuration file. I like this idea, but I don't want to hard-code an XML file and keep it inside my WAR file. Is there a way to dynamically generate this from Java code?somehow use flashvars to pass the properties in from the containing HTML page to the SWF file. But again, I don't want to hard code them into the HTML page. Is there a way (maybe with Javascript?) to dynamically set the value of these when the page loads?

View 1 Replies

Actionscript 3 :: Flash Builder Hide Class Properties From Content Assist?

Nov 25, 2010

I am extending TextField to create my own implementation of it, and there are some properties & methods I would like to simply remove from use, eg:

override public function setTextFormat(format:TextFormat,[...]):void{}

I would like now to hide setTextFormat from code hinting, so when, in some other class, I type:

var t:MyTextField = new MyTextField;
t.set

And hit ctrl+space I only see setPropertyIsEnumerable(...) and setSelection(...), no trace of setTextFormat(...). But no matter what I do it still appears, I tried @private metatag in asdoc, as well as some made-up (like @remove, @disable, @ignore, @deprecated). Using [Exlude] doesn't work either as, afaik, it works only with mxml. Is there some way to actually accomplish this task? Or am I forever left with useless and redundant code? Some plugin maybe? (I know I can just leave it as is and don't double methods, but, nevertheless, I'd rather have it my way)

View 1 Replies

Flex :: Build - Including Configuration Files While Compiling A Application With MXMLC

May 17, 2010

I'm using:

- Flex SDK 3.5.0
- Parsley 2.2.2.
- Flash Builder 4

Down in my src folder (which is configured as part of the source path in the Flash Builder), I have a logging.xml which I configure via Parsley:

[Code]....

View 1 Replies

Flex :: Convert Flex Builder 3 Project To Flash Builder 4

Oct 6, 2009

I just upgraded to Flash Builder 4 (beta 2) from Flex Builder 3 which I have been using since it came out. Problem: All the projects that were in my workspace from Flex Builder 3 did not carry over into Flash Builder 4 (e.g. in the "Flex Navigator" view if FB3). Flash Builder 4 now uses the .FXP format to manage projects, but Flex Builder 3 did not. Is there an easy way to get all my projects back into Flash Builder 4?

View 2 Replies

Actionscript 3 :: Make Flash Builder Package Explorer Emulate Flex Builder's Navigator Window?

Apr 21, 2010

Does anyone know if there is a way to make the new Package Explorer window in Flash Builder emulate Flex Builders 'Flex navigator' window?

Bottom line is I don't always need to peer into SWC's, and I don't like having a 'default package' automatically created for me. Not sure why the interface wasn't made simpler, allowing access to more power and complexity only if necessary. I want to focus on the code, not on how to navigate and use the bells and whistles in the coding environment.

View 1 Replies

Flex :: Builder - Using Flex Builder With Source Control?

May 25, 2010

When setting up a source control repository for a Flex Builder workspace, what do you consider to be worth checking in? Do you exclude the workspace .metadata folder but keep the .project and other project specific files? Keep both? Throw away both? Is there a guideline you use to decide which is worth holding onto or do you do it out of practical experience?

View 2 Replies

Flex :: Launch MapMouseEvent In FLEX Via Alt + Mouse Click

Apr 3, 2012

I would like to launch a MapMouseEvent via a combination of keyboard short cuts and a mouse click. This is a portion of what I have, and I am not sure if the logic is correct:[code]I have looked at similar examples on this site but still have not reach any solution. I am hoping that someone who knows FLEX can help me to basically launch a function via a series of Keyboard shortcut. For example: Alt + mouse click, or Shift + mouseclick, or something along those lines. The reason is that a simple mouse click already does something else on the screen.

View 1 Replies

ActionScript 3.0 :: Flex Flex "URL Or Path To Launch?

Mar 5, 2009

I hope this is the right place to post this I am working on a flex project in AS3 (no mxml).. I unchecked the "Generate Html wrapper file" and when I compile for debug it works fine in my target deployment path (which is called WWW).

my problem is: if my document class is on the root of the sources folder, the generated SWF will be on the root of the Deployment folder (WWW/main.swf) .... but if my document class is inside a package like com.projectName.main.as for example, the generated swf file will be:

[Code]...

View 1 Replies

ActionScript 2.0 :: [Flash 8] XML/Flash Gallery - Making <launch></launch> Has The Ability To Link To An URL?

Jan 15, 2006

So I read through Kirupa's XML/Flash thumbnail gallery tutorial and have since modified some of its actionscripting to display my online design portfolio. How do I make it so that 'LAUNCH PROJECT' is a link? Here is the modified Actionscripting (I have one of each for the 3 sections):

Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;[code]....

As you can see at the bottom of the actionscript, I added a gotoURL action, hoping that simply by making <launch> read <launch action="gotoURL" variables="http:url...> that it would become a link. I, however, have had no such luck. Perhaps I have to add something more. How do I make it so that <launch></launch> has the ability to link to an URL?

View 2 Replies

Flash :: Flex - Migrating A Project From Builder 4.0 To Builder 4.5 Is Producing The Error "The Required Skin State 'disabledWithPrompt' Is Missing"

Nov 28, 2011

I am trying to migrate a project from Flash Builder 4.0 to Flash Builder 4.5. After Flash Builder prompts me to choose my new SDK, I choose 4.5, Then I get the following error:" error "The required skin state 'disabledWithPrompt' is missing".

View 1 Replies

Flex :: Launch Command Line Air App?

May 26, 2010

Is it possible to create a command line Abode Air app? I know thats not the intended use of the framework, but I have a lot of utility code written in as3, and I have a need to programatically run some utility functions from another app (not flash). I know I can pass command line parameters to the Air app, but I would like to avoid having a window pop up while the calculations are being made.

View 1 Replies

Flex :: Launch EXE (Serproxy) With Adobe AIR?

Jun 8, 2011

I'm developing an AIR application in Flash Builder (Flex) and I needed the option to communicate with a serial port on the computer. I want to be able to launch serproxy.exe when my application runs. I've tried two methods, and neither of them are working for me.First method:

var file:File = File.applicationDirectory.resolvePath("assets/serproxy.exe");
file.openWithDefaultApplication();

This proceeds to open the program, but then immediately closes it. No errors are thrown.Second method:

var file:File = File.applicationDirectory.resolvePath("assets/serproxy.exe");
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;

[code]....

View 3 Replies

Flex :: Air App On Android To Launch Another Application?

Jul 20, 2011

I have an Android AIR application (developed with Flex SDK 4.5.1) for which I need to block the Home Button, as the app is used by patients in a hospital without supervision, i.e. it is crucial that they cannot leave the app.

It seems that the only way to hijack the Home Button is to be registered as the default launcher, so that your own app gets the focus when home is pressed. This is easily achieved in the manifest, such as:

[Code]...

View 1 Replies

Flex :: Debugging AIR: ADL Fails To Launch?

Sep 6, 2011

I've hit a snag when trying to debug an AIR app using adl.

Although adl successfully launches, the application never appears on screen / starts up.

eg:

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

Update: I've also since uninstalled and reinstalled Flash Builder (and therefore, the AIR SDK), and it still doesn't work. I think this adds weight to the port conflict, but still leaves me unsure of where / how to proceed

Further update Compiling exactly the same codebase to a AIR installer, installing, and running the application works fine. (Ie., a production release). However, the codebase fails to launch with adl. This pretty much confirms the issue as a local machine config problem somewhere with adl, and not an issue with the codebase.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved