Re: [Flashcoders] OOP advice for game

2006-11-05 Thread Cédric Néhémie
Paul Steven wrote: > Thanks Muzak > > I think the WeatherManager is a Singleton - well that’s what it said in the > book:) > > import Observable; > import WeatherMessage; > > > class WeatherManager extends Observable { > > > // --- > // Constructor > // --- >

Re: [Flashcoders] OOP advice for game

2006-11-05 Thread Cédric Néhémie
Hi Paul, To resolve the setInterval scope issue you could use the second setInterval syntax (undocumented in the Flash doc) : weatherTimer = setInterval(this, "changeWeather", 5000); About the 80s time limit, if you target your swf to version 8, you could use the setTimeout method witch is per

Re: [Flashcoders] Flash Filters - Progressive enhancement for those with the 8+ player?

2006-10-19 Thread Cédric Néhémie
Hi Kevin, > > Do you know if there's any problems or caveats of using this method? > We haven't see any problems at using this trick in our projects, but we use it only for small occasional swf in our site and only to have a better look, not for big game or critical point I think there's probably s

Re: [Flashcoders] tweening multiple properties simultaneously

2006-08-01 Thread Cédric Néhémie
Hi Matthew, There is also MultiTween classes in the pixlib framework on OSFlash : http://osflash.org/pixlib Hope that can help you Cédric Rich Rodecker wrote: > there is a class out there called TweenExtended...it works exaclty the > same > way as the Tween class, excpet you pass in arrays for

Re: [Flashcoders] Public list of open issues, available?

2006-07-19 Thread Cédric Néhémie
Weyert, Do you know that : Flash Player 9 Emerging Issues ( http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4a8d52ae ) Hope that can help you Weyert de Boer wrote: > I am curious if anyone know a public list all open issues regarding to > Flex and Flash both ont he Windows and Macintosch

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Cédric Néhémie
I'm agree with Mike concerning the ECMAScript rationale : >From the ECMA specifications (http://www.ecma-international.org/publications/files/ecma-st/ECMA-262.pdf) 7.5.3 Future Reserved Words The following words are used as keywords in proposed extensions and are therefore reserved to allow for t

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Cédric Néhémie
Chris, from the latest AS3 Language Reference (http://livedocs.macromedia.com/flex/2/langref/index.html), in compile-time errors section : 1153 - A constructor can only be declared public I don't understand why Adobe do that ? If somebody have an idea, I'ld be buyer ? Chris Allen wrote: > For c

Re: [Flashcoders] AS3 faster ??

2006-07-10 Thread Cédric Néhémie
0; var a:Number; var t:uint; t = getTimer(); for(var i:uint=0;i Could you supply the code you tested with please. > > Charles P. > > > On 7/10/06, Cédric Néhémie <[EMAIL PROTECTED]> wrote: >> >> Hi, >&

Re: [Flashcoders] AS3 faster ??

2006-07-10 Thread Cédric Néhémie
Hi, Here some benchs I've made during the Beta 2, comparison between AS2's and AS3's basics operations. All have been mades on 10 iterations. AS2: addition (5+12) : 370 ms subtract (5-12) : 365 ms multiply (5x12) : 351 ms divide (5

Re: [Flashcoders] private constructors in AS3.0?

2006-07-09 Thread Cédric Néhémie
Just a little error in the first code, it's not : if (_oInstance == null) but : if (_oInstance != null) I think you have rectify by yourself ;) > That is nice, I like how you can assign functions to compile time > variables. > > On 7/9/06, Cédric Néhémie <[EMAIL PROTECT

Re: [Flashcoders] private constructors in AS3.0?

2006-07-09 Thread Cédric Néhémie
Hi, I've trying to create singleton, and the best way i've fund is to create the instance direcly in the class declaration private static var _oInstance:MyClass = getInstance(); And to check if constructor is called in code I do that : public function MyClass () { if (_oInstance == null)

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread Cédric Néhémie
Eka you are the fastest :) eka wrote: > Hello :) > > Try this method : > > package > { > > > import flash.utils.getQualifiedClassName; > import flash.errors.IllegalOperationError; > > class AbstractClass > { >public function AbstractClass () >{ >var path:String = getQualifiedClassN

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread Cédric Néhémie
Hi everybody, I'm new to this list (as poster) so thnaks , in advance, for your welcome. > I am blind or is their no support for Abstract classes in AS3? > No you aren't blind, the class constructor must be public, then we can't guarantee that class can't be instanciate. The same problem occurs w