Insert SWF from Instant Demo

Dec 20, 2011

Hi,

I have made a screen recording with Instant Demo and published it as a swf-file. When I insert it in Articulate and display it in a new browser window, it´s not displayed in the right size. If I use a swf-file from Captivate, everything is OK. Anyone who knows how to fix this?

/Staffan

1 Reply
Peter Anderson

Hi Staffan, welcome to Heroes!

Once you've configured your movie to launch in a new window properlyyou can modify the HTML page that is actually loading the Flash movie. Here's how:


Please be aware that this method is not officially supported by Articulate.

1. Publish your presentation.
2. On the Publish Successful dialog, click the Open Folder button.
3. In the published output, open the Player folder.
4. Open the VideoPlayer.html file in a text editor, such as Notepad.
5. Edit the following code: 

Change this: 

 
var g_nWidth = "100"; 
var g_nHeight = "100"; 
var g_strSearch = document.location.search.substr(1); 
var g_arrSearchArgs = g_strSearch.split("&"); 


To this: 

 
window.moveTo(0,0); 
window.resizeTo(screen.width,screen.height); 
var g_nWidth = "100"; 
var g_nHeight = "100"; 
var g_strSearch = document.location.search.substr(1); 
var g_arrSearchArgs = g_strSearch.split("&"); 


Essentially, the above code change positions the window in the upper left corner and then resizes it to maximum. These attributes can be manually changed to anything that you need. If you want to just maximize the window, you can change the window.resizeTo value to something like this: 

window.resizeTo(1450,900);
I hope that's helpful. Happy holidays!

This discussion is closed. You can start a new discussion or contact Articulate Support.