Re: [Flashcoders] Blank flash problem...

2008-05-25 Thread Fabio Pinatti
On Thu, May 22, 2008 at 6:51 AM, Glen Pike <[EMAIL PROTECTED]> wrote: > Hi, > > I have a live site where a friend of mine just sees a black page - the > Flash is written in with SWFObject, but after this nothing happens and he > sees a black screen - the movie bg colour is #00 > > http://w

Re: [Flashcoders] Blank flash problem...

2008-05-25 Thread Rich Shupe
I forgot to mention this. This always happens on every browser, and there's a very easy fix. The CSS is set to visible, and JavaScript (SWFObject) makes it invisible. just reverse these conditions. Make flashcontent hidden to start and, upon SWFObject failing to detect Flash, et the div to visible

[Flashcoders] preventing client spoofing with SWFs

2008-05-25 Thread ghost
Hi all. Anyone know a solution for preventing client spoofing for sending data with flash apps? Like say with sending high scores for a flash game? Let's say you have a flash game. Someone decompiles the SWF, (and grabs all the relevant SWFs in case you were using loader shell SWFs), ext

[Flashcoders] test 123..ignore

2008-05-25 Thread artur
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread laurent
Thanks Jesse for the neat explanation, it all make sense, that's a clever trick to get a smooth movement of this type where tweening is not a solution. That can be applied to other things just to get the right value to change. Very good to know that enter Frame and Timer are approximations. I us

Re: [Flashcoders] preventing client spoofing with SWFs

2008-05-25 Thread Juan Pablo Califano
Ghost, Though I think in many situations there's not really a way to make an app/game 100% spoof-proof, there are some things you can do to make it harder on the spoofer. Most of them rely on putting some extra logic on the server-side and/or moving some client-side logic to the server, when possi

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread Pedro Kostelec
Ther is something that i don't like here. Sorry for changing the subject. It's the Zoom in /Zoom out When i click zoom in it works but it doesn't de-zoom when you click Zo0om out. Does someone know why is that so? On Thu, May 22, 2008 at 11:57 AM, Vayu Robins <[EMAIL PROTECTED]> wrote: > Hej. >

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread Juan Pablo Califano
> > I use modulo for rowing too and int() instead of Math.floor() as it's > faster. ;) Laurent, is it, really? I'm not sure. I recently made similar assumptions about what's faster an what's slower based on what "made sense", only to be proved wrong by some actual benchmarking. Anyway, if the

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread laurent
John Grden wrote a post about many Math optimisations in AS3, you can find the code to test at home here: http://www.rockonflash.com/blog/?p=63 L Juan Pablo Califano a écrit : I use modulo for rowing too and int() instead of Math.floor() as it's faster. ;) Laurent, is it, really? I'

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread EECOLOR
>But in the end, how do you know that under the >hood, the flash player is not doing exactly the same operation for an int >cast, a Math.floor call and a shift zero ? Well, the thing here is that Math.floor is a function call. Function calls are by default more complex than using operators. This w

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread Juan Pablo Califano
Thanks for the link. It seems clear from the tests that Math.floor *is* slower than casting. It think the implementation posted in the blog has a bug, though. The result of casting to int is the same as using Math.floor as long as the int is positive. But, if the int is negative, the results will

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread laurent
Yes. And you can jump to Haxe ;) cheers L Juan Pablo Califano a écrit : Thanks for the link. It seems clear from the tests that Math.floor *is* slower than casting. It think the implementation posted in the blog has a bug, though. The result of casting to int is the same as using Math.floor as

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread Juan Pablo Califano
I probably would, if it just were a superb compiler instead of a nice language (but incompatible at source level with AS) and a superb compiler ;) And if I were writting performance-critical suff (which I'm not), I'd certainly consider using it for building external swf libraries. Cheers Juan Pab

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread Juan Pablo Califano
PD: I have made some tests and it seems like using nested loops is much more faster than using modulo + floor or modulo + int cast. The results shows that while the elapsed time in nested loops tends to grow linearly, when using modulo tends to grow exponentially. It shouldn't be a problem with a