使用actionscript3和Adobe AIR添加gameCenter功能(Adding gameCenter functionality with actionscript3 and Adobe AIR)
我正在使用actionscript3和adobe AIR为iphone4编写游戏。 有没有办法在actionscript3中连接到iphone的gameCenter,或者这是不可能的,我被迫使用xcode和objective-C?
如果这是不可能的,那么我可以使用actionscript3和AIR进行编程吗? 比如openFeint ??
谢谢
I am writing a game in actionscript3 and adobe AIR for the iphone4. Is there a way to connect to iphone's gameCenter in actionscript3, or is that not possible and I am forced to use xcode and objective-C?
If this is not possible, are there any alternatives to gameCenter that I can program with actionscript3 and AIR? For example openFeint??
Thanks
原文:https://stackoverflow.com/questions/8967234
最满意答案
我认为你可以使用Series.update()方法来改变你的系列的堆栈。 在这里您可以找到有关此方法的信息: http : //api.highcharts.com/highcharts#Series.update
$('button').click(function() { chart.series[0].update({ stack: chart.series[0].options.stack == '1' ? '0' : '1' }, false); chart.series[1].update({ stack: chart.series[1].options.stack == '1' ? '2' : '1' }, false); chart.redraw(); })
在这里,您可以看到一个示例,您的图表可以使用Series.update(): http ://fiddle.jshell.net/kz7wbykx/1/
问候,
I think that you can use Series.update() method in case of changing stack of your series. Here you can find information about this method: http://api.highcharts.com/highcharts#Series.update
$('button').click(function() { chart.series[0].update({ stack: chart.series[0].options.stack == '1' ? '0' : '1' }, false); chart.series[1].update({ stack: chart.series[1].options.stack == '1' ? '2' : '1' }, false); chart.redraw(); })
Here you can see an example how your chart may work using Series.update(): http://fiddle.jshell.net/kz7wbykx/1/
Regards,
相关问答
更多-
当然,您可以通过调用chart.highcharts()来提取当前图表设置,它包含将具有有效最小值和最大值的每个轴以及基于使用它的系列设置的数据最小值/最大值。 如果只有一个,yAxis [0]会起作用,但在Axis上设置id可能更清楚: var chart = highcharts({... yAxis: { id: 'my_y', ... yAxis = chart.highcharts().get('my_y'); yAxis.get ...
-
这是一个例子,我采用23817700的解决方案来使用你将变量传递给图表的方式。 我无法抗拒也使用切换代码来使用jQuery,因为它已经被要求了。 您可以尝试这是@RachelGallen提供的这个小提琴中的动作: https ://jsfiddle.net/ezc7oghm/1/ ...
-
在你发现的问题中,使用塞巴斯蒂安的答案,使用tickPositioner 。 事实上,将startOnTick和endOnTick设置为false时,极端情况是正确的,只是标签不会呈现。 在这种情况下,使用tickPositioner ,例如: tickPositioner: function(min, max) { var ticks = this.tickPositions; ticks = $(ticks).filter(function(i, tick) { ret ...
-
禁用动画会让我快速切换。 options.chart.animation = false; Disabling animations made it toggle quickly for me. options.chart.animation = false;
-
我认为你可以使用Series.update()方法来改变你的系列的堆栈。 在这里您可以找到有关此方法的信息: http : //api.highcharts.com/highcharts#Series.update $('button').click(function() { chart.series[0].update({ stack: chart.series[0].options.stack == '1' ? '0' : '1' }, false); chart ...
-
我认为你需要为每个城市和数据类型定义一个系列。 您可以使用循环来执行此操作。 在系列选项中,您可以将堆栈参数设置为Listings或Contact来堆叠它们。 这是一个例子: h <- Highcharts$new() h$chart(type = "column") h$plotOptions(column = list(stacking = "normal"),bar = list(colorByPoint = 'true')) h$xAxis(categories = unique(lc$Week)) ...
-
HighCharts堆叠分组图表 - 带有分组的护理插件(HighCharts stacked grouped chart - with grouped caregories plugin)[2023-09-07]
您需要明确地为该点指定一个类别。 series: [ { name: 'John', data: [[0, 5], [2, 3], [4, 4], [6, 7], [8, 2]], stack: 'male', // pointPlacement: 0.15 }, { name: 'Joe', data: [[0, 3], [2, 4], [4, 4], [6, 2], [8, 5 ... -
查看plotOptions.line.stacking的API,您可以使用以下方法在行系列上显式设置堆栈值: series: [{ type: 'line', stacking: null, data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }] Looking at the API for pl ...
-
您还可以使用update()函数,它允许更新系列类型,因此数据将相同,但行可以替换为列或其他类型。 http://api.highcharts.com/highcharts#Series.update() 编辑: $.each(chart.series,function(i,serie){ serie.update({ type:'column' }); }); 几个系列: ht ...
-
Highcharts年龄堆叠(Highcharts age stacking)[2022-08-27]
您需要迭代您的arrays ,与您拥有的限制(类别)进行比较并推送以更正系列数组。 请参阅解析器( http://jsfiddle.net/W6AFY/3/ ),希望它是正确的。 You need to itearate on you arrays, compare with the limits which you have (categories) and push to correct series array. See the parser (http://jsfiddle.net/W6AFY/3/ ...