Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Jan 2007

    widget-flash-sensor problem(buffer efect) solved...

    first when I new about flash API I wanted to develop an application with sensor... you know, a ball moved around... but I had a problem... the "asynchronous" function doesn't work properly, it has some kind of buffering (the more the program runs the more time between action and reaction - after 30s move rotate phone and after 1-2s view on screen the movement... )

    now I have learn about widgets... and I try to take sensors from javascript... but the same problem... unless you slow down the setVariable in flash... seems that javascript throws into flash with more that 15-25FPS, and somehow javascript trowing is put on hold until flash sets that variable (25FPS - about 40ms); that means that if the callback function is trigged at every about 10ms the second value arives in flash after 120ms, not after 20ms as it should be... so I have slowed down the setVariable kind of like this:
    var T=0;
    var flashFPS=15;
    function flashSetVar(str){
    	var t=new Date();
    		document.getElementById("flashOBJ").SetVariable("flashVAR", str);
    		T=new Date();
    Last edited by shpe11; 2010-01-31 at 08:45.

Similar Threads

  1. Embed Flash Lite within a WRT widget?
    By bryanrieger in forum Symbian
    Replies: 10
    Last Post: 2010-04-18, 17:42
  2. Flash widget screen turning white on tap
    By ranco in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2010-01-06, 08:08
  3. Widget + Flash problem
    By tomcuaca in forum Symbian
    Replies: 2
    Last Post: 2009-09-06, 15:42
  4. Flash Lite with Javascript - not in a WRT widget
    By funkadeelia in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2009-03-05, 13:55
  5. Flash CS3 + Flash Lite 1.x + dynamic text + embedded fonts = broken?
    By robchis in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-02-28, 13:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts