Re: [flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors

2006-03-15 Thread Michael Schmalle



 right
now.

Are you trying to imply something? Or you just being funny. ;-) You
can't talk like that and not have someone take you seriously that loves
php :-)

If I wrote the sentence it would say; Yes, FDS is not meant for PHP. haha but you say 'right now', ok!

Peace, Mike
On 3/15/06, Matt Chotin [EMAIL PROTECTED] wrote:

















Oops, yes FDS is not meant for PHP right
now.



Matt









From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Michael Schmalle
Sent: Monday, March 13, 2006 5:29
AM
To: flexcoders@yahoogroups.com

Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors





Matt,

I am using amfphp/mysql, dosn't dataservices require java or more enterprise
solutions? Remember, you are dealing with a UI/Component developer, so I am not
that educated 'yet' about dataservices etc. 

I understand what you are saying but, can it be done with amfphp?

I say this becasue I just read the chapters on DataServices and I don't see how
to implement them using what I use, php.

Peace, Mike



On 3/12/06, Matt Chotin 
[EMAIL PROTECTED] wrote:





You know you might want to consider looking into DataServices
too if the idea is keeping things like your Projects in sync with the
server. It takes care of monitoring property changes for you for example.



Matt











From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Sunday, March 12, 2006 3:42
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Thanks Matt,

Yeah re-reading my post it dosn't make much sense.

You know I am in the labratory ;-) Testing and messing around with thoughts.
Basically, I have a mySQL record that I wanted to use as the internal object.
Once you load the result, a project IS the record and a Project class is
created looping through the record sets. I also wanted to add some methods like
save() remove() to the project class. This seemed like a real kewl use of
composition. I thought of object proxy becasue I am still finding my 'style'
using as3.

Seems as though, now that I have tested more things that either 

I just put all public properties as public var name:String; etc, or write
get-set methods for them. The major thing is here I really loved the idea that
ObjectProxy monitors that properties. I want to monitor these properties as they
change. Binding?

I will write more about this if you care to hear it, it's abit long winded for
just free typing this thought train.

;-) I think this is just going to be one of those cases where one solution
gives me THESE benefits and the other solution gives me THOSE benifits. Time to
get out the triple beam :)!

Peace, Mike



On
3/12/06, Matt
 Chotin  [EMAIL PROTECTED] wrote:





Sorry, I really don't get it. So you have a Project
that extends ObjectProxy (this is because you want to monitor property access I
guess). So now would you really be returning a subclass of Project?
Or is the deal that the object within the ObjectProxy has a concrete type that
you want to reach? If that is the case you really shouldn't be using the
ObjectProxy. The whole point of ObjectProxy is that you don't care what's
inside and never want concrete typing. If you want the concrete type you
should devise another system. 



Matt











From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Friday, March 10, 2006 6:53
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Hello,

Lets see here, the question is kinda odd...

I have the following;

  private function _getProjectAt(id:uint):Project
  {
   var cursor:IViewCursor
= projectsQueue.getCursor(); 
   
   while
(!cursor.afterLast) {
var
curProject:Project = cursor.current as Project;
var
curID:uint = curProject.id;
if
(curID == id) {
   
 return curProject;
   
}
   
cursor.moveNext(); 
   }
   return
null;  
  }


1) the Project class extends ObjectProxy
2) The Project class wraps a record from mySQL (so we really don't have a set
interface for the mySQL record from a record set)
3) When I loop through these Project of type ObjectProxy, is there anyway I can
attach an interface to this, IE IProject
4) I know most of the time typing an interface is the best way but, uisng
ObjectProxy as a super class, I am wondering if the rules are changing here.

Theoretically, we don't know what properties are there because is is a proxy
for the ture object. Now, should I type the returned Project class AS Project
and programm to the concrete implemenation of Project?? I see know way of
creating an interface other that concrete typing. 

Do you get it ? :)

