1 Reply Latest reply on Apr 23, 2007 10:38 AM by JeffreyGong

    unable to load YahooMapSWC error


      I have just downloaded the Yahoo Map API for Flex (Version 3.5 beta), and i started a new Flex project, and added the yahoomap.swc file to my source folder.

      After that, i copy pasted the following lines of code from yahoo's Site (Yahoo Map-Flex - Getting started guide), just to check how it works

      <?xml version="1.0"?>
      <mx:Application xmlns:mx=" http://www.macromedia.com/2003/mxml"
      xmlns:yahoo="com.yahoo.maps.api.flex.*" xmlns:local="*"
      xmlns="*" >
      <yahoo:YahooMap id="myMap" width="550" height="400"
      zoomLevel="3" latitude="37.77159" longitude="-122.401714" />

      in the source view of Flex Builder 2.01, i am getting an error in the design view stating that

      An unknown item is declared as the root of your mxml document.Switch to source mode to correct it.

      when i run this application, i am getting the following error

      1 Error, 1 Exception found.

      Error /YahooAPI/YahooAPI.mxml
      unable to load SWC YahooMap.swc

      Exception unable to load SWC YahooMap.swc
      unable to load SWC YahooMap.swc

      can anyone help me out- how to rectify this problem.