[原] flex brightpoint gauge component

在网上看到一个更好的仪表盘控件 http://www.brightpointinc.com/FlexDemos/GaugeSample/srcview/index.html , 官网现在好现已经不能注册用户, 也不能下载最新的版本了。

我所找到有源代码的版本(上面的链接)Demo中没有缓效果, 显得很生硬。但是在代码中却有缓动效果相关代码, 是用mx.effects.sequence加入了5个mx.effects.Rotate来实现的, 但是没有打开. 我将useEffect置为true后,发现这些缓动效果代码有问题。

然后我就动手改造, 删除原有缓动效果代码. 改用一个基本的mx.effects.Rotate Tween, 实际证明也可以达到比较好缓动的效果.

Because I can not get the latest version with needle rotation tween effect. So I add the effect by myself.

Demo如下: 右键可以查看代码(you can view source by clicking mouse right button)

如果你看不到flash, 你就直接到 http://www.smithfox.com/myopensource/brightpoint/GaugeSample.swf

gauge skin fla

smithfox | Wednesday 12 January 2011 at 08:07 am | | UI        | Used tags: , , , ,

ten comments

PEZ

Thanks for making this and blogging it. I needed something like this as a start. I’ve fixed bugs and adapted it for my needs: http://blog.betterthantomorrow.com/2011/..

There’s a demo of it in action here: http://dl.dropbox.com/u/3259215/gauge-de..

Source is on Github, links to the repository is available from both above links.

PEZ, (URL) - 19-02-’11 14:15
smithfox

I found every tween’s step (in this case, pointer rotation animation tween) will cause the DisplayObject parent’s updateDisplayList, it waste more resource.
After research, I give a solution, you can refer http://www.smithfox.com/?e=56 . I have added some English into the post.

smithfox, (URL) - 09-04-’11 16:05
GoKu

楼主,你改的这个能在FLEX4运行吗? 可否提供源码。。。谢谢!

GoKu, - 15-04-’11 11:42
smithfox

当然可以在flex4下运行, 源码已经是开放的呀, demo中 右键可以查看代码.

smithfox, (URL) - 15-04-’11 13:13
Ricardo

Hi. Great work on the gauge but with flex 4.6 we can’t use import mx.controls.Image… Can you publish the source of GaugeSkins_Skin1.swf?

Thanks

Ricardo, - 18-10-’11 02:03
smithfox

Hi Ricardo,

Please check the url to download the gauge skin fla file: http://www.smithfox.com/images/2011-10/g..

smithfox, (URL) - 19-10-’11 15:03
benny1026

请问可以通过js或者json传入值吗?

benny1026, - 02-12-’11 15:41
Chanel iPhone 6 Cases

The iPad Mini 3 has a smaller 5MP sensor, but they are both f/2.4 with auto-focus. Video recording is at full HD and the Nexus 9 has an LED flash. Both tablets offer a panoramic capture, with the Nexus 9 also offering Google’s Photosphere.

Chanel iPhone 6 Cases, (URL) - 20-04-’15 18:25
Defi Collagen Serum

I rarely leave responses, but I browsed a few of the comments
here [原] flex brightpoint gauge component – SmithFox.
I do have some questions for you if you don’t mind.
Is it just me or do a few of the remarks come across like they
are written by brain dead visitors? :-p And,
if you are writing at additional online social sites, I’d like to follow everything new you have to post.
Could you make a list of all of your social networking pages like your twitter feed, Facebook page or linkedin profile?

Defi Collagen Serum, (URL) - 25-06-’17 12:57
de.platinumplayonlinecasino.com

This really is especially true for all those
participants who have not yet found out so how vulnerable this palm might be when played inappropriate.

de.platinumplayonlinecasino.com, (URL) - 10-01-’18 18:23
(optional field)
(optional field)
为阻止垃圾广告, 请在提交评论前, 回答一个简单问题(Please answer an simple question)
Remember personal info?
Notify
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.