What is the elogent way of nailing down an ObjectProxy class from it's
accessors in a concrete implementation?

Peace, Mike

-- 
What goes up, does come down

RE: [flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors

2006-03-15 Thread Matt Chotin










You never know what Product Management
could decide is important ;-) But I would say that you should not use my words
to get your hopes up in any way. No PHP and FDS for version 2 for sure.











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Michael Schmalle
Sent: Wednesday, March 15, 2006
3:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors





 right now.

Are you trying to imply something? Or you just being funny. ;-) You can't talk
like that and not have someone take you seriously that loves php :-)

If I wrote the sentence it would say; Yes, FDS is not meant for PHP. haha but
you say 'right now', ok!

Peace, Mike



On 3/15/06, Matt
Chotin [EMAIL PROTECTED]
wrote:





Oops, yes FDS is not meant for PHP right now.



Matt









From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Monday, March 13, 2006 5:29
AM
To: flexcoders@yahoogroups.com






Subject: Re:
[flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors









Matt,

I am using amfphp/mysql, dosn't dataservices require java or more enterprise
solutions? Remember, you are dealing with a UI/Component developer, so I am not
that educated 'yet' about dataservices etc. 

I understand what you are saying but, can it be done with amfphp?

I say this becasue I just read the chapters on DataServices and I don't see how
to implement them using what I use, php.

Peace, Mike



On
3/12/06, Matt Chotin  [EMAIL PROTECTED]
wrote:





You know you might want to consider looking into DataServices
too if the idea is keeping things like your Projects in sync with the
server. It takes care of monitoring property changes for you for example.



Matt











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Sunday, March 12, 2006 3:42
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Thanks Matt,

Yeah re-reading my post it dosn't make much sense.

You know I am in the labratory ;-) Testing and messing around with thoughts.
Basically, I have a mySQL record that I wanted to use as the internal object.
Once you load the result, a project IS the record and a Project class is
created looping through the record sets. I also wanted to add some methods like
save() remove() to the project class. This seemed like a real kewl use of
composition. I thought of object proxy becasue I am still finding my 'style'
using as3.

Seems as though, now that I have tested more things that either 

I just put all public properties as public var name:String; etc, or write
get-set methods for them. The major thing is here I really loved the idea that
ObjectProxy monitors that properties. I want to monitor these properties as
they change. Binding?

I will write more about this if you care to hear it, it's abit long winded for
just free typing this thought train.

;-) I think this is just going to be one of those cases where one solution
gives me THESE benefits and the other solution gives me THOSE benifits. Time to
get out the triple beam :)!

Peace, Mike



On
3/12/06, Matt Chotin  [EMAIL PROTECTED]
wrote:





Sorry, I really don't get it. So you have a Project
that extends ObjectProxy (this is because you want to monitor property access I
guess). So now would you really be returning a subclass of Project?
Or is the deal that the object within the ObjectProxy has a concrete type that
you want to reach? If that is the case you really shouldn't be using the
ObjectProxy. The whole point of ObjectProxy is that you don't care what's
inside and never want concrete typing. If you want the concrete type you
should devise another system. 



Matt











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Friday, March 10, 2006 6:53
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Hello,

Lets see here, the question is kinda odd...

I have the following;

  private function
_getProjectAt(id:uint):Project
  {
   var cursor:IViewCursor
= projectsQueue.getCursor(); 
   
   while
(!cursor.afterLast) {
var
curProject:Project = cursor.current as Project;
var
curID:uint = curProject.id;
if
(curID == id) {
   
 return curProject;
   
}
   
cursor.moveNext(); 
   }
   return
null;  
  }


1) the Project class extends ObjectProxy
2) The Project class wraps a record from mySQL (so we really don't have a set
interface for the mySQL record from a record set)
3) When I loop through these Project of type ObjectProxy, is there anyway I can
attach an interface to this, IE IProject
4) I know most of the time typing an interface is the best way but, uisng
ObjectProxy as a super class, I am wondering if the rules are changing here

Re: [flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors

2006-03-15 Thread Michael Schmalle



Oh I know Matt,

Just allittle humor, there is no hopes here. I can do quite a bit already just using what I have availible to me :)

And from my humor there was No inference that it 'might' happen in version 2. On 3/15/06, Matt Chotin [EMAIL PROTECTED]
 wrote:















You never know what Product Management
could decide is important ;-) But I would say that you should not use my words
to get your hopes up in any way. No PHP and FDS for version 2 for sure.











From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf
Of Michael Schmalle
Sent: Wednesday, March 15, 2006
3:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors






 right now.

Are you trying to imply something? Or you just being funny. ;-) You can't talk
like that and not have someone take you seriously that loves php :-)

If I wrote the sentence it would say; Yes, FDS is not meant for PHP. haha but
you say 'right now', ok!

Peace, Mike



On 3/15/06, Matt
Chotin [EMAIL PROTECTED]
wrote:





Oops, yes FDS is not meant for PHP right now.



Matt









From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Monday, March 13, 2006 5:29
AM
To: flexcoders@yahoogroups.com






Subject: Re:
[flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors









Matt,

I am using amfphp/mysql, dosn't dataservices require java or more enterprise
solutions? Remember, you are dealing with a UI/Component developer, so I am not
that educated 'yet' about dataservices etc. 

I understand what you are saying but, can it be done with amfphp?

I say this becasue I just read the chapters on DataServices and I don't see how
to implement them using what I use, php.

Peace, Mike



On
3/12/06, Matt Chotin  [EMAIL PROTECTED]
wrote:





You know you might want to consider looking into DataServices
too if the idea is keeping things like your Projects in sync with the
server. It takes care of monitoring property changes for you for example.



Matt











From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Sunday, March 12, 2006 3:42
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Thanks Matt,

Yeah re-reading my post it dosn't make much sense.

You know I am in the labratory ;-) Testing and messing around with thoughts.
Basically, I have a mySQL record that I wanted to use as the internal object.
Once you load the result, a project IS the record and a Project class is
created looping through the record sets. I also wanted to add some methods like
save() remove() to the project class. This seemed like a real kewl use of
composition. I thought of object proxy becasue I am still finding my 'style'
using as3.

Seems as though, now that I have tested more things that either 

I just put all public properties as public var name:String; etc, or write
get-set methods for them. The major thing is here I really loved the idea that
ObjectProxy monitors that properties. I want to monitor these properties as
they change. Binding?

I will write more about this if you care to hear it, it's abit long winded for
just free typing this thought train.

;-) I think this is just going to be one of those cases where one solution
gives me THESE benefits and the other solution gives me THOSE benifits. Time to
get out the triple beam :)!

Peace, Mike



On
3/12/06, Matt Chotin  [EMAIL PROTECTED]
wrote:





Sorry, I really don't get it. So you have a Project
that extends ObjectProxy (this is because you want to monitor property access I
guess). So now would you really be returning a subclass of Project?
Or is the deal that the object within the ObjectProxy has a concrete type that
you want to reach? If that is the case you really shouldn't be using the
ObjectProxy. The whole point of ObjectProxy is that you don't care what's
inside and never want concrete typing. If you want the concrete type you
should devise another system. 



Matt











From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Friday, March 10, 2006 6:53
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Hello,

Lets see here, the question is kinda odd...

I have the following;

  private function
_getProjectAt(id:uint):Project
  {
   var cursor:IViewCursor
= projectsQueue.getCursor(); 
   
   while
(!cursor.afterLast) {
var
curProject:Project = cursor.current as Project;
var
curID:uint = curProject.id;
if
(curID == id) {
   
 return curProject;
   
}
   
cursor.moveNext(); 
   }
   return
null;  
  }


1) the Project class extends ObjectProxy
2) The Project class wraps a record from mySQL (so we really don't have a set
interface for the mySQL record from

RE: [flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors

2006-03-14 Thread Matt Chotin










Oops, yes FDS is not meant for PHP right
now.



Matt









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: Monday, March 13, 2006 5:29
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors





Matt,

I am using amfphp/mysql, dosn't dataservices require java or more enterprise
solutions? Remember, you are dealing with a UI/Component developer, so I am not
that educated 'yet' about dataservices etc. 

I understand what you are saying but, can it be done with amfphp?

I say this becasue I just read the chapters on DataServices and I don't see how
to implement them using what I use, php.

Peace, Mike



On 3/12/06, Matt Chotin [EMAIL PROTECTED] wrote:





You know you might want to consider looking into DataServices
too if the idea is keeping things like your Projects in sync with the
server. It takes care of monitoring property changes for you for example.



Matt











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Sunday, March 12, 2006 3:42
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Thanks Matt,

Yeah re-reading my post it dosn't make much sense.

You know I am in the labratory ;-) Testing and messing around with thoughts.
Basically, I have a mySQL record that I wanted to use as the internal object.
Once you load the result, a project IS the record and a Project class is
created looping through the record sets. I also wanted to add some methods like
save() remove() to the project class. This seemed like a real kewl use of
composition. I thought of object proxy becasue I am still finding my 'style'
using as3.

Seems as though, now that I have tested more things that either 

I just put all public properties as public var name:String; etc, or write
get-set methods for them. The major thing is here I really loved the idea that
ObjectProxy monitors that properties. I want to monitor these properties as they
change. Binding?

I will write more about this if you care to hear it, it's abit long winded for
just free typing this thought train.

;-) I think this is just going to be one of those cases where one solution
gives me THESE benefits and the other solution gives me THOSE benifits. Time to
get out the triple beam :)!

Peace, Mike



On
3/12/06, Matt
 Chotin  [EMAIL PROTECTED] wrote:





Sorry, I really don't get it. So you have a Project
that extends ObjectProxy (this is because you want to monitor property access I
guess). So now would you really be returning a subclass of Project?
Or is the deal that the object within the ObjectProxy has a concrete type that
you want to reach? If that is the case you really shouldn't be using the
ObjectProxy. The whole point of ObjectProxy is that you don't care what's
inside and never want concrete typing. If you want the concrete type you
should devise another system. 



Matt











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Friday, March 10, 2006 6:53
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Hello,

Lets see here, the question is kinda odd...

I have the following;

  private function _getProjectAt(id:uint):Project
  {
   var cursor:IViewCursor
= projectsQueue.getCursor(); 
   
   while
(!cursor.afterLast) {
var
curProject:Project = cursor.current as Project;
var
curID:uint = curProject.id;
if
(curID == id) {
   
 return curProject;
   
}
   
cursor.moveNext(); 
   }
   return
null;  
  }


1) the Project class extends ObjectProxy
2) The Project class wraps a record from mySQL (so we really don't have a set
interface for the mySQL record from a record set)
3) When I loop through these Project of type ObjectProxy, is there anyway I can
attach an interface to this, IE IProject
4) I know most of the time typing an interface is the best way but, uisng
ObjectProxy as a super class, I am wondering if the rules are changing here.

Theoretically, we don't know what properties are there because is is a proxy
for the ture object. Now, should I type the returned Project class AS Project
and programm to the concrete implemenation of Project?? I see know way of
creating an interface other that concrete typing. 

Do you get it ? :)

What is the elogent way of nailing down an ObjectProxy class from it's
accessors in a concrete implementation?

Peace, Mike

-- 
What goes up, does come down. 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






SPONSORED LINKS 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development

