Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User kevinweijun's Avatar
    Join Date
    Dec 2009
    Posts
    19
    我是想把原来在JIL widget的方法移值过来,原来的代码如下:请问移植到wrt widget过来要如何写
    var x=Widget.Device.DeviceStateInfo.AccelerometerInfo.xAxis;
    var y=Widget.Device.DeviceStateInfo.AccelerometerInfo.yAxis;
    var z=Widget.Device.DeviceStateInfo.AccelerometerInfo.zAxis;
    var m=Math.sqrt(x*x+y*y+z*z);

    if(Math.abs(x)>10){
    angle=x/m;
    aaa();

    以下是播放MP3的代码
    Widget.Multimedia.AudioPlayer.open("1.mp3");
    Widget.Multimedia.AudioPlayer.play(10);
    请问移植过来要如何写。
    希望有详细的例子。

  2. #2
    Registered User kevinweijun's Avatar
    Join Date
    Dec 2009
    Posts
    19
    还说技术支持,一个问题都没人回答的。

  3. #3
    Registered User yanglove's Avatar
    Join Date
    Dec 2011
    Posts
    11
    建议到群里问一下,大家都在群里交流 群号是190388821

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved