davidtrin
05-29-2001, 10:08 PM
Hi there, I've got a problem that is nearly solved but I can't figure now what i did wrong.
I want do put the date in my Flash movies like in a html page.
I've got flash 4 and this example,
<script language="JavaScript">
var mName = "moviename";
function mObject(mName){
if (navigator.appName.indexOf ("Microsoft") !=-1){
return window[mName];
}
else{
return document[mName];
}
}
function getCurDate () {
curDate = new Date();
curMonth = curDate.getMonth() + 1;
monthDay= curDate.getDate();
curYear= curDate.getYear();
if (navigator.appName.indexOf ("Microsoft") = -1){
curYear = 1900 + myyear;
}
movieobject(moviename).SetVariable("date", curMonth + "/" + monthDay + "/" + curYear);
}
</script>
changes in your .swf callin script:
in <object tag line add: ID="moviename"
in <embed tag line add: name="moviename" swliveconnect=true
just call it from flash like: GetURL("JavaScript:getCurDate();")
This one seem to be the one but I want to use a specific font and can't
see how to put this GetURL action in my textfield.
Please someone help me with this!
Thanks in advance.
David
I want do put the date in my Flash movies like in a html page.
I've got flash 4 and this example,
<script language="JavaScript">
var mName = "moviename";
function mObject(mName){
if (navigator.appName.indexOf ("Microsoft") !=-1){
return window[mName];
}
else{
return document[mName];
}
}
function getCurDate () {
curDate = new Date();
curMonth = curDate.getMonth() + 1;
monthDay= curDate.getDate();
curYear= curDate.getYear();
if (navigator.appName.indexOf ("Microsoft") = -1){
curYear = 1900 + myyear;
}
movieobject(moviename).SetVariable("date", curMonth + "/" + monthDay + "/" + curYear);
}
</script>
changes in your .swf callin script:
in <object tag line add: ID="moviename"
in <embed tag line add: name="moviename" swliveconnect=true
just call it from flash like: GetURL("JavaScript:getCurDate();")
This one seem to be the one but I want to use a specific font and can't
see how to put this GetURL action in my textfield.
Please someone help me with this!
Thanks in advance.
David