Accessibility

TechNote (Archived)

AllowMovies is not working in version 3.0 of the Multiuser Server

Issue


AllowMovies is not working in version 3.0 of the Multiuser Server.

Solution


The following steps provide a Lingo-based workaround.

1

Locate the file namedGlobalScripts.lsin the Shockwave Multiuser Server 3.0 directory, in a subdirectory called"Scripts".

2

OpenGlobalScripts.lsin a text editor, or open as an externally linked script in Director.

3

Add the following custom handler toGlobalScripts.ls. To the linear listallowedMovieList, add the movies which are allowed to connect.

 on checkAllowedMovieList movie, user   -- put your allowed movies in this list    allowedMovieList = ["AllowedMovie1", "AllowedMovie2"]    -- convert object refs to strings    movieID = movie.name    userID = user.name    -- iterate through list    repeat with i = 1 to allowedMovieList.count      if movieID <> allowedMovieList[i] then         if i = allowedMovieList.count then            -- we've checked movieID against            -- all items in list and there's been no match.            -- go ahead and delete user            movie.sendMessage("system.user.delete", "anySubject", userID)         end if      else         -- the movie is allowed         exit repeat      end if    end repeat end checkAllowedMovieList 
4 SaveGlobalScripts.ls.
5 Locate theDispatcher.lsfile located in the same directory asGlobalScripts.ls.
6 OpenDispatcher.lsin a text editor, or open as an externally linked script in Director.
7 Locate theon serverEvent()function located inDispatcher.ls, and find the line which reads, "-- Use this code if you want to watch event order in the server console".
8

Justbefore this line add the following:

 case event of   #userLogon: checkAllowedMovieList (movie, user) end case 
9 SaveDispatcher.lsand re-start the Multiuser Server.

Now, assuming that theGlobalScripts.lsreference in the ScriptMap is still intact (it would've had to be explicitly removed because it's there by default), any users with movieID's that aren't in the AllowedMovieList will promptly be rejected.

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:tn_15602

Products Affected: