Problem with "Building interactive maps with Flex" example

I have been looking at the tutorial by Matt Sheehan Building interactive maps with Flex found at
I have downloaded  Flash Builder 4.6 trial version and followed the example. I have also copied the source code from the example and pasted that into the file mymodestmap.mxml.
In both cases the application opens a new page in Google Chrome but does not display any map data.
No errors or warnings are displayed when I run the code from Flash Builder.
Although I have got plenty of experience of writing software, I am a total beginner when it comes to developing web applications!
Any ideas as to what I am doing wrong, I have attached the source below.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="" xmlns:s="library://" xmlns:mx1="library://"
                                 minWidth="1024" minHeight="768" creationComplete="init()" viewSourceURL="srcview/index.html" xmlns:mx="library://">
                              import mx.core.UIComponent;
                              import com.modestmaps.TweenMap;   
                              import com.modestmaps.mapproviders.OpenStreetMapProvider;
                              import com.modestmaps.geo.Location;
                              import com.modestmaps.extras.ZoomSlider;
                              import com.modestmaps.extras.HandCursor; 
                              [Bindable]private var _map:TweenMap;       
                              private var _mapUI:UIComponent;
                              [Bindable]private var _initialLat:Number = 40.668903;
                              [Bindable]private var _initialLong:Number = -111.680145;
                              [Bindable]private var _initialZoom:Number = 6;
                              private var _mouseWheelZoomCenter:Location;
                              private var _mouseWheelZoom:int;     
                              private function init():void
                                        _map = new TweenMap(mappanel.width, mappanel.height, true, new OpenStreetMapProvider());   
                                        _map.setCenterZoom(new Location(_initialLat, _initialLong), _initialZoom);
                              private function mapCore():void
                                        _map.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);   
                                        _mapUI = new UIComponent();
                                        var zoomslider:ZoomSlider = new ZoomSlider(_map);
                                        zoomslider.x = mappanel.width - zoomslider.width*2;
                                        zoomslider.y = 30;
                                        var handcursor:HandCursor = new HandCursor(_map);
                              private function mouseWheelHandler(e:MouseEvent):void {
                                        if ( < 0) {
                                        else if ( > 0) {
                                        _mouseWheelZoomCenter = _map.getCenter();
                                        _mouseWheelZoom = _map.getZoom();
          <s:BorderContainer id="mappanel" width="100%" height="97%"/>

Technically, it's Javascript, not Java :) TOTALLY different beasts. I wish they'd never named it Javascript, it's ambiguous. So anyway, on to the point of the whole thing...
If you want quotes in your values, you'll need to write a function to replace " with \", and pass the values through it. So instead of javascript:passBack('#ENAME#','#JOB#','#SAL#'); you would have javascript:passBack(addslashes('#ENAME#'),addslashes('#JOB#'),addslashes('#SAL#'));. That would mean that ABC"DEF"GH would be passed to the function as ABC\"DEF\"GH and your quotes would stay intact. Search around on the internet for more specifics as to how to pass double quotes in javascript by using backslashes.

Similar Messages

  • Problems with the examples in NWDS

    Hi All,
    Running the Welcome example project in NWDS i  have the included error.
    I have problems with other examples too.
    I did all the step by step tutorials.
    I have NWDS 2.0.3
             J2EE 6.40 SP15
             EP 2004
    I am new in NWDS and i have not still successed to run any application.
    What is wrong with my systems?
    I did all the configurations start J2EE /sdm etc.
    Do i have to install other versions? I read that maybe i have to install the same SP 15.
    Please if anybody can help me .
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was: Classloader of 'local/Welcome' is null, even though application is started.
    ... 18 more

    Thank you for your help,
    I have NWDS 2.0.3 and Web AS 6.40 SP15 and EP 04.
    How can i be sure if  are compatible? Maybe i have to install NWDS SP15?
    I did "Rebuild" and then  "Deploy new archive and run" Deploying i was asking for the sdm password  , then the application opened in a new browser and we can see this message below.
    The Deploy Output View is empty. There is no eny successful deploy message.
    I appreciate your help.
    500   Internal Server Error
      Web Dynpro Container/SAP J2EE Engine/6.40 
    Failed to process request. Please contact your system administrator.
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
        at java.lang.reflect.Constructor.newInstance(
        ... 27 more
    See full exception chain for details.
    Correction Hints
    The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
    If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package*) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.
    Note: the above hints are only a guess. They are automatically derived from the exception that occurred and therefore can't be guaranteed to address the original problem in all cases.
    System Environment
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    DOM version 
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Web Dynpro Runtime Vendor: SAP, Build ID: 6.4015.00.0000.20051123162612.0000 (release=630_VAL_REL, buildtime=2005-12-14:21:51:22[UTC], changelist=377533, host=PWDFM026)
    J2EE Engine No information available
    Java VM Java HotSpot(TM) Server VM, version:1.4.2_07-b05, vendor: Sun Microsystems Inc.
    Operating system Windows 2003, version: 5.2, architecture: x86
    Session Locale en_US
    Time of Failure Fri Jan 26 14:29:31 EET 2007 (Java Time: 1169814571353)
    Web Dynpro Code Generation Infos
    No information available
    No information available
    No information available
    Detailed Error Information
    Detailed Exception Chain Failed to create delegate for component (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
         at javax.servlet.http.HttpServlet.service(
         at javax.servlet.http.HttpServlet.service(
         at Method)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
         at java.lang.reflect.Constructor.newInstance(
         ... 26 more
    Caused by: java.lang.InstantiationError:
         ... 31 more

  • Hey Guys, problem with Flex Time.

    Hey Guys,
    i have a problem with Flex Time. I was searching for a way to copy my 1-Tackt Timplin Beat to make 12 out of it, but there were always "wholes" between the new inserted regions. So i found Flex Time, but then when i choosed a Region, pressed the Flex Time button, nothing happend, except that the Header became a little bit bigger, as if there would been added a few more options, but there came only more free space .
    Would be great if somebody could help me!:)

    I would suggest Option dragging the bottom right edge of the Region so it fits precicely to the grid, then copy.  This is a quick way to time stretch...

  • Build problem with Hello1 example.

    I have installed j2ee1.4 and trying to run the j2eetutorial1.4
    I am facing a problem in building the hello1 example.
    1) When I build the hello1 example, the build fails with the following error message
    C:\java-works\j2eetutorial14\examples\web\hello1>asant build
    Buildfile: build.xml
    [javac] Compiling 2 source files to
    s\j2eetutorial14\examples\web\hello1\${j2ee.home}\lib not found.
    Total time: 1 second
    2)) Editing the build.proerties file to include the j2ee.home property.When I save the file it gets a .txt extension.Could this cause a problem , while I try to build the examples? if so How can I avoid this?
    Could anyone please help me in this?

    To save the file without .txt extension
    just enclose the file with double quotes
    "" in the File save dialog box

  • Ridiculous problem with Flex!!!

    Actually, just kidding :) I've had a few, the ridiculous part
    being my lack of understanding :). I just want to say I'm really
    enjoying working with Flex, I love the Apps I've created, and I
    couldn't have done any of it without all of the excellent help I've
    recieved on this forum. I'm getting to the point now where I can
    figure things out just using all of the (very many) online
    examples. I hope in the future I'll be able to help others as much
    as I've been helped.
    Thanks folks!

    Hi again,
    after research I found out that apparantly it's not easy to make the preloader appear instantly (maybe impossible actually) although the DownloadProgressBar has a method that checks the ratiobetween timing and bytes downloaded  (showDisplayForDownloading).
    I assume that you can change this ratio or logically make the return value always true by extending the class. But this didn't work for me.
    I did found another solution (actually kind of a hack but it works) where you set a timer.
    This did make the preloader load instantly and smoothly.

  • Problem with aurioTouch example program

    Is anyone else having problems getting the aurioTouch example program to work in the emulator? I seem to have problems with any and all audio -related functions? What could be the problems?

    This problem was fixed in the LabVIEW 6.0.2 update. You can download this update (along with the updated runtime engine) from our website.
    Good luck with your application, and have a pleasant day.
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Reading TDMS files in Matlab - problems with the example code

    I want to use the TDMS files to store data and do offline analysis in Matlab, version 2009b (either on Mac OS10.6 or Windows XP).
    To test the data import in Matlab I tried the example from , but without success.
    I tried either with and without the path definition (as explained on the page I referred to before) at the start, and got back the following errors:
    ??? Error using ==> loadlibrary>deltempfiles at 559
    Error in ==> loadlibrary at 452
    Error in ==> Read_TDMData at 7loadlibrary([examplePath '\nilibddc'], hfile);
    ??? Error using ==> loadlibrary>deltempfiles at 559
    Error in ==> loadlibrary at 452
    Error in ==> Read_TDMData at 36loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path); 
    I found a few messages on the issue, dating from 2006 and 2007, that didn't lead to a satisfying solution and was hoping that, by now, there would be a solution to my problem.
    Thanks a lot
    Go to Solution.

    Hi Musk,
    Thanks for your answer. 
    Unfortunately it didn't help as my problem is not discussed there. I have a problem with this line:
    I said before that I was using 2009b, but I was mistaken, I have R2008a, but the 'loadlibrary' is opened in a 2008b editor (no idea why). On the Mac I have 2009b installed.

  • Problems with axis example

    I'm trying to run the example that comes with axis, but I get: Connection refused
    Does anyone know if this server is still running and on the same port (5049) or if there's just something wrong with me.

    Originally posted by:
    Hey Vladimir,
    Import org.eclipse.tomcat as a project into your workspace and see how it's
    done in org.eclipse.tomcat.internal.TomcatAppServer - same idea as in onJava
    example and obviously working.
    "Vladimir Kvassov" <[email protected]> wrote in message
    news:ci5r6d$k3o$[email protected]..
    > Thank you,
    > but this is example, which I'v mentioned in my first message.
    > (it doesn't work under eclipse)
    > "Peter van de Hoef" <[email protected]> wrote in message
    > news:ci4o25$3t9$[email protected]..
    > > Hello Vladimir,
    > >
    > > Here's an article that describes how you can embed Tomcat in another
    > > application:
    > >
    > > I expect that you can apply this in one of your own Eclipse plugins.
    > > (I haven't tried this myself but hope it will work)
    > >
    > > Regards,
    > > Peter van de Hoef
    > >
    > > "Vladimir Kvassov" <[email protected]> wrote in message
    > > news:ci487b$1su$[email protected]..
    > > > Hi
    > > >
    > > > Application, which we develop is based on Eclipse platform,
    > > > and now we need to provide access throug web-services.
    > > >
    > > > Is it possible to start Tomcat in the same VM, as Eclipse?
    > > > So, web services will be able to access classes from
    > > > our application?
    > > >
    > > > Or maybe there is some better ideas?
    > > >
    > > > I found example of starting tomcat from java application,
    > > > but from one side, I'v got problems with Axis, from another
    > > > side, it seems, this this example doesn't work in Eclipse environment.
    > > >
    > > > I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
    > > > it works, and id I can use it at all.
    > > >
    > > > Thank you beforehand.
    > > >
    > > > --
    > > > Best Regards
    > > > Vladimir Kvassov
    > > >
    > > >
    > >
    > >

  • Problems withe transport example

    I'm trying out Oracle lite 10g on Windows XP. I've installed the mobile server with examples and now I want to install the Mobile Client on the Win32 Device. After synchronising I tried to install the transport application. This works without error messages. Then I opend the update-window (I think ist the one in the start-menue) but there is nothing to install. I find no transport.exe on the whole device.
    Then I looked on the Mobile-Server. There are two transport.exe files in the folder <oracle home>\Mobile\Server\samples\Transport\Win32\bin and <oracle home>\mobile_oc4j_\j2ee\home\applications\mobileserver\samles\Transport_win32.
    What's going wrong with my installation?
    Best Regards

    Hello Jorge,
    I have the same problem with PPC2002. I posted this problem at September 17th. But nobody replied.
    Problem registering PPC 2000 Client
    The Device can't register with the Device Manager on the Server. I updated the firmware of my client and everything else what I thought could cause the problem.
    What language has the PPC2003 system of your device?
    Perhaps the problem is that only the english PPC2003/2 system is supported. Because I have the german version of PPC2002. Hopefully someone from Oracle or someone else responds to this thread.

  • Problem with BIB examples

    I have some problems with (bootstrap project)
    when i try to connect :
    oracle.dss.bicontext.BINamingException: BIB-14736 BIUser does not exist in the BI Beans Catalog.
    However, I used BIBCAT login.
    A solution ?

    ensure that in the code the line
    private static final String m_configFile="***.xml";
    contains your .xml configuration file,and that the userName and password in the DAD files are correct

  • Problem with Flex Plugin for eclipse

    Hi there
    I have downloaded the latest Europa Eclipse and also the the
    Flex builder plugin. The Flex wizard for installing the plugin
    tells me to select the folder where my eclipse is installed. When I
    do this, I get an error message saying that I must choose a valid
    3.* Eclipse directory.
    I have no idea what the problem is?????

    I am having same issue, I don't know how to procced. My
    installation has eclise Version:
    Build id: M20071023-1652 and configuration directory.
    Any help on this is highly appreciated

  • Video Display Problems with Flex Builder 2

    I am currently trying out the Flex Builder 30-day trial and
    have been having problems running the software.
    System info:
    FB 2.0.1
    Dell Latittude D820 running WinXP
    NVIDIA Quadro NVS 120M Video Card
    When I first installed it, my display turned to garbage and I
    had to reboot my machine to get it to a usable state. Someone
    suggested changing my display properties and see if it helped. When
    I tried 768X1024 with 8-bit color it worked. Once I installed it, I
    changed them back to 1920X1200 32-bit. Everything seemed to work
    fine until I started getting into some more complicated tutorials.
    My display crashed and looked similar to what I saw before. I
    updated to the latest NVIDIA driver from Dell. No help. I then
    tried the Windows Troubleshooting. When I turned my hardware
    acceleration to None, it started working again. There are some
    weird display issues with menu buttons and I can't launch my Nvdia
    Is there a better solution to this? Has anyone had this
    problem? I'm not so sure I'll purchase the software with this many

    Boys n Girls
    I am Currently restoring my Power Book after a significant meltdown.
    Thanks for posting I too saw the shearing effect but shrugged it off thinking oh well I'll just reboot!
    If you are seeing this Buy a fire wire drive NOW and Back-up.
    I suspect the Video update changed a low level feature in the power management routines and this resulted in my Power book cooking itself.
    I've got a 12mth old Hitachi 7200 PATA drive in my Power Book after the Apple Drive cooked itself soem tim back and I have now got to back-up and restore my whole system. Luckiliy I have plenty of Big fast firewire drives around so I'm imaging the corrupt drive and going to run the Hitachi tool on it via a WINDOZE Thinkpad. Then a combination of clean install of 10.5.x and a migration assisted restore should do it.
    I'm really not very happy though! My Time machine image did not restore and the disk repair did not work. I have a corrupted asl.DB ( the log file for Apple System Logs) and the mac won't boot from its internal drive.
    I'll post the resolution here as it happens I'm at hour Disaster + 24 so I'm really cranky!
    I suggest If you have a G4 Power Book you resist the temptation to install the video update.

  • Problem with Flex Builder 3

    Hey Experts,
    I tried creating Flex Library Project in Flex Builder 3. No issues so far. Everything works fine. When the day ends, I close Flex Builder (without closing the project as it restores them during next launch). I had to close it...I can't keep the system running. Global warming you know...Next day when I launched Flex Builder, I could see my project there. However, when I open Project Properties dialog box, I get some errors while trying to open Flex Library Build Path or Flex Library Compiler pages. The error says "The currently displayed page contains invalid values."
    C'mon man you gotta be kidding me. Yesterday you didn't say anything. What's the matter with you today. By the way, I didn't change anything in properties. How could I? I am unable to open it...
    Does anyone understands Flex Builder's logic here?

    Mate the first thing I tried was this...
    If you want to see the problem, try crating a Flex Library Project in Flex Builder 3. Create couple of classes and close Flex Builder without closing the project. Re-launch Flex Builder and try to open Project -> Properties -> Flex Build Path or Project -> Properties -> Flex Compiler. You should be able to see the problem.

  • Problems with Flex builder upgrade

    Hi, I'm trying to upgrade my copy of Flex Builder to
    2.0.1 so that I can install the Apollo plugin, but when I run the
    upgrade the wizard says it cannot find the correct folder
    apparently it does not contain the plugin and features folders, but
    I know it does I can see them. I have installed Flex builder on the
    D drive of my PC, I'm not sure if that is the cause of the problem.
    I also have a copy of Eclipse 3.2 with the Flex Builder plugin
    installed, which does have the Apollo plugin working, but I'd like
    to have the full Flex builder working so I can use the RDS plugins
    to view my databases, which doesn't work in Eclipse 3.2.
    So what is the best place to have Flex Builder installed so I
    can get Cfeclipse, RDS and Apollo plugins to work?

    Is Flex Builder running? In Beta 3 we have a problem in that
    we were opening the Help in an external browser, which stays open
    when you stop Flex Builder (which, in turn, stops the Tomcat
    instance that runs the Help).
    For final, we'll rever to using the internal browser window
    by default, which closes when you close Flex Builder.

  • Problem with Flex Builder 4 Plugin and SpringSource 2.3.2.RELEASE

    I am getting following error while opening up a Flex project. The file icons are showing up correctly but then it is creating a stream of following errors.Any help is appreciated.
    Session Data
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments:  -product com.springsource.sts.ide
    Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide
    Exception Track Trace:
    java.lang.NoClassDefFoundError: com/adobe/flexide/editorcore/EditorUtility
    at com.adobe.flexbuilder.editorcore.editor.ToggleModeAction.selectionChanged(ToggleModeActio
    at org.eclipse.ui.internal.PluginAction.refreshEnablement(
    at org.eclipse.ui.internal.PluginAction.selectionChanged(
    at org.eclipse.ui.internal.PluginAction.selectionChanged(
    at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.j ava:156)
    at org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionServ
    at org.eclipse.jface.viewers.Viewer$
    at org.eclipse.ui.internal.JFaceUtil$
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(
    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(
    at org.eclipse.jface.util.OpenStrategy.access$4(
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(
    at org.eclipse.swt.widgets.EventTable.sendEvent(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Display.runDeferredEvents(
    at org.eclipse.swt.widgets.Display.readAndDispatch(
    at org.eclipse.ui.internal.Workbench.runEventLoop(
    at org.eclipse.ui.internal.Workbench.runUI(
    at org.eclipse.ui.internal.Workbench.access$4(
    at org.eclipse.ui.internal.Workbench$
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.eclipse.equinox.launcher.Main.invokeFramework(
    at org.eclipse.equinox.launcher.Main.basicRun(
    at org.eclipse.equinox.launcher.Main.main(

    I can reproduce the problem but for me it does not seem that it is caused by the SSL handshake because that one is already successfully finished at the moment of the ClassNotFoundException. Did you try the phenomenon with different browsers and/or the appletviewer too ? Maybe it is only a problem of the plugin class loader. How did you convert to Java 1.4 ? I always use a HTML template with an <applet> tag and then use htmlconverter from the JDK to convert it to the needed JRE.
    good luck - mad

Maybe you are looking for

  • Extract the uri filename of an attached file

    Hi, I am attaching a file by the click of a button. It is required to retrieve the filename of the attachment as a Text/ label. can anybody help me out on these lines. Prash

  • BPM workspace error.

      Hi All, I am getting the following error while logging in. When I enter my username and password in the BPM workspace browser it shows me the home page for a fraction of a second and then shows this error.   Error 404--Not Found   From RFC 2068 Hyp

  • Need helps for remote connection issue

    Dear guys, Today, I got a problem regarding remote connections. My Oracle stopped responding to remote connections. (tried to connect by sqlplus with service name, and sqlplus hung) Tnsping works. Local connection works (tried to connect by sqlplus w

  • Problems with SCXI-1000 after update from Labview 5.1 to LabView 6

    I'm using a SCXI-1000 board to readout temperatures from some Pt-100 sensors. The analog signal going into the SCXI-1000 is correct. The reading by LabView program is not. The SCXI-1000 is connected to the PC via a PCI-1200 bus. I've used this setup

  • User exist CCUX0008 does not take effective

    Dear Expects,     I implement user exist CCUX0008 with very simple code NO_EXPL_EXT_PROCUREMENT = 'X' . in ZXCUCU15 include file.     After I active it I found the external procured components still explore their children materials in T-code cu51/cu5