Martin! I´m getting some positive results with my port of yours TypeMapper to AS3... it´s kind of working already. The problem is that AS3 is more strict on dynamic object manipulation, and some checks you´ve made on objects checking if they had properties and so on are failling and breaking the app. I guess we need to use Object.hasOwnProperty() or replace with dictionary objects. I´m not sure yet - I only know that I´m tired and I must take some rest!

You can see a screenshot here: http://chapeco-online.com.br/typemapperas3.JPG

PS.: Haven´t seen you on #cakeamfphp lately... what happened!?

Cheers,

Marcelo.



On 8/15/06, Martin Wood <[EMAIL PROTECTED]> wrote:


Marcelo de Moraes Serpa wrote:
> Forget what I said Martin... using the AMFPHP 1.2 mapper would be harder
> than using yours TypeMapper.

:)

> I´m currently trying to port your TypeMapper to AS3 as I already stated. I
> must confess that I´m having a hard time becouse AS3 is a pretty new
> language for me as I´m used to all the AS2 black magic...

same here

> For example - I´m not sure how I would convert the method autoRegister()
> - I
> don´t know how AVM2 stores package references!

Thats just a convenience method, so I wouldnt worry about that too much.

I started by using the TypeMap.as file which has more control over the
registration of types.

but then I always think..'how can i reduce the amount of code that someone using
the library needs to write'..so thats why I wrote the auto registration function.

> It doesn´t mean I gave up... I´m still breaking my head and eventually I
> will have something functional for the weekend :)

Good luck..

on another note, i dont know if you saw the thread on the CakePHP group but
apparently in v2 they will be using instances as models rather than them just
being the query engines, so maybe in v2 it will work with the AMFPHP mapping
system without too much bother.

also I think the CakeAMFPHP will change significantly to become more tightly
integrated with Cake...but thats to be decided..

all those things are in the future so I'm going to stick with my system for now.

martin.

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to