Hi,
is it possible to write text in the window status bar from within a swf movie?
thankx
Printable View
Hi,
is it possible to write text in the window status bar from within a swf movie?
thankx
If you know how from javascript just send an FSCOMMAND that is read by your javascript. Look in help and search here for info on using this.Quote:
Originally posted by glmaters
Hi,
is it possible to write text in the window status bar from within a swf movie?
thankx
OK,
I defined Javascript functions in the HTML page calling the swf file.
But I do not seem to be able to call these functions.
Can somebody help with an example?
Thanks,
Gerard
Hi,
Got the trick. Just needed a small VB Script to trigger the Javascript.
It's working now.
Thanks,
Gerard
It doesn't work like it's supposed to......
I've only managed to get it to work by using FLASH 5 and copying the script code where my flash movie is called fscommand_example:
Code:
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function fscommand_example_DoFSCommand(command, args) {
var fscommand_exampleObj = InternetExplorer ? fscommand_example : document.fscommand_example;
window.status=args
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub fscommand_example_FSCommand(ByVal command, ByVal args)\n');
document.write(' call fscommand_example_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
Hi Bret and Gerard,
This link will take you to an example of how to use the FSCommand with 3DFA.
http://www.syssoft.net.au/3dfa/load_vars_html.html
All it does is load variables into edit boxes from the javascript in the web page. Click on the 'Load From HTML' text to see it work.
If you view the source for the web page to the above link you can see the all the code used to achieve this.
HTH
Cheers,
Ed
By the way Ed, you cannot use any of these javascript functions in Netscape 6+ as they did away with the liveconnect feature. I believe the FSCOMMAND function still is supposed to work.Quote:
Originally posted by kusco
Hi Bret and Gerard,
This link will take you to an example of how to use the FSCommand with 3DFA.
You can also send javascript commands via the LoadURL command like this:
javascript:functiontocall
Hi Bret,
Does that method of calling work for any browser (I only use IE)?
Still, it's pretty neat that it can do that.
Cheers,
Ed
Yes I've used it to open PopUp Windows. Seems to work in all browsersQuote:
Originally posted by kusco
Hi Bret,
Does that method of calling work for any browser (I only use IE)?
Still, it's pretty neat that it can do that.
Cheers,
Ed