Flash output in custom sized window without Internet buttons
Posted: Sat Feb 16, 2008 10:51 am
I wasnt sure if I should post this question here or in the Flare thread, but here goes. I want to customize the way my flash output appears when the user clicks a link to see it. Currently, the output will run in the user's browser at whatever the size the user last had the browser. I want my output to run in the users browser at the size I specify (which will be the same size as the flash movie so there is no white space around the edges of the movie), and without any of the Internet Explorer toolbars and menus (or whatever browser they use).
The way my users access my movies is from both the TOC and links within topics in my Flare WebHelp output.
So, where do I add the custom Javascript to make this happen. I can't see any place in Mimic where I can set my movie to always open a certain way. And, when I create links in Flare, I didn't see a location there where I could add this script.
I did receive some script advice from MadCap support, but it doesn't seem to answer my questions about where to put the script, and it doesn't use a help file topic as the example - instead it uses calling a google page. Maybe this is easily translated, but I'm a bit confused. Here is the script I received:
Below is an example of the sort of Javascript you might use to open a movie at the desired size. This sample opens Google at 400x400, and suppresses the web browser toolbar and menus.
<a href="#" OnClick="javascript:newwindow=window.open('http://www.google.com','name','height=400,width=400,resizable=false,scrollbars=no,toolbar=no,menubar=no');" >Link Text</a>
Neal Pozner
Senior Technical Support Analyst
MadCap Software
npozner@madcapsoftware.com
Can anyone help me figure out how to make this work from a link in Flare or at the movie level itself? Say for example that my compiled movie is called Test.htm - then how would that work?
Any help is appreciated.
Cheers
The way my users access my movies is from both the TOC and links within topics in my Flare WebHelp output.
So, where do I add the custom Javascript to make this happen. I can't see any place in Mimic where I can set my movie to always open a certain way. And, when I create links in Flare, I didn't see a location there where I could add this script.
I did receive some script advice from MadCap support, but it doesn't seem to answer my questions about where to put the script, and it doesn't use a help file topic as the example - instead it uses calling a google page. Maybe this is easily translated, but I'm a bit confused. Here is the script I received:
Below is an example of the sort of Javascript you might use to open a movie at the desired size. This sample opens Google at 400x400, and suppresses the web browser toolbar and menus.
<a href="#" OnClick="javascript:newwindow=window.open('http://www.google.com','name','height=400,width=400,resizable=false,scrollbars=no,toolbar=no,menubar=no');" >Link Text</a>
Neal Pozner
Senior Technical Support Analyst
MadCap Software
npozner@madcapsoftware.com
Can anyone help me figure out how to make this work from a link in Flare or at the movie level itself? Say for example that my compiled movie is called Test.htm - then how would that work?
Any help is appreciated.
Cheers