style question

0 views
Skip to first unread message

troppoli

unread,
Sep 4, 2007, 8:21:13 PM9/4/07
to as3facebooklib
Hey folks, thank you for all of your hard work.

I have a question about the way that this is put together. I had the
same question with flickr lib, so I I'm betting that I'm missing
something fundamental.... perhaps you could enlighten me?

Calls like Photo's...
public function get( subj_id:int = -1, aid:int = -1, pids:Array =
null ):void
...returns its result through event dispatch of the service.

If you do something like retrieve all the albums for a user then want
to pull all the photos for each album, you don't know what event goes
with what request... unless I should be making separate service
objects for the requests.... but I don't think that makes sense
either.

Do you think I'm crazy for wanting to know what events go with what
requests?
Should I be spawning multiple copies of services?
What is the right way to use the lib without modification?

For flickr lib, I ended up adding a result function parameter and
plumbing it all the way up to the surface. I immediately want to do
the same here. What am I missing?

-s

troppoli

unread,
Sep 4, 2007, 8:23:56 PM9/4/07
to as3facebooklib
that is add a result function param to processAndDispatch and plumb it
al the way to the surface....

Jeremy

unread,
Sep 5, 2007, 8:14:20 AM9/5/07
to as3facebooklib
I had a similar experience with the Fql class. I had to add a column
in the result to help
distinguish what each Fql response was in reference to.
Reply all
Reply to author
Forward
0 new messages