Re: [flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors

2006-03-13 Thread Michael Schmalle



Matt,

I am using amfphp/mysql, dosn't dataservices require java or more
enterprise solutions? Remember, you are dealing with a UI/Component
developer, so I am not that educated 'yet' about dataservices etc. 

I understand what you are saying but, can it be done with amfphp?

I say this becasue I just read the chapters on DataServices and I don't see how to implement them using what I use, php.

Peace, MikeOn 3/12/06, Matt Chotin [EMAIL PROTECTED] wrote:

















You know you might want to consider
looking into DataServices too if the idea is keeping things like your Projects
in sync with the server. It takes care of monitoring property changes for you
for example.



Matt











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Michael Schmalle
Sent: Sunday, March 12, 2006 3:42
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors





Thanks Matt,

Yeah re-reading my post it dosn't make much sense.

You know I am in the labratory ;-) Testing and messing around with thoughts.
Basically, I have a mySQL record that I wanted to use as the internal object.
Once you load the result, a project IS the record and a Project class is
created looping through the record sets. I also wanted to add some methods like
save() remove() to the project class. This seemed like a real kewl use of
composition. I thought of object proxy becasue I am still finding my 'style'
using as3.

Seems as though, now that I have tested more things that either 

I just put all public properties as public var name:String; etc, or write
get-set methods for them. The major thing is here I really loved the idea that
ObjectProxy monitors that properties. I want to monitor these properties as
they change. Binding?

I will write more about this if you care to hear it, it's abit long winded for
just free typing this thought train.

;-) I think this is just going to be one of those cases where one solution
gives me THESE benefits and the other solution gives me THOSE benifits. Time to
get out the triple beam :)!

Peace, Mike



On 3/12/06, Matt Chotin 
[EMAIL PROTECTED] wrote:





Sorry, I really don't get it. So you have a Project
that extends ObjectProxy (this is because you want to monitor property access I
guess). So now would you really be returning a subclass of Project?
Or is the deal that the object within the ObjectProxy has a concrete type that
you want to reach? If that is the case you really shouldn't be using the
ObjectProxy. The whole point of ObjectProxy is that you don't care what's
inside and never want concrete typing. If you want the concrete type you
should devise another system. 



Matt











From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Friday, March 10, 2006 6:53
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Hello,

Lets see here, the question is kinda odd...

I have the following;

  private function
_getProjectAt(id:uint):Project
  {
   var
cursor:IViewCursor = projectsQueue.getCursor(); 
   
   while
(!cursor.afterLast) {
  
 var curProject:Project = cursor.current as Project;
  
 var curID:uint = curProject.id;
  
 if (curID == id) {
  
  return curProject;
  
 }  
 
  
 cursor.moveNext(); 
   }
   return
null;  
  }


1) the Project class extends ObjectProxy
2) The Project class wraps a record from mySQL (so we really
don't have a set interface for the mySQL record from a record set)
3) When I loop through these Project of type ObjectProxy, is
there anyway I can attach an interface to this, IE IProject
4) I know most of the time typing an interface is the best way
but, uisng ObjectProxy as a super class, I am wondering if the rules are
changing here.

Theoretically, we don't know what properties are there because is
is a proxy for the ture object. Now, should I type the returned Project class
AS Project and programm to the concrete implemenation of Project?? I see know
way of creating an interface other that concrete typing. 

Do you get it ? :)

What is the elogent way of nailing down an ObjectProxy class from
it's accessors in a concrete implementation?

Peace, Mike

-- 
What goes up, does come down. 











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








SPONSORED
LINKS 





 
  
  
Web site design development 
  
  
  
Computer software development 
  
  
  
Software design and development 
  
 
 
  
  
Macromedia flex 
  
  
  
Software development best practice 
  
  
  
  
 










YAHOO!
GROUPS LINKS





 Visit your group
 flexcoders
  on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms

