Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: New Update: Loading variable from Javascript
From: Kortland, Brian
Date: Wed, 07 Feb 2001 20:58:46 -0000

HI All,

You may recall I had given up on importing variables from a text file and
found that I could use javascript -- documentation is severly lacking!

Well, I have had mixed levels of success. I have been able to set a variable
in Flash from javascript embedded in my page. I simply created a variable
that pointed to my movie flatmap and then used the SetVariable command which
is mapped to my movie clip variable (/Vars:link) and set the variable to
"uwtools"

//<script language="JavaScript">
//<!--
//var movie = window.document.flatmap;
//movie.SetVariable("/Vars:link", "uwtools");
//-->
//</script>

"uwtools" is actually the name of a web page that I want to pass dynamically
to a flash button that activates a hyperlink to the uwtools.htm page. If
this would work I could pass many different variables to access different
pages from my flash interface.

When I run this in IE is works perfectly. Netscape fails. I dig a little
deeper and find the error message "movie contains no properties".

Anyone have any advice?

Regards,

Brian Kortland
AIU E-Business
AIU URL: http://aignetprod.aig.com/cfaiunet/
tel 212.770.7617, fax 212.968.1386
brian [dot] kortlandataig [dot] com




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]