1 Reply Latest reply on Jun 17, 2013 9:13 PM by Flex harUI

    1120 Error


      Very new to Flash builder. im trying to do a project for school making an interactive map.
      I found the Openscales project which im trying to use to give my map interactivity.
      Ive been following the tutorial given on the project website

      ( http://openscales.org/documentation/tutorials/current/tutorial-api-2.html )


      Before I try to import my own map image im trying to make this map from the tutorial work then im assuming it will be fairly easy to plug in my graphics. but...


      Ive run into an Error which I cant seem to fix. Ive googled and read of similar problems with this error but their problems werent exactly the same so i still couldnt really figure out whats causing it for me.


      I get the Error "1120:Access of undefined property fxmap."


      This is the code which i followed from the tutorial:




      <?xml version="1.0" encoding="utf-8"?>

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"











                <os:Map id="fxMap"







        <os:Mapnik name="Mapnik"/>















                                    import org.openscales.core.Map;

                                    import org.openscales.core.feature.CustomMarker;

                                    import org.openscales.core.feature.PointFeature;

                                    import org.openscales.core.layer.FeatureLayer;

                                    import org.openscales.core.style.Style;

                                    import org.openscales.geometry.Point;

                                    import org.openscales.proj4as.ProjProjection;


                                    [Bindable] private var map:Map = null;

                                    private function initMap():void{

                                              map = fxmap.map;










      The Error is on the Line 45: 


        map = fxmap.map;



      Any help is greatly appreciated. Im on a pretty short deadline to figure all of this out.