PDA

View Full Version : Newbie Needs Help



Roboblue
12-08-2003, 03:14 PM
Sorry for the double post, but apparently the filter didn't like my other user name.

I am making a dvd that will have 20-30 videos. I would like to use the embedded palyer so that i can set the window size. I would like to put the embedded player on a page to be reused. I was going to use a list box for each catagory on it's on page. then when the desired vid is selected, jump to the player page and pass the selection to the player. I can't get it to work. the player does not get the selection. I thought the list box would be a global function, but it seems it isn't. I know this should be simple, but I am new to this procedure.
Is there an easier way?
TIA

Lorne
12-10-2003, 09:04 AM
Actions can only work with objects that are on the same page. But variables are global. So just store the selected item in a variable, and then use the variable on the other page.

Roboblue
12-10-2003, 02:00 PM
i figured it out.

film selection page on doubleclick

selected = ListBox.GetSelected("lb1");
vid = ListBox.GetItemData("lb1", selected[1]);
Page.Jump("Video");

video page on show

Video.Load("Video1", vid, true);

feel pretty silly, now.
thanx for the response.