Problems with the order of VIEW elements in WMP skins

I'm making a skin for media player with two windows. One is the normal window and the other is the video window. When I put the normal window VIEW before the other video VIEW then the normal window is visible but there is no video. When I put the video VIEW first, it shows up but no normal window. Its really wierd and I cant get them both to show up at the smae time. Anyone have any clues on this problem?
2,590 views 3 replies
Reply #1 Top
theme.openView('theNameOfYour2ndView');

You can call this under the first view's OnLoad function if you want it to open right away, or on a button's OnClick function. Also: theme.closeView('...');.
Reply #2 Top
I put it in the OnLoad function but it still wont show up! Grr, this is getting frusterating! I appreciate your help though. I dont know why this wont work! This is the VIEW's code: (replace [ and ] with angle brackets)

[VIEW title="Video"
width="470"
height="1000"
titleBar="false"
resizable="false"
zIndex="1"]

[SUBVIEW id="Visuals"
top="-200" (note: this is set to -200 because it is supposed to slide down into place. Even when I change it though, it still doesnt work)
left="100"
backgroundImage="vidbackground.bmp"
onEndMove="JScript: ShowVid();"
visible="true"]

[video id="Vid"
left="12"
top="9"
width="225"
height="156"
onVideoStart="JScript: MoveVid();"
onVideoEnd="JScript: VidUp();"
visible="true"/]

[/SUBVIEW]
[/VIEW]

Do you see anything wrong with this code?
Reply #3 Top
I don't think the content of the video view matters (I would make it the second view, with the main view being first). Although wait a sec... you should have a

id="viewvid"

line in the video view, which you don't currently have, then try again the

[VIEW id="mainview"
(variable stuff)
OnClick="blahblahblah;theme.openView('viewvid');"
]

See if that works, in other words, much more simply, I think you just need "id" instead of "title" for the 2nd view. HTH,