PDA

View Full Version : get URL (named window) problems. Please help.



seanbez
April 29th, 2004, 12:49 PM
Hello Everybody

I am trying to use the named window feature of the GetURL command.

On the link below

http://www.umncphp.umn.edu/IMS/module7.swf

I am trying to make a transcript that coincides with the module's slides.

Click on the Command Presentation (that is the presentation I am testing on).

When you click on the Transcript button, the new page appears. My code is.

on (release){
//anchor is the current presentation
//currentslide is the current slide. The combination
// of these two variables determine the anchor name
getURL("test.htm#"+anchor+currentslide, "_blank")
}

This works fine, and is not my problem.

When I change slides, I have my problem. On the slide controls I have the following code.

on (release) {
getURL("test.htm#"+anchor+currentslide, "test")
}

If I understand the GetURL command correctly, the slide control code should update the opened (launched by transcript) named window "test" with the current URL. However, instead it opens a new window.

I don't want the slide control to launch a page ever. It should be dormid, and only update if the transcript page is opened by the transcript button.

Am I on the right track?

There is a page I am trying to emulate, but I can't show you because it is a course from another university.

Thanks for your help on this.

Also, is there a way, either through flash or javascript, to keep the transcript page active in the foreground at all times? I do not want it to be moved to the background when module window is selected.

Thanks again.

Let me know if you need the .fla

Sean

ScriptFlipper
April 30th, 2004, 08:18 PM
I suppose that you could call a javascript function that checks whether that window has been opened or not. If it has, the javascript function does what you want to do, but if the window isn't open, nothing happens.

Although, I wouldn't know how to create such a fuction, because I don't know any javascript, but you could try to search in the Client-Side forum on how to check for open windows.