RE: [flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors

2006-03-12 Thread Matt Chotin










Sorry, I really dont get it. So
you have a Project that extends ObjectProxy (this is because you want to
monitor property access I guess). So now would you really be returning a
subclass of Project? Or is the deal that the object within the
ObjectProxy has a concrete type that you want to reach? If that is the case
you really shouldnt be using the ObjectProxy. The whole point of
ObjectProxy is that you dont care whats inside and never want
concrete typing. If you want the concrete type you should devise another
system. 



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: Friday, March 10, 2006 6:53
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors





Hello,

Lets see here, the question is kinda odd...

I have the following;

  private function
_getProjectAt(id:uint):Project
  {
   var cursor:IViewCursor
= projectsQueue.getCursor(); 
   
   while
(!cursor.afterLast) {
var
curProject:Project = cursor.current as Project;
var
curID:uint = curProject.id;
if
(curID == id) {
   
 return curProject;
   
}
   
cursor.moveNext(); 
   }
   return
null;  
  }


1) the Project class extends ObjectProxy
2) The Project class wraps a record from mySQL (so we really don't have a set
interface for the mySQL record from a record set)
3) When I loop through these Project of type ObjectProxy, is there anyway I can
attach an interface to this, IE IProject
4) I know most of the time typing an interface is the best way but, uisng
ObjectProxy as a super class, I am wondering if the rules are changing here.

Theoretically, we don't know what properties are there because is is a proxy
for the ture object. Now, should I type the returned Project class AS Project
and programm to the concrete implemenation of Project?? I see know way of
creating an interface other that concrete typing. 

Do you get it ? :)

What is the elogent way of nailing down an ObjectProxy class from it's
accessors in a concrete implementation?

Peace, Mike

-- 
What goes up, does come down. 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors

2006-03-12 Thread Michael Schmalle



Thanks Matt,

Yeah re-reading my post it dosn't make much sense.

You know I am in the labratory ;-) Testing and messing around with
thoughts. Basically, I have a mySQL record that I wanted to use as the
internal object. Once you load the result, a project IS the record and
a Project class is created looping through the record sets. I also
wanted to add some methods like save() remove() to the project class.
This seemed like a real kewl use of composition. I thought of object
proxy becasue I am still finding my 'style' using as3.

Seems as though, now that I have tested more things that either 

I just put all public properties as public var name:String; etc, or
write get-set methods for them. The major thing is here I really loved
the idea that ObjectProxy monitors that properties. I want to monitor
these properties as they change. Binding?

I will write more about this if you care to hear it, it's abit long winded for just free typing this thought train.

;-) I think this is just going to be one of those cases where one
solution gives me THESE benefits and the other solution gives me THOSE
benifits. Time to get out the triple beam :)!

Peace, MikeOn 3/12/06, Matt Chotin [EMAIL PROTECTED] wrote:

















Sorry, I really don't get it. So
you have a Project that extends ObjectProxy (this is because you want to
monitor property access I guess). So now would you really be returning a
subclass of Project? Or is the deal that the object within the
ObjectProxy has a concrete type that you want to reach? If that is the case
you really shouldn't be using the ObjectProxy. The whole point of
ObjectProxy is that you don't care what's inside and never want
concrete typing. If you want the concrete type you should devise another
system. 



Matt











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Michael Schmalle
Sent: Friday, March 10, 2006 6:53
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors






Hello,

Lets see here, the question is kinda odd...

I have the following;

  private function
_getProjectAt(id:uint):Project
  {
   var cursor:IViewCursor
= projectsQueue.getCursor(); 
   
   while
(!cursor.afterLast) {
var
curProject:Project = cursor.current as Project;
var
curID:uint = curProject.id;
if
(curID == id) {
   
 return curProject;
   
}
   
cursor.moveNext(); 
   }
   return
null;  
  }


1) the Project class extends ObjectProxy
2) The Project class wraps a record from mySQL (so we really don't have a set
interface for the mySQL record from a record set)
3) When I loop through these Project of type ObjectProxy, is there anyway I can
attach an interface to this, IE IProject
4) I know most of the time typing an interface is the best way but, uisng
ObjectProxy as a super class, I am wondering if the rules are changing here.

