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?
Announcement
Collapse
No announcement yet.
please help me figure out how to do this
Collapse
X
-
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
-
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
-
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.Originally posted by Kuciwalker View PostAir 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.]"In the beginning was the Word. Then came the ******* word processor." -Dan Simmons, Hyperion
Comment
-
Originally posted by Provost Harrison View PostHow 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
-
what an AWFUL way to do itOriginally posted by Kuciwalker View PostHC: I'm making them like this: http://tantek.com/CSS/Examples/polygons.html
If there is no sound in space, how come you can hear the lasers?
){ :|:& };:
Comment
Comment