Adobe Dreamweaver Forums



Last 10 THreads :         CSH Calls for Merged CHM's (Last Post : Peter Grainge - Replies : 1 - Views : 2 )           »          managing imported SWF framerates (Last Post : macrofireball - Replies : 6 - Views : 7 )           »          Web friendly URLs (Last Post : matthisco - Replies : 0 - Views : 1 )           »          Re: Images missing in project folder (Last Post : Peter Grainge - Replies : 1 - Views : 2 )           »          gotoAndStop not working when a sub movieclip property isaltered. (Last Post : Michealnl - Replies : 0 - Views : 1 )           »          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 )           »         


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 Trying to understand

While working with the MUS xtra I constantly encounter a slightly
annoying occurrence and I hope to gain a bit more insight about it.

I create an instance of the MUS xtra and assign a reference for it to a
global variable. I then use the WaitForNetConnection, passing a specific
port number that I want to use.

As I am developing, I stop the movie to work on some part of the code. I
then restart the movie, running the script that instantiates the Xtra again.

I then immediately see a "WaitForNetConnection" message come in:

[#errorCode: -2147216214, #recipients: ["Host"], #senderID: "System",
#subject: "WaitForNetConnection", #content: <Void>, #timeStamp: 0]

Typically you only see this message come in when another instance is
trying to connect via ConnectToNetServer, and the #content normally
shows the username, password, and movie string instead of being void.

This only happens after the first time I call WaitForNetCOnnection on
the same port. In a published piece, this would never happen. But as I
am developing it happens a lot. It really doesn't stop anything from
working either. I just want to understand.

Destroying the instance (by setting variable to 0) doesn't change
anything. It seems like once a movie opens a connection on a port, that
port remains open until the movie is closed.

So if I understand, the first time WaitForNetConnection is called, the
Xtra opens the port if the port is not in use. The next time it sees the
port open and passes the message on to the WaitForNetConnection handler
I have set up regardless of where it is coming from. Is this right?


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

You have to set both the callback handler and the instance to 0. Otherwise,
the instance is not being released.
Assuming gmux is and muxtra instance, and #mucb the single callback handler
assigned to it, try:
gMux.setnetmessagehandler(#mucb, 0)
gMux=0

"Dave C" <no@no.com> wrote in message
news:gbblln$cn5$1@forums.macromedia.com...
> While working with the MUS xtra I constantly encounter a slightly annoying
> occurrence and I hope to gain a bit more insight about it.
>
> I create an instance of the MUS xtra and assign a reference for it to a
> global variable. I then use the WaitForNetConnection, passing a specific
> port number that I want to use.
>
> As I am developing, I stop the movie to work on some part of the code. I
> then restart the movie, running the script that instantiates the Xtra
> again.
>
> I then immediately see a "WaitForNetConnection" message come in:
>
> [#errorCode: -2147216214, #recipients: ["Host"], #senderID: "System",
> #subject: "WaitForNetConnection", #content: <Void>, #timeStamp: 0]
>
> Typically you only see this message come in when another instance is
> trying to connect via ConnectToNetServer, and the #content normally shows
> the username, password, and movie string instead of being void.
>
> This only happens after the first time I call WaitForNetCOnnection on the
> same port. In a published piece, this would never happen. But as I am
> developing it happens a lot. It really doesn't stop anything from working
> either. I just want to understand.
>
> Destroying the instance (by setting variable to 0) doesn't change
> anything. It seems like once a movie opens a connection on a port, that
> port remains open until the movie is closed.
>
> So if I understand, the first time WaitForNetConnection is called, the
> Xtra opens the port if the port is not in use. The next time it sees the
> port open and passes the message on to the WaitForNetConnection handler I
> have set up regardless of where it is coming from. Is this right?



Reply With Quote
  #3 (permalink)  
Old 11-04-2008, 09:26 AM
Dave C
 
Posts: n/a
Diggs:
Default Re: Trying to understand

You were of course right. That did the trick. I have never seen that
documented anywhere. How in the heck did you know that?
Reply With Quote


  #4 (permalink)  
Old 11-04-2008, 09:26 AM
alchemist
 
Posts: n/a
Diggs:
Default Re: Trying to understand

> How in the heck did you know that?
Case this wasn't a retorical question,
A combination of trying (back in the day) older and newer documented methods
that didn't work, reading between the lines, and quite some experimenting,
from what I can recall.

"Dave C" <no@no.com> wrote in message
news:gbc0ud$p7t$1@forums.macromedia.com...
> You were of course right. That did the trick. I have never seen that
> documented anywhere. How in the heck did you know that?




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:59 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