|
|
 |
flash/javascript
date posted 11th January 2001 09:46
since were on the flash javascript subject... :)
heres some code you all should find VERY useful - using javascript to
set/get variables in flash, when used with asp(or whatever floats your boat)
you can create message boards and shopping sites in flash - without having
to get your head around xml connections in flash 5! :) just remeber to give
the embed and the object both a name and in id with the same text and use
the swLiveConnect for shitscape users.
var swfname="Savi";
var movie_ready="false";
function swfobject(swfname)
{
//IE and Netscape refer to the movie object differently.
//This function returns the appropriate syntax depending on the browser.
if (navigator.appName.indexOf ("Microsoft") !=-1)
{
return window[swfname];
}
else
{
return document[swfname];
}
}
function dovariable(){
if(movie_ready == "false"){
while(movie_ready == "false"){
if(swfobject(swfname).PercentLoaded() == 100){
swfobject(swfname).SetVariable("id", player_id);
movie_ready = "true";
}
}
}
else{
swfobject(swfname).SetVariable("id", player_id);
}
}
im sure you all can think of a few appliocations that'd be useful for!
dave ecky
David Eckersall
Kinetic North Limited
A member of the Wize Group of companies
Reg Co No 4100142
Reg Office and Business Address
St James House, Wellington Road North
Stockport SK4 2QN
Office Tel - 00 44 161 975 5900
Office Fax - 00 44 161 975 5924
Web - http://www.kineticnorth.com
This communication contains information which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient(s) please note that any form of
distribution, copying or use of this communication or the information in it
is strictly prohibited and may be unlawful. If you have received this
communication in error please return it to the sender. Internet e-mails are
not necessarily secure. Kinetic North Limited does not accept responsibility
for changes made to this message after it was sent. Our messages are checked
for viruses but please note that we do not accept liability for any viruses
which may be transmitted in or with this message.
|
 |
|