You really should find another solution to Singletons. They tend to be a touch ugly when your application grows and you need to cluster.
We all plan our apps to be so successful we need a second server right? <smile> -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > Right now it doesn't support singleton access. Generally if you need to > ensure a singleton you write a simple adapter object that can be > instantiated and will proxy logic through the singleton. > > > > Even if method A returns void you can still use the result event to > indicate when it has completed (event.result may just be null). > > > > Matt > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Aly Sidi > Sent: Wednesday, October 12, 2005 12:46 PM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] mx:method > > > > Thanks Matt > 1. clear thank you. > 2. Method A returns void > ex : Method A is void Init( String host, String port ) > Method B is String Execute(String var1, String var2) > I kinda solved it by creating a Method C which calls Method A then B. > > Is there a concept of a static RemoteObject or a Singleton Design > Pattern? > > Ive tried the Singleton in my Java code, but it seems FLEX cant infer > the Class Methods from a Property. > > Although I do like teh asyn nature much better. I dont mind making > mods...just wondering how far i can push the RemoteObject.. =) > -aly > > > > > > On 10/11/05, Matt Chotin <[EMAIL PROTECTED]> wrote: > > 1. Multiple means that multiple calls to the same method are allowed > before previous calls have returned. This is the default behavior and > what you're generally used to when calling any method. We added a few > more concurrency values to try to simplify logic if you really didn't > want to think about the case of "what happens if someone sends again > before the first call returned." "single" means that once a call has > gone out no other calls to the same method (off the same RemoteObject > instance) are allowed until the first call returns. Therefore you are > guaranteed that the result event will only fire for that first call. > "last" is the opposite, if you call the method multiple times in a row > only the last call will have its result returned in the result event. > However, all calls will make their way to the server, it's just the > previous calls results or faults will be ignored. This is mentioned > somewhere in the docs I'm sure, just search for "concurrency" > > > > 2. Call remote object A, in the result handler for A call method B using > the return values from A. > > > > Matt > > > > > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Aly Sidi > Sent: Monday, October 10, 2005 10:41 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] mx:method > > > > quicl question about mx:method concurrency. > 1. what do all the values mean : multiple, single, etc....i couldnt find > specifc documentation > > 2. how do call 1 remote object method A that sets some inits, then use > the properties in remote object method B > > so A inits hostName and Port and B Executes something based on thos > parameters > > i know i can wrap it in one function but is there some way to use a > singleton pattern or statics or something...or is this not possible > because flex is async by nature per call?? > -aly > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > ________________________________ > > YAHOO! GROUPS LINKS > > > > * Visit your group "flexcoders > <http://groups.yahoo.com/group/flexcoders> " on the web. > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/> . > > > > ________________________________ > > > > > -- > 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 > <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+ > site+design+development&w2=Computer+software+development&w3=Software+des > ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac > tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> > > Computer software development > <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We > b+site+design+development&w2=Computer+software+development&w3=Software+d > esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr > actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> > > Software design and development > <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1= > Web+site+design+development&w2=Computer+software+development&w3=Software > +design+and+development&w4=Macromedia+flex&w5=Software+development+best+ > practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> > > Macromedia flex > <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+ > development&w2=Computer+software+development&w3=Software+design+and+deve > lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1 > 66&.sig=OO6nPIrz7_EpZI36cYzBjw> > > Software development best practice > <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice& > w1=Web+site+design+development&w2=Computer+software+development&w3=Softw > are+design+and+development&w4=Macromedia+flex&w5=Software+development+be > st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> > > > > > > ________________________________ > > YAHOO! GROUPS LINKS > > > > * Visit your group "flexcoders > <http://groups.yahoo.com/group/flexcoders> " on the web. > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/> . > > > > ________________________________ > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/