Xml :: Flex 4.6 - Add Additional Configuration Sets To One "main" XML

Dec 14, 2011

i want to use XML to save some configuration for elements in my app. in my example i want to add 6 additional configuration sets to one "main" XML. each set can be config1 or config2. In this case i added 3x config1 and 3x config2. if i trace my results i do not only get the wrong order of elements but also some "strange" binding behavior. Of course this is a simplified example. my configuration sets are more complex (this is why i use seperate xml-objects for each config).

[CODE]...

View 2 Replies


Similar Posts:


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

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

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

Xml :: Flex 4: Getter Getting Before Setter Sets?

Jun 3, 2010

I've created an AS class to use as a data model, shown here:

package
{
import mx.controls.Alert;

[code].....

View 5 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

Flex :: Event Sets The Dimensions Of A Swfloader?

Aug 18, 2011

I am trying to scale a swf that has been loaded via a swfloader. When I get the complete event or the init event the dimensions of the swfloader are still zero. I don't see a value in the dimensions until I do a resize of the browser window. The swf is just an animation. Trying to resize the actual swf content gives inconsistent results.

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 :: 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

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

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 :: Add Additional Name-value Pair In An Existing Object?

Apr 5, 2012

adding additional name-value pairs to my existing object in Flex;

I have an object1 of Object Type and I declare a new object2 = object1 plus some extra name-value pairs, is there a way to attach new name-value pairs to an existing object?

View 2 Replies

Data Binding - Flex Additional Label In ButtonBarButton?

Dec 5, 2011

I'm trying to extend ButtonBarButton to include an additional label that shows the number of updates for the respective box in a viewstack (which is the tabbar's dataProvider).

I can get the additional label (named indicatorLabel) to read an initial value from data, but I can't get it to update automatically like the actual "label" attribute. My understanding was that you could bind to the data object, but that doesn't appear to be the case.

[Code]...

View 1 Replies

Flash :: Flex - Using The Vanilla Preloader To Load Additional Assets?

Jan 27, 2010

I have a Flex application that automatically loads the SWF and it's contents and displays the default progress bar like in all Flex apps. Currently I have a class in the application using a Loader instance to load an external bitmap to be added to the stage/canvas. I'd like to handle the loading of this bitmap in the Flex default preloader and get rid of the Loader instance entirely.

View 1 Replies

Media Server :: XML Configuration Of FMS And Customization

May 7, 2009

An observation about the configuration files (XML) of FMS. When we roll out new versions or upgrades, it almost always involves updating or modifying the files in the conf/ directory. If it's within a certain revision, we generally copy them over from the previous install and it's fine. In the case of FMS 3.5, new configuration directives were added which necessitated our doing a fresh reconfigure to ensure everything was accounted for.

What I believe would make for an easier configuration process is to utilize the inheretance aspect of XML, allowing for a LocalSettings.xml file which would be read in by FMS last, overriding any default settings thus eliminating the need to alter the default *.xml files. Any new settings introduced that require changes can be imported as needed.

