Browsing articles from "January, 2006"

Flash 2.0 nSeries network problems…

Jan 29, 2006   //   by Tuomas Artman   //  6 Comments

It seems that there are some problems with network connections with the new Flash Lite 2.0 application. At least on my N90 and N70. LoadMovies, LoadVariables and XML loading just does not work. The GPRS-connection is opened, the phone connects, but that’s it. Silence. The log shows that no data has been transferred to any direction. Other users have had this problem too, how about you?

6 Comments

  • Ciao,
    do you have full data plan? Not just WAP.
    Carriers block access to internet if you just have WAP (browsing) plan.
    Alessandro

  • Jeah, Finnish operators dumped WAP about two years ago, so everyone with a GRPS or 3G phone has full access to the internet.

  • Wow, this is pretty bad news if they will prove to be right.
    Currently we just installed FlashLite 2.0 on Nokia 7610, but had not yet tried yet development for this device.
    You kinda knocked me down that in Finland WAP is already cursed.
    We are going to release WAP version of our web application prior to development of Flash Lite client, we target USA market.

  • Yeah,
    WAP and WML was a very marginal phenomena in Finland six years ago, although I think that the default S60 browser still supports it. But since the dawn of GPRS everyone over here use XHTML anyhow.

  • Ciao Tuomas,
    ok, that I know there should not be any problem with these phones.
    Can you post a sample code that you are using?
    Also would you be interested in joining the AMobileUG: http://www.flashmobilegroup.org
    Alessandro

  • Hi Alessandro,
    The sample code is really simple. A empty movieclip named “temp” sits in _root. The following AS is executed somewhere around frame 10:
    _root.temp.loadMovie(http://www.valve.fi/litetest.swf);
    stop();
    Simple, but not working.
    Also using a text-field, assigning it to say the variable “test” and loading a text file that holds “test=working” and issuing the following AS:
    _root.loadVariables(“http://www.valve.fi/test.txt”);
    does not work as well.

Leave a comment

Remember to mention those function parameters!

Jan 16, 2006   //   by Tuomas Artman   //  1 Comment

Funny how things (Flash) work. I was optimising an application when I stumbled upon this oddity:

Take the following function:

function test():Number{
    return 1;
}

Be stupid and call it in a for-loop 50.000 times and record the time it takes to execute: 230 ms.

Now add some parameters to the function:

function test(a,b,c,d,e,f,g,h,i,j,k):Number{
    return 1;
}

Running the same test (without actually passing in any parameters to the function) reveals that execution takes about 1100 ms. While this is odd (we don’t actually pass in any parameters or use those parameters in any way), it’s still explainable – maybe Flash reserves some memory for the params every time the function gets called.

But try explaining this: If you "mention" all the parameters that get passed to the function…

function test(a,b,c,d,e,f,g,h,i,j,k):Number{
    return 1;
    a; b; c; d; e; f; g; h; i; j; k;
}

execution time drops again to 230 ms ;) Err…

I was trying to optimise my code and found it a little confusing that when I commented some code out of a function that was called very frequently everything actually got slower…

1 Comment

  • Hehe, pretty odd how flash works. I’m still trying to learn it myself to make games..but I am only good at AS2 and AS3 is hard for me to learn.

Leave a comment