Sunday, January 2, 2011

Flex 4 Gauge


Since the release of Flex SDK 4 , I keep on searching for a free Gauge compatible with the new SDK but it ends with nothing. All available gauges were not free or incompatible with flex sdk 4. so i decided to find a way to migrate the most famous free flex gauge to SDK 4 but i faced 2 major problems:
  1. The Gauge is based on Degrafa and as known it is not supporting flex sdk 4 till now
  2. The beta version of degrafa 4 have major changes in the sdk that previous versions.
So i tried to use some new classes from the degrafa sdk 4 instead of the old ones to do the same functions and i succeed in this but i have a problem with only 1 class which is "ArcLineRepeater" which is responsible for drawing the gauge ticks.

Thanks to google :) i found the whole class action script and i started migrating it to flex sdk4 and the good news the gauge finally works with the same look and feal of the old one but this time is compatibale with flex sdk 4

you can download the new SWC from here

6 comments:

  1. This is very interesting. Will you share the source code too?

    ReplyDelete
  2. Hi,

    I would also like to follow up on the previous request for source code? And I'm very new to Flex... I've downloaded the zip file but what do I do with it??? I know the swf file is key but what do I copy into my project and where and how do I reference???? Please provide VERY BASIC STEPS if you will be so kind....Thanks.

    ReplyDelete
  3. Hi, I think I've found the answer:
    http://help.adobe.com/en_US/flashbuilder/using/WS6f97d7caa66ef6eb1e63e3d11b6c4d0d21-7fe6.html
    Thanks,
    Katrien

    ReplyDelete
  4. I went on a slightly different path and started off with the source of a version of the gauge that isn't tied to Degrafa at all. Check it out here: http://blog.betterthantomorrow.com/2011/02/06/a-flex-4-gauge-component/

    ReplyDelete
  5. Dear Sorry for not replaying on your questions all this time but i am sure you heard about what was happening in Egypt the past days

    PEZ : I will post the source code to be used be all of you

    Katrien: This is a SWC file which look like a library class containing all the required functionalities to be done inside all you have to do is to add this SWC from Flex Library Path and you can create and instance of it in the MXML if you like i can post a sample code of how to use it

    ifrihet: Great Work

    ReplyDelete
  6. Not able to download the file :( The FileFlyer site has some problem :(

    ReplyDelete