3 Replies Latest reply on Jun 14, 2007 9:30 AM by babo_ya


      Hi, I was wondering if someone could help.

      Is this possible in flex. Please say yes.

      I am using an image of a map which is just a standard jpg image.

      Is there anyway you can use html style hotspots on the image so certain defined areas of the map correspond with certain click events. i.e. i know where about the mouse has been clicked on the image.

      Any help would be appreciated.

        • 1. Re: Images
          babo_ya Level 3
          I would create a custom image class where and use 'graphics' to draw hotspots when loaded. Sounds complicated but, pretty simple.
          Hope this helps.
          • 2. Re: Images
            Jonah01 Level 1
            Thanks for your response. I am pretty new to Flex. I know how to create a custom actionscript class but how do you get hold of the graphics object to start drawing to the screen and also to then add events to these hotspots.

            Could you give me slightly more detail please.

            Thanks again for your help.

            • 3. Re: Images
              babo_ya Level 3
              Every DisplayObject class object has a property called 'graphics' .. so you don't need to do anything if you are extending Image component.
              graphics.lineTo(100, 100);
              will draw a line