Overwriting the stock conf/*.xml files with new information would not interfere with your custom settings as they would remain intact in LocalSettings.xml. Any conflicts could be reported to the logs or stdout. One exception being fms.ini -- which could easily be revamped into XML and used in the above model.

View 2 Replies

Media Server :: Invalid Value Set For Configuration Key?

Jul 28, 2011

I had installed a FMS 3.5.6R6003 in a Cent.O.S linux with an Edge configuration... and i have found the following error in the /var/log/messages...!!!
 
Configuration[19756]: Invalid value set for configuration key : Application/Process/Distribute = Instances, using default to be compatible with inst..Configuration[19756]: Invalid value set for configuration key : Application/Process/Scope.numprocs = 5, using 1, to prevent app inst getting split among multiple processes.
 
But, even with this warning, the FMS is running apparently normal...

View 1 Replies

Actionscript 3 - Flash CS5 And Socket Configuration?

Dec 19, 2010

I couldn't find an up to date example of how to create a socket (I prefer in php or c++) and how to make the connection with AS 3.

View 1 Replies

ActionScript 2.0 :: XML Slideshow With 2 Sets Of Thumbnails?

May 22, 2007

however I need to create a gallery with two rows of thumbnails representing Before & After situation. So the xml would have to make a reference to 2 sets of images/thumbnails. I don't even have to have them scrolling. Is there an easy way of modyfying the existing code?

View 2 Replies

Media Server :: Acceptable Configuration To Install FMS?

Aug 26, 2009

We're in process of trying to purchase a new server. Our server unit wanted to provide a VM instance, which I told them would not work (according to the documentation). So, their next suggestion is to provide a blade server. Is this an acceptable configuration (assuming they meet recommended CPU/RAM requirements) to install FMS?

View 1 Replies

Professional :: Audio Configuration Flash To YouTube?

Feb 21, 2012

One Mp3 file lives in the main timeline of a Flash file extending length of movie. These files have to be converted for youTube postings. Output I've tried is .mov and .avi. Audio format is not being recognized by youTube. I only have the mp3 sound files which i know is a compressed format. Are there simple settings or config changes i can make for export to get these to upload to youTube with audio?

View 2 Replies

Java :: BlazeDS Turnkey Configuration For Mysql?

Nov 15, 2009

What is the configuration and code required to use mysql within a BlazeDS turnkey

View 2 Replies

Flash Photo Galleries Without Xml Configuration Files

Jan 16, 2011

I saw many examples in jquery compenents which takes image urls from HTML DOM. But flash photo galleries always need xml configuration files as i have seen till now. I need flash compenents which doesn't need any configuration settings from server. If it is possible to do that flash can get image urls from DOM or even by javascript. Is there such as flash photo gallery compenents ?

View 1 Replies

ActionScript 2.0 :: Load Multiple Images From Xml In Sets?

Feb 20, 2007

I have a project to do and I'm not sure how to get it done. I have some experience using xml to load images into flash but that was one at a time. the project that i'm currently working on needs to work like something like this.

I need flash to load in three images at one time(from an xml file) and display them in a horizontal line, and then move across the stage from one side to the other.

i know how to load one image at a time but not multiple. and i don't know how to make the images slide across the stage in a line.

View 4 Replies

ActionScript 3.0 :: Fonts In Library - How To Specify Char Sets

Jul 22, 2009

If I import a font to the library, am I correct in assuming that it imports the massive character set (all). There seems to be no setting that I can see where to specify the glyphs or level of character support for example all the funny characters.

View 9 Replies

ActionScript 3.0 :: Calling Individual Sets Of Animations?

Aug 8, 2011

I have a working timer in a class file that calls animations over a 15 minute period.

ActionScript Code:
public class rockSniperAlerts extends MovieClip
{

[code]......

View 2 Replies

ActionScript 2.0 :: Multiple Record Sets ASP To Flash

Apr 21, 2005

I know how to display 1 record set from asp to flash but I get tuck when trying to display multiple record sets. Do i have to loop with action script? I really dont know. I am trying to make a news blog and pull news from the database into flash and organize it similar to this

[Code]...

View 4 Replies

ActionScript 2.0 :: Multiple Record Sets ASP To Flash?

Apr 21, 2005

I know how to display 1 record set from asp to flash but I get tuck when trying to display multiple record sets. Do i have to loop with action script? I really dont know. I am trying to make a news blog and pull news from the database into flash and organize it similar to this

Date -- Headline
Bla BLah BLah Blah
Posted by: Webmaster

[code]...

View 4 Replies

Media Server :: Using Port 81 Fallback For Apache Configuration

Dec 14, 2011

I need to upgrade FMS 4.5 for HDS/HLS streaming. I am using Server 2008 and I need to use IIS7 port 80 for legacy web sites. I would like to configure in fms.ini using ports 1935 and 81 and Apache requests to port 8134. Can I use this configuration? Do I need to open ports 81 and ports 8134 in the network? What is recommended in this case?

View 5 Replies

As3 :: Php - Using An Object To Pass Arguments In Any Order - Class Configuration

Mar 3, 2010

I want to pass through configuration arguments to a class. These are all the optional vars that go into configuring the class - and should be able to run in any order.

at the moment i just pass through the optional vars the regular way. Supposing the constuctor was like the following:

private var _reqVar:String;
private var _optVar1:String;
private var _optVar2:String;

[Code].....

assigning the argument to the var of the same key (i know in php to reference a variable name from a key you can use $$key = $value, is there an equivalent in as3?) display an error (using the 'throw' method) for variable names not supported by the class

View 1 Replies







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