🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.atmosphere
Article #28899

Re: Reusing the subworld file

#28899
From: Norm Lindenberg
Date: Wed, 08 May 2002 23:48
19 lines
1420 bytes
Rolu, 

Thanks for clarifying the picture. 

I recoded as you suggested and while the mouse overs work they still all seem to be sharing the same function. The code below is a condensation of the portion of the script involved. 

vsw.onWorldLoad=function(succ) { this.world.onMouseOver = function() {chat.print("You are pointing at "+vsw.Name);} } 

vsw = SubWorld("<file name>").add(); vsw.Name = "<subworld name>"; 

The above two statements are repeated for each subworld to be created. 

Each subworld is given a different position; they are being created and placed at the correct locations. However, when mouse overs are done they all report the name of the last subworld created. 

Do you see any obvious mistakes? 

Thanks, 

Norm
Technical Details
Message-ID: <ef86495.5@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef86495.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fa820,71055f44dd0e58e2
X-Google-Attributes: gidfa820,public
X-Google-ArrivalTime: 2002-05-08 17:07:32 PST
From: "Norm Lindenberg" <nlindenberg@home.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.atmosphere
Subject: Re: Reusing the subworld file
Message-ID: <ef86495.5@WebX.aaQKaf7vad4>
Date: Wed, 8 May 2002 16:48:06 -0700
References: <ef86495.-1@WebX.aaQKaf7vad4>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit