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


Similar Posts:


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

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

ActionScript 2.0 :: Load Xml File From Another Domain / Host?

Jul 3, 2006

Loading xml file from another domain or host?

View 1 Replies

Xml :: Actionscript 3 - Dynamically Load An Xml Configuration File Into A Flex4 / Flash Movie At Runtime?

Jan 27, 2010

I've got a rather simple question about loading in an xml file at runtime in a SWF. I've found a couple different methods to load in the xml.

myXml.load("file.xml");
HTTPService object
URLStream object

What is better way to load an xml file that always has the same name and is located in the same folder as the SWF on the web server?

View 1 Replies

Flex :: Host A Flex Web Application On Internet?

Nov 29, 2010

Recently I have developed a flex web application and now I wanted to put on internet. I know that there are quite a lot free web hosting company but I am bit confused as in how I have to start. Application which i built used PHP and MySQL database. Currently I am runnning it on WAMP server.

View 3 Replies

ActionScript 2.0 :: MXML Project In Flex 2 - Make SWF File As Main Executable File?

Nov 26, 2006

I have to make a project for school. It will be like a tutorial, but into an application. I already made a part of it in MXML and a bit of action script but I encountered a few problems that are over my newbie limits. So the Flex Builder 2 makes a SFW file, in the main folder of the "project". I want to make that SWF file my main executable file. I have a folder with some pics, and another folder with Action Script Files. The code lvl that I know atm is ABSOLUTE BEGINER... I don know how to make my SWF file have a specific name when I run it.Here is a picture of a training exercices that should make thing more clear:Some people told me that I should use a HexEditor and stuff. Is it ture(what u think?).

Next problem. I dont know how to make the Stage to be fix. I mean.. I dont want the stage to be resizeble. I tryed to change the stagescalemode but that wasn't it. I toke a look at the help files of Flex from the net, about the Resize action and SystemManegment, but I didn't find out what I wantend.

View 4 Replies

Android :: Convert Flex Mobile Project To Flex Web Project?

Jun 29, 2011

I have a flex mobile project and I want to convert it into web-based project. What is the best way to do it.

View 1 Replies

Flex :: Load A Big Picture Or Swf File By Calling Loader.load() In Flex?

Nov 17, 2009

I get a ActionScript class for loading the content:

public class LoaderContainer extends Sprite {
public function LoaderExample() {
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
addChild(loader);

[Code]...

View 1 Replies

Flex :: Run .swc File In Project?

Mar 18, 2010

I have a .swc file and I learned how to add that swc file into the library. I will be happy if any one explain how to use this .swc file into my flex project and run that with an example .

View 1 Replies

CS5 :: Load Flex / Flash Builder Project In Professional?

Oct 13, 2011

Is there a way that I can load (or export) Flex/Flash builder project in Flash Professional CS5?As it turns out we got Flash Prof for our team, but it may look like we actually need Flash builder to build lots of UI related stuff..

View 1 Replies

Actionscript :: Project Compiled As Swf / Load It With Flex And Use Functions It Provides?

Dec 22, 2009

I have an ActionScript project with several classes that i compiled as an swf using Adobe Flex (by creating an actionscript project and clicking on export -> release build)Is there a way to load that swf so i'll be able to load it's classes and use them on a different swf? i know i can use the following code to load an swf file:[code]

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

Flex :: Load / Steup Flexlib Project Source In Builder?

Sep 11, 2009

I downloaded flexlib source from [url]...

I want to be able to set it up and run it in flex builder and play with it for learning purpose.

I tried to use the import project option by pointing to the flexlib directory but it did not work - I think thats because the source by default does not have any .project or properties files.

View 1 Replies

Flex :: Default Preloader Does Not Load The Images / Swf's Inside The Project

Apr 16, 2010

I have a flashbuilder project with a big image. The problem is that the default preloader does not load the images/swf's inside the project. Is there a way to preload them?

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

Flex :: Textmate - Load A Custom Compiler Config When Compiling Project?

Oct 31, 2010

I need to load a custom compiler config when compiling my project with textmate (as3 project).How can i do this?

View 1 Replies

Flex :: Use A Style.css File From A .swc And Build The Project With ANT

Jul 9, 2010

I have an .SWC library with a style.css file inside. The .SWC file is added to my project and the style.css is used this way: <fx:Style source="assets/style/style.css" /> If I want to build my project with an ANT-script it says that "the external stylesheet couldn't be found". In ANT you need to write the path for assets with an leading "/". So this would work: <fx:Style source="/assets/style/style.css" /> But in this case it isn't possible to retrieve the style.css from the .swc as the compiler says that "the external stylesheet couldn't be found". Is there any way to use the style.css inside the .swc AND use ANT to build the project?

View 1 Replies

Javascript :: Place File In A Flex 3 Project?

Sep 16, 2010

I've got a javascript file that I need to load into my Flex 3 project. I access it in the HTML wrapper like so:

<script src="myJSFile.js" type="text/javascript"></script>

I use Google Code's library to access JQuery.

Is it okay to put the javascript file in the html-template folder? The idea being that it would be included in the release build. Any reason not to do so? Will this cause an error?

View 1 Replies

Php :: Running File With The Release Of Flex Project?

Feb 23, 2011

Problem:I call a PHP file using an HTTPService. I set the result of this HTTPService to a function which populates a testTextArea with whatever the PHP file has returned (echoed). This work fine when I run the application from flash builder i.e. I get strings in the testTextArea, echoed by my PHP file. But this does not work fine when I make the Release of the project and the testTextArea gets populated by the whole code of PHP file.

[Code]...

View 2 Replies

Php :: Writing To An XML File In Source Directory Of Flex Project?

Feb 23, 2011

I am writing to an XML file which is placed in the src directory of my Flex project. But when I run my application, the changes I make to that XML file actually reflects in the copy of that XML file in my [code]Is there a way to reflect those changes to the actual xml file i.e. the one in the src directory?Server Side: PHP.PHP file is in the same src folder. Here is the related snippet of code:[code]

View 1 Replies

Actionscript 3 :: Open File Structure As Flex Project?

Mar 26, 2011

I received a Flex project but don't know how to open it in Flash builder. It doesn't contain a project.mxml or .actionScriptProperties, .flexProperties and .project files. the file structure looks like this:

(rootFolder)
-(com)
subfoldrestructure containing only folders and .as files
-(src)
-(_embed)

[Code]...

how do I make a compilable Flex project out of this?

View 1 Replies

Flash :: Call Flex Project From Other Flex Project?

Sep 16, 2011

I have 2 flex projects which were create in flash builder 4.5.....how can i call one project from second??? the best would execute to the same window.... I'm interesting about both possibility (in browser and air too).

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

Actionscript 3 :: How To Get Host Ip In Flex

Jun 26, 2011

When it in PHP, we already know using $_SERVER['HTTP_HOST'] we can a host IP, what if it in AS3?

View 1 Replies

Actionscript 3 :: Share .as File Bettween Two Applications In Same Project In Flex?

Apr 16, 2010

I have two applications in my project 'test' the applications are one.mxml and two.mxml and i want to use the same main.as file in both using

<script source='main.as'/>

Can I access the components of both applications from main.as when both are running simultaniously.

View 1 Replies

ActionScript 3 :: How To Compile Maven / Flex Project Without Any MXML File

Dec 13, 2010

Is there any way how to compile maven/flex project which does not contain any *.mxml? The flex project contains ActionScript classes only (i.e. "src/flex" directory contains *.as files only). My pom.xml is here:

<groupId>com.test</groupId>
<artifactId>test</artifactId>
<version>1.0-SNAPSHOT</version>
<name>test</name>
<packaging>swf</packaging>
[Code] .....

View 2 Replies

Css :: Flex - Properly Reference An Image In A Library Project File?

Sep 26, 2011

My flex (flash builder 4) project references (embeds) a flex library project (ReusableFx). I have it working fine when it builds and runs, but I am struggling with a Design mode error "Design mode: Error during component layout...". In the flex library project there is a 'default.css' file which references a png file. Specifically like this:

[Code]...

It works when I build and run, I see the icon, but the problem is that design mode must work different in flash builder and breaks with this line. I tried a few things with no difference:

[Code]...

View 2 Replies







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