Announcement

Collapse
No announcement yet.

please help me figure out how to do this

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • please help me figure out how to do this

    So I'm playing around with Adobe Air and Aptana, and I want to make a hexagonal interface element [actually several, tiled]. I really, really, really want it to be hexagonal. Sadly, Air does not support SVG, I don't know how to do Flex or Flash (and it looks like it would require redesigning everything else in the app), and reimplementing SVG on a canvas with an image map is not an appealing prospect. So. Is there some way to make a hexagonal div? If not, what's the best way to do this?

  • #2
    Illustrator should directly export to .fxg, which you should be able to bring into Air. You may still need to script in Flash/Flex on the way through though, I don't know. Maybe Fireworks would have a simple button-builder? In any case, I suspect you'll have to do the scripting outside of Air.
    "In the beginning was the Word. Then came the ******* word processor." -Dan Simmons, Hyperion

    Comment


    • #3
      Air is the platform, not the development environment - I'm using Aptana. The problem is that I want to dynamically generate the hexes, dynamically alter color/border/etc, and have the elements be clickable without writing bounds checking. I've found a really awful CSS hack to make this work, but that means I still have to write bounds checking in my onClick()

      [Obviously, this is for a game.]
      Last edited by Kuciwalker; August 9, 2010, 17:17.

      Comment


      • #4
        CSS hacks

        You're using CSS with SVG or just (X)HTML?
        If there is no sound in space, how come you can hear the lasers?
        ){ :|:& };:

        Comment


        • #5
          Originally posted by Kuciwalker View Post
          (...)dynamically generate the hexes dynamically
          Approved by the Department of Redundancy Department approves
          Indifference is Bliss

          Comment


          • #6
            How is that rock and roll lifestyle working out for you Kuci?
            Speaking of Erith:

            "It's not twinned with anywhere, but it does have a suicide pact with Dagenham" - Linda Smith

            Comment


            • #7
              Originally posted by Kuciwalker View Post
              Air is the platform, not the development environment - I'm using Aptana. The problem is that I want to dynamically generate the hexes dynamically, dynamically alter color/border/etc, and have the elements be clickable without writing bounds checking. I've found a really awful CSS hack to make this work, but that means I still have to write bounds checking in my onClick()

              [Obviously, this is for a game.]
              Sorry; to clarify, I meant "in AIR" as being in Javascript/HTML, as opposed to Actionscript in Flex/Flash. (I know things are blurrier than that, it's just how I think of it...the few times I've ever thought about it.) I just meant that you should be able to do the buttons on their own and drop them in as a self-contained unit if you don't want to deal with Flash. But if you want them generated dynamically you'd need to get into heavier Actionscript than that.
              "In the beginning was the Word. Then came the ******* word processor." -Dan Simmons, Hyperion

              Comment


              • #8
                HC: I'm making them like this: http://tantek.com/CSS/Examples/polygons.html

                Comment


                • #9
                  Originally posted by Provost Harrison View Post
                  How is that rock and roll lifestyle working out for you Kuci?
                  "Flutie was better than Kelly, Elway, Esiason and Cunningham." - Ben Kenobi
                  "I have nothing against Wilson, but he's nowhere near the same calibre of QB as Flutie. Flutie threw for 5k+ yards in the CFL." -Ben Kenobi

                  Comment


                  • #10
                    Originally posted by Kuciwalker View Post
                    HC: I'm making them like this: http://tantek.com/CSS/Examples/polygons.html
                    what an AWFUL way to do it
                    If there is no sound in space, how come you can hear the lasers?
                    ){ :|:& };:

                    Comment

                    Working...
                    X