Adobe Dreamweaver Forums



Last 10 THreads :         Need code/procedure for opening pop-up usingJavaScript... (Last Post : Srihari.Ch - Replies : 0 - Views : 1 )           »          Update Website Content by my client ? ? (Last Post : simey70 - Replies : 3 - Views : 4 )           »          blogs and forums with Dreamweaver CS3 (Last Post : scarroll - Replies : 10 - Views : 11 )           »          Contact Form (Last Post : Leo_kami - Replies : 0 - Views : 1 )           »          Fireworks pop-up menu (Last Post : Primal69 - Replies : 10 - Views : 11 )           »          Uncatchable Error 2101 (Last Post : GWD - Replies : 7 - Views : 8 )           »          Mail Sending status  (Last Post : NineCooL - Replies : 4 - Views : 5 )           »          Radiogroups and Datagrids (Last Post : amol bhandwale - Replies : 2 - Views : 3 )           »          Re: Need simple 3D (Last Post : Wade_Zimmerman@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: Network Error in downloading FlashPlayer (Last Post : Pepe Trfc - Replies : 0 - Views : 1 )           »         


Mission Statement
DreamWeaverForum.infois an online Community of web developers joining together to better their field, share problems and solutions as well as promoting their cause.
We strive to bring you the best information, tools, downloads and news to support your work and companys efforts working in web development.
With our favorite tool "Dreamweaver" and the tools and information we bring you, You should be in a great postion to better your skills and show the world your work.
Come back often, Stay late we have many new things coming your way. Wish you all the best in 2009 information..



 



User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Director > Multi User Enviroment
 
Tags:



Reply
  #1 (permalink)  
Old 11-04-2008, 09:26 AM
Dave C
 
Posts: n/a
Diggs:
Default WaitForNetConnection

Movie A is waiting for net connections
Movie B tries to connect to Movie A
Movie A decides not to accept the connection (bad password, banned
userID, etc) so it's WaitForNetConnection handler returns False instead
of True.

From what I can tell, no message is sent to Movie B, it justs seems to
sit idle waiting for an answer. Is this correct?

I would like Movie B to inform the user that the connection was rejected
and why. The only way I can think of doing it is for Movie A to actually
accept the connection request, send a message that the password was bad,
then have Movie A break the connection.

Is there a better way?


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-04-2008, 09:26 AM
alchemist
 
Posts: n/a
Diggs:
Default Re: WaitForNetConnection

Dave C wrote:
> Movie A is waiting for net connections
> Movie B tries to connect to Movie A
> Movie A decides not to accept the connection (bad password, banned
> userID, etc) so it's WaitForNetConnection handler returns False instead
> of True.
>
> From what I can tell, no message is sent to Movie B, it justs seems to
> sit idle waiting for an answer. Is this correct?

Normally, movie's B muXtra should reply with a message containing an
errorcode.
Try to connect to movie A using this movie:
http://goMU.rebus.gr/Examples/Connec...MU-connect.dir
and see if you get an error message

>
> I would like Movie B to inform the user that the connection was rejected
> and why. The only way I can think of doing it is for Movie A to actually
> accept the connection request, send a message that the password was bad,
> then have Movie A break the connection.
>
> Is there a better way?

I'd recommend using custom authentication code: allow all users to
connect, no matter the id, and then ask them to provide their true
id/pass. You can then allow them to continue, or disconnect them.
That way, you can also have a descent registration page, within your movie.
Reply With Quote
  #3 (permalink)  
Old 11-04-2008, 09:26 AM
Dave C
 
Posts: n/a
Diggs:
Default Re: WaitForNetConnection

Doh! I had used setNetMessageHandler to capture the "ConnectionProblem"
message, but I forgot to actually create the handler! In fact if
WaitForNetConnection returns FALSE the ConnectionProblem message is sent
to both movies.

Of course the error code is the generic -2147216214 error, so if I want
user to know explicitly why the connection request was rejected, your
suggestion sounds like the way to go.
Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:39 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk