PDA

View Full Version : flash/ASP problem



yorks
03-24-2004, 09:45 AM
Hi all

These are probably very simple problems to solve for most of the folks on here but I am a humble beginner :) The messenger system I am trying to tailor is the EZ Text Messenger from Semtech interactive

we have a instant chat system written in Flash/ASP. The user lists shows the names of all the user logged onto the messeneger (obviously). The user list is displayed using a flash dropdown box.

I am wanting to do 2 things

1. In the instant messenger user list I want to place a small icon next to each name which can be clicked on to view a webpage containing that persons profile. We have the user name so all I would have to do is tag this onto the end of the URL ie.

http://www.mysite.com/yorks

The code line that 'builds' the user name list is as follows


response.write "Name" & count & "=" & application("" & anewid & "") & application("" & astatusid & "") & "&DataRow" & count & "=" & application("" & aboxid & "") & "&Go=Yes&"

This will build the array containing the usernames in the following format

yorks (online)
etc etc

The code in the flash movie that displays the user list is as follows

function AddItems() {
dropdown.removeAll();
for (i=0; i<NumItems; i++) {
var Name = eval("Name"+i);
var DataRow = eval("DataRow"+i);
dropDown.addItem(Name, DataRow);
}





2. Secondly I need to be able to click on certain usernames to inital a chat window depending on the membership status of that user. The code that initiates the chat window is as follows

function SelectItem(){

URLName = dropDown.getSelectedItem().label;
URL = dropDown.getSelectedItem().data;
URL2 = myid;
getURL("javascript:launchwin(" + URL + " , 'newwindow' , 'height=310,width=375' , " + URL2 + ")");
gotoAndPlay(11);


Hope i have provided enough info here

thanks in advance