Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


javascript and vbscript and flash

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,25130
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> javascript and vbscript and flash
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 javascript and vbscript and flash - 8/19/2005 1:54:49 AM   
  f13o

 

Posts: 1
Score: 0
Joined: 8/19/2005
Status: offline
I have this HTML page which import next JS files:

SCOInteractions.js:
movie_DoFSCommand() // realise Flash fscommand
    // 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 movie_FSCommand(ByVal command, ByVal args)\n');
    document.write('    Call movie_DoFSCommand(command, args)\n');
    document.write('End Sub\n');
    document.write('</script\>\n');
}


FlashWriter.js:
writeFlash() - writes <object> & <embed> tags

HTML page:
<body onLoad="writeFlash(); initTest()"... >

<p id="flashmovie"></p>
...
</body>


This all works in Firefox, cause it doesn't need VBScript for communication, but in IE, for some reason, it does not activate VBScript Call to my JavaScript Sub?

Here http://www.moock.org/webdesign/flash/fscommand/ they say VBScript have to reside in <head> tag, and i have tried that it's still not working.

If i left out writeFlash() call and hard code <object> tags everything IS working, but I realy need this sort of writing different variations of objedct tags in many HTML pages...

I hope I was clear enaough... :) thanx in advance

 
 
 
Post #: 1
 
 RE: javascript and vbscript and flash - 8/30/2005 2:57:02 PM   
  TNO


Posts: 1036
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Why not use 100% javascript instead?

_____________________________

Consolidated Script Component: The Acid Test

A universe of complexity...

(in reply to f13o)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> javascript and vbscript and flash Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts