Question
Control New Window Properties
Hello all, I am relatively new to Flash and am having a
problem.
I have a flash piece that is published to Flash 7 using CS3 Professional. This piece is placed in a eLearning module that was created with Lectora and is run from a Saba 5.2 LMS.
Right now I am using the following code to get a button to open a new window:
on (release) {
getURL ("javascript:NewWindow=window.open(' http://www.adobe.com','newWin','width=850,height=705,left=0,top=0,toolbar=No,location=No,scrollbars=Yes,resizable=Yes,status=No,fullscreen=No'); NewWindow.focus(); ");
}
The problem is that the user must open a browser window to access Saba. When Saba launches the course it must do so in a new browser window. So when the course is running, there are two browser windows open. When the user clicks on the button in the Flash piece, it puts the focus on the window that Saba is running in and redirects to the link that is in the JavaScript. This cuts the connection between the course and Saba and loses all information for the user.
If I use the code :
on (release){
getURL(" http://www.adobe.com", "_blank");
}
Is there any way of controlling the same things that the JavaScript code above does? Example... Window width, Window height, X,Y placement, etc..
Any help would be incredibly helpful!!!
Thank you,
Rob
I have a flash piece that is published to Flash 7 using CS3 Professional. This piece is placed in a eLearning module that was created with Lectora and is run from a Saba 5.2 LMS.
Right now I am using the following code to get a button to open a new window:
on (release) {
getURL ("javascript:NewWindow=window.open(' http://www.adobe.com','newWin','width=850,height=705,left=0,top=0,toolbar=No,location=No,scrollbars=Yes,resizable=Yes,status=No,fullscreen=No'); NewWindow.focus(); ");
}
The problem is that the user must open a browser window to access Saba. When Saba launches the course it must do so in a new browser window. So when the course is running, there are two browser windows open. When the user clicks on the button in the Flash piece, it puts the focus on the window that Saba is running in and redirects to the link that is in the JavaScript. This cuts the connection between the course and Saba and loses all information for the user.
If I use the code :
on (release){
getURL(" http://www.adobe.com", "_blank");
}
Is there any way of controlling the same things that the JavaScript code above does? Example... Window width, Window height, X,Y placement, etc..
Any help would be incredibly helpful!!!
Thank you,
Rob