Theoretically, we don't know what properties are there because is is a proxy
for the ture object. Now, should I type the returned Project class AS Project
and programm to the concrete implemenation of Project?? I see know way of
creating an interface other that concrete typing. 

Do you get it ? :)

What is the elogent way of nailing down an ObjectProxy class from it's
accessors in a concrete implementation?

Peace, Mike

-- 
What goes up, does come down. 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders
 on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  










-- What goes up, does come down.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the 

RE: [flexcoders] Flex2 :: ObjectProxy subclass :: Interfacing concrete accessors

2006-03-12 Thread Matt Chotin










You know you might want to consider
looking into DataServices too if the idea is keeping things like your Projects
in sync with the server. It takes care of monitoring property changes for you
for example.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: Sunday, March 12, 2006 3:42
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors





Thanks Matt,

Yeah re-reading my post it dosn't make much sense.

You know I am in the labratory ;-) Testing and messing around with thoughts.
Basically, I have a mySQL record that I wanted to use as the internal object.
Once you load the result, a project IS the record and a Project class is
created looping through the record sets. I also wanted to add some methods like
save() remove() to the project class. This seemed like a real kewl use of
composition. I thought of object proxy becasue I am still finding my 'style'
using as3.

Seems as though, now that I have tested more things that either 

I just put all public properties as public var name:String; etc, or write
get-set methods for them. The major thing is here I really loved the idea that
ObjectProxy monitors that properties. I want to monitor these properties as
they change. Binding?

I will write more about this if you care to hear it, it's abit long winded for
just free typing this thought train.

;-) I think this is just going to be one of those cases where one solution
gives me THESE benefits and the other solution gives me THOSE benifits. Time to
get out the triple beam :)!

Peace, Mike



On 3/12/06, Matt Chotin [EMAIL PROTECTED] wrote:





Sorry, I really don't get it. So you have a Project
that extends ObjectProxy (this is because you want to monitor property access I
guess). So now would you really be returning a subclass of Project?
Or is the deal that the object within the ObjectProxy has a concrete type that
you want to reach? If that is the case you really shouldn't be using the
ObjectProxy. The whole point of ObjectProxy is that you don't care what's
inside and never want concrete typing. If you want the concrete type you
should devise another system. 



Matt











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: Friday, March 10, 2006 6:53
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 ::
ObjectProxy subclass :: Interfacing concrete accessors









Hello,

Lets see here, the question is kinda odd...

I have the following;

  private function
_getProjectAt(id:uint):Project
  {
   var
cursor:IViewCursor = projectsQueue.getCursor(); 
   
   while
(!cursor.afterLast) {
  
 var curProject:Project = cursor.current as Project;
  
 var curID:uint = curProject.id;
  
 if (curID == id) {
  
  return curProject;
  
 }  
 
  
 cursor.moveNext(); 
   }
   return
null;  
  }


1) the Project class extends ObjectProxy
2) The Project class wraps a record from mySQL (so we really
don't have a set interface for the mySQL record from a record set)
3) When I loop through these Project of type ObjectProxy, is
there anyway I can attach an interface to this, IE IProject
4) I know most of the time typing an interface is the best way
but, uisng ObjectProxy as a super class, I am wondering if the rules are
changing here.

Theoretically, we don't know what properties are there because is
is a proxy for the ture object. Now, should I type the returned Project class
AS Project and programm to the concrete implemenation of Project?? I see know
way of creating an interface other that concrete typing. 

Do you get it ? :)

What is the elogent way of nailing down an ObjectProxy class from
it's accessors in a concrete implementation?

Peace, Mike

-- 
What goes up, does come down. 











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com







SPONSORED
LINKS 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development 
  
 
 
  
  Macromedia flex 
  
  
  Software development best practice 
  
  
  
  
 










YAHOO!
GROUPS LINKS





 Visit your group
 flexcoders
  on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.



















-- 
What goes up, does come down. 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software