Displaying Switzerland Time On My Web Site
Hello
I am working on a flash website... i need to display the time of Switzerland on my web site. That means from where ever that web site will be accessed, my web site will be displaying the Time of Switzerland.
Is there any appropriate soluiton for the problem.
Thanks
UM
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-29-2005, 03:46 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Displaying Switzerland Time On My Web Site
Hello
I am working on a flash website... i need to display the time of Switzerland on my web site. That means from where ever that web site will be accessed, my web site will be displaying the Time of Switzerland.
Is there any appropriate soluiton for the problem.
Thanks
UM
Displaying The Complete Time And The Time Passed On A Flv
hello all,
i'm trying to get the lenght of a stream(flv) and display it. get the amount of time that has played on the stream and display that, it will look like this in the end :
01:32/09:45
has any one done this and what would be the best way to go about it? i already have a .asc file that grabs the stream.length and brings it back into flash in secs, but that's as far as i've gotton, and i want to go about this the right way. am i going to create a getTimer() object or is there a clientside script that will accurately display the stream.
thanks,
also, how would i go about trimming the extra characters off of the seconds?
Displaying Time
What I was doing was,
display = (_currentframe)/12 with a few extras to get the time, but its very inacurate, There is also the getTImer() but I wanted to display the Min, Seconds a movie clip has been playing, can you help ?
I guess I should also add a few more things explain a little better! I'm loading a movie into the main movie into _level1 then I also eval( frame information from that movie, but I would also like to get the length of time it has been playing, rather then the way I have done above! there has got to be an easy way
[Edited by KJintrest on 01-15-2002 at 11:59 PM]
Displaying The Time
I have searched the threads and can't find this but i'm sure it has been covered, if it has i apologise....
It is hopefully quite simple, i have a a script that puts the date and time in a text field....
the problem is this. The time is a twelve hour clock (not too bad)
but the minutes upto 10 don't have a leading zero, so for example if the time is 16.04 i get....
4.4 which doesn't really resemble a time.
I have enclosed the script below. please can someone help.
mydate = new Date();
weekday = new Array("Sunday", "Monday", "Tuesday", "Wendnesday", "Thursday", "Friday", "Saturday");
month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "Octobert", "November", "December");
time = (weekday[mydate.getDay()]+' | '+month[mydate.getMonth()]+' | '+mydate.getDate()+' | '+mydate.getHours()+' . '+mydate.getMinutes()+' . '+mydate.getSeconds());
Displaying The Time
While I am not brand new to Flash, nor am I a long time user. But I am not sure what it is I am supposed to be adding to this code.
I should say: I am working with Professional 8.
That said, I picked up a book on Flash. One of the things I want to do is put a clock on my website. This book gave me the following code but then, at the end, points out that the code is incomplete. (Which is nothing but frustrating...why not finish a job?)
Anyway, the code as is - as the author points out - gives single digits as just that, single digits. Instead of showing them as 01, 02, 03 (as you would expect on any digital clock), it just shows 1, 2, 3 (all the way up until they become double digits).
The author says: just add conditional statements to fix this. (Why the idiot author did not just "fix it" in his code beats the hell out of me.)
If anyone has knowledge as to what it is in these conditional statements that I am supposed to add to produce 01, 02, etc. digits, it would be greatly appreciated.
_root.onEnterFrame = function() {
var myDate_dateate = new Date();
var currentHour:Number = myDate_date.getHours();
var currentMinute:Number = myDate_date.getMinutes();
var currentSecond:Number = myDate_date.getSeconds();
if (currentHour > 12) {
currentHour = currentHour - 12;
} else if (currentHour == 0) {
currentHour = 12;
}
myDisplay_txt.text = "The time is now:
" + currentHour + ":" + currentMinute + ":" + currentSecond;
};
Christian Seaborn
cseaborn2006@yahoo.com
or
seaborn.christian@gmail.com
[F8] Displaying Time For SWF (like FLV)
Hey, I have a project that plays back lots of "video sequences" but because they are mixed content of video and animated/scripted footage, I had to embed the FLVs into the timeline. The result is I built my own "player" and I use LoadMovie to load in SWF files.
The problem is I have none of the benefits of the FLVplayback component, like ".totaltime", and current time, etc. The best I have is _totalframes and _currentframe
Can someone give me some guidance on displaying an accurate time display? Keep in mind the viewer can "scrub" back and forth through the video, as well as pause it. I was thinking about converting the frame count based on frame rate, such as:
currenttime = _currentframe * framerate
...but I'm worried about the accuracy of this considering that playback may differ on different computers?
Displaying Something At A Certain Time
i need to know the code on how to display something at certain times of the day, im not much of an actionscripter so would really like some help with writting the code ok cheers!!.... i need amovie clip to come up between (say 10am-12pm )
any help would be much appreciated.....
Displaying Date And Time
I would like a clock on my flash dite. But havent got a clue on how to do the action script for it.
I know the path to the serever clock.
Help please
Displaying Time And Date
Hi all,
Just upgraded from flash4 to flash5 (when it comes out soon i will get flash6). I upgraded as 5 has alot mor functions in action script. Ok enough of the small talk and to my question.
I want to diplay the current time and date (or just time) on my flash website. I was told you cant do it in flash4 but can in 5. How is it done?
Displaying Date And Time
Trying to make a clock that displays the date and time. This is a great tutorial. http://www.flashkit.com/tutorials/Ac...22/index.shtml
Althought I can't get it to work. I can't reach the author to get the answer. This is the error message that displays in the actionscript output screen. when you run the movie. It has something to do with the a.m. or p.m. variabe text box. This message repeats itsself in the output and fills the screen with the same message until I stop the movie.
"Target not found: Target="amp" Base="_level0.instance1"
---------------------------------------------------
Here is the actionscript. Thanks in advance.
// ® Copyright 2001 ®RJH2001
// below is what 'creates' the dynamic timing mechanisms
mydate = new Date();
days = mydate.getDay();
month = mydate.getMonth();
months = mydate.getMonth();
day = mydate.getDate();
year = mydate.getFullYear();
hr = mydate.getHours();
min = mydate.getMinutes();
sec = mydate.getSeconds();
amp = mydate.getHours();
//
// below is what sets the am-pm 0-24 to display Am & Pm
if (amp eq "0" or amp eq "1" or amp eq "2" or amp eq "3" or amp eq "4" or amp eq "5" or amp eq "6" or amp eq "7" or amp eq "8" or amp eq "9" or amp eq "10" or amp eq "11") {
tellTarget ("amp") {
gotoAndStop (1);
}
}
if (amp eq "12" or amp eq "13" or amp eq "14" or amp eq "15" or amp eq "16" or amp eq "17" or amp eq "18" or amp eq "19" or amp eq "20" or amp eq "21" or amp eq "22" or amp eq "23") {
tellTarget ("amp") {
gotoAndStop (2);
}
}
//
// below is what sets the days 0-6 to display Sunday thru Saturday
if (days == "0") {
days = "Sunday";
}
if (days == 1) {
days = "Monday";
}
if (days == 2) {
days = "Tuesday";
}
if (days == 3) {
days = "Wednesday";
}
if (days == 4) {
days = "Thursday";
}
if (days == 5) {
days = "Friday";
}
if (days == 6) {y
days = "Saturday";
}
//
// below is what sets the months 0-11 to display January thru December
if (month == 0) {
month = "JANUARY";
}
if (month == 1) {
month = "FEBUARY";
}
if (month == 2) {
month = "MARCH";
}
if (month == 3) {
month = "APRIL";
}
if (month == 4) {
month = "MAY";
}
if (month == 5) {
month = "JUNE";
}
if (month == 6) {
month = "JULY";
}
if (month == 7) {
month = "AUGUST";
}
if (month == 8) {
month = "SEPTEMBER";
}
if (month == 9) {
month = "OCTOBER";
}
if (month == 10) {
month = "NOVEMBER";
}
if (month == 11) {
month = "DECEMBER";
}
//
// below is what sets the minutes 1 thru 9 to display 01 thru 09
if (length(min) == 1) {
min = "0" + mydate.getMinutes();
}
if (length(sec) == 1) {
sec = "0" + mydate.getSeconds();
}
//
// below is what sets the hours 0 and 13-23 to display 1-12
if (hr == 0) {
hr = "12";
}
if (hr == 13) {
hr = "1";
}
if (hr == 14) {
hr = "2";
}
if (hr == 15) {
hr = "3";
}
if (hr == 16) {
hr = "4";
}
if (hr == 17) {
hr = "5";
}
if (hr == 18) {
hr = "6";
}
if (hr == 19) {
hr = "7";
}
if (hr == 20) {
hr = "8";
}
if (hr == 21) {
hr = "9";
}
if (hr == 22) {
hr = "10";
}
if (hr == 23) {
hr = "11";
}
// ® Copyright 2001 ®RJH2001
Displaying The Date And Time
I have been trying to make a clock that displays the date and time. This is a great tutorial. http://www.flashkit.com/tutorials/Ac...22/index.shtml
Althought I can't get it to work. I can't reach the author to get the answer. This is the error message that displays in the actionscript output screen. when you run the movie. It has something to do with the a.m. or p.m. variabe text box. This message repeats itsself in the output and fills the screen with the same message until I stop the movie.
"Target not found: Target="amp" Base="_level0.instance1"
---------------------------------------------------
Here is the actionscript. Thanks in advance.
// ® Copyright 2001 ®RJH2001
// below is what 'creates' the dynamic timing mechanisms
mydate = new Date();
days = mydate.getDay();
month = mydate.getMonth();
months = mydate.getMonth();
day = mydate.getDate();
year = mydate.getFullYear();
hr = mydate.getHours();
min = mydate.getMinutes();
sec = mydate.getSeconds();
amp = mydate.getHours();
//
// below is what sets the am-pm 0-24 to display Am & Pm
if (amp eq "0" or amp eq "1" or amp eq "2" or amp eq "3" or amp eq "4" or amp eq "5" or amp eq "6" or amp eq "7" or amp eq "8" or amp eq "9" or amp eq "10" or amp eq "11") {
tellTarget ("amp") {
gotoAndStop (1);
}
}
if (amp eq "12" or amp eq "13" or amp eq "14" or amp eq "15" or amp eq "16" or amp eq "17" or amp eq "18" or amp eq "19" or amp eq "20" or amp eq "21" or amp eq "22" or amp eq "23") {
tellTarget ("amp") {
gotoAndStop (2);
}
}
//
// below is what sets the days 0-6 to display Sunday thru Saturday
if (days == "0") {
days = "Sunday";
}
if (days == 1) {
days = "Monday";
}
if (days == 2) {
days = "Tuesday";
}
if (days == 3) {
days = "Wednesday";
}
if (days == 4) {
days = "Thursday";
}
if (days == 5) {
days = "Friday";
}
if (days == 6) {y
days = "Saturday";
}
//
// below is what sets the months 0-11 to display January thru December
if (month == 0) {
month = "JANUARY";
}
if (month == 1) {
month = "FEBUARY";
}
if (month == 2) {
month = "MARCH";
}
if (month == 3) {
month = "APRIL";
}
if (month == 4) {
month = "MAY";
}
if (month == 5) {
month = "JUNE";
}
if (month == 6) {
month = "JULY";
}
if (month == 7) {
month = "AUGUST";
}
if (month == 8) {
month = "SEPTEMBER";
}
if (month == 9) {
month = "OCTOBER";
}
if (month == 10) {
month = "NOVEMBER";
}
if (month == 11) {
month = "DECEMBER";
}
//
// below is what sets the minutes 1 thru 9 to display 01 thru 09
if (length(min) == 1) {
min = "0" + mydate.getMinutes();
}
if (length(sec) == 1) {
sec = "0" + mydate.getSeconds();
}
//
// below is what sets the hours 0 and 13-23 to display 1-12
if (hr == 0) {
hr = "12";
}
if (hr == 13) {
hr = "1";
}
if (hr == 14) {
hr = "2";
}
if (hr == 15) {
hr = "3";
}
if (hr == 16) {
hr = "4";
}
if (hr == 17) {
hr = "5";
}
if (hr == 18) {
hr = "6";
}
if (hr == 19) {
hr = "7";
}
if (hr == 20) {
hr = "8";
}
if (hr == 21) {
hr = "9";
}
if (hr == 22) {
hr = "10";
}
if (hr == 23) {
hr = "11";
}
// ® Copyright 2001 ®RJH2001
Clock Is Not Displaying Time
I have created an analogue clock in flash 5 it has this frame actionscript in a movie clip.
// create an instance of the Date object
myDate = new Date();
//
//rotate clock Hands and shadows
hourHand._rotation = myDate.getHours()*30+(myDate.getMinutes()/2);
hourHandShadow._rotation = myDate.getHours()*30+(myDate.getMinutes()/2);
minuteHand._rotation = myDate.getMinutes()*6+(myDate.getSeconds()/10);
minuteHandShadow._rotation = myDate.getMinutes()*6+(myDate.getSeconds()/10);
secondHand._rotation = myDate.getSeconds()*6;
secondHandShadow._rotation = myDate.getSeconds()*6;
//};
This script is written on 2 frames so that the movie loops continuously and the time is updated constantly. I tested the watch on several machines(Windows 98/2000/NT/XP) in all browsers and it works fine. I am having a problem on 2 machines one of which has windows XP. In these 2 machines the watch is visible but the watch hands are stuck on the first frame and the time is not getting updated. I am unable to figure out what the problem is.
-aneesha
Problem In Displaying Time
I have problems to display the time in my project.
1. How to check whether is 12 am or 12 pm?
2. How to display time in this format, 00 : 00 am/pm?
Below is the code:
Code:
var myDate = new Date();
var hours = myDate.getHours();
if (hours>12) {
hours -= 12;
ampm = "pm";
} else {
if (hours == 0) {
hours = 12;
}
ampm = "am";
}
var min = myDate.getMinutes();
if (min<10) {
var minutes = "0"+min;
} else {
minutes = min;
}
timeAccess.text = (hours+":"+minutes+" "+ampm);
Displaying Time And Updating Each Second
I am trying to create an application in which a person must view the CMOS config. One of the tabs of this CMOS screen displays the time updated every second. What is the best way to do this so that the display updates each second only when on this frame? Should I use an onEnterframe with a timer, or use an interval that's called every 1000 miliseconds? Or is there a better way to do this?
Chris
Problem In Displaying Time
I have problems to display the time in my project.
1. How to check whether is 12 am or 12 pm?
2. How to display time in this format, 00 : 00 am/pm?
Below is the code:
Code:
var myDate = new Date();
var hours = myDate.getHours();
if (hours>12) {
hours -= 12;
ampm = "pm";
} else {
if (hours == 0) {
hours = 12;
}
ampm = "am";
}
var min = myDate.getMinutes();
if (min<10) {
var minutes = "0"+min;
} else {
minutes = min;
}
timeAccess.text = (hours+":"+minutes+" "+ampm);
Displaying World Time
Hey there I want to add a digital clock to my flash file... one that would display my time, which is UTC + 10
I don't want to use php for this... i know it can be done but i was hoping there was a simple way to offset the hours by adding 10
if someone could help that would be great... oh and to save me asking more question i'll probably need you to run through it step by step
Problem With Displaying The Time
Hi folks, need a bit of help with regards to showing the time in Flash, the movie I'm making looks like a news broadcast and I am going to be displaying the time (hours and minutes) in two separate dynamic text boxes named ch and cm. The problem that I am having is that when, for example the time is 5 past 2, the time displays as 14: 5, rather than 14:05 so the zero is missing, any ideas?
My code is this:
Code:
var dt, timeint;
dt = new Date();
ch = dt.getHours();
cm = dt.getMinutes();
cs = dt.getSeconds();
timeint=setInterval(timer,1000);
function timer() {
dt = new Date();
ch = dt.getHours();
cm = dt.getMinutes();
cs = dt.getSeconds();
}
Problem In Displaying Time
I have problems to display the time in my project.
1. How to check whether is 12 am or 12 pm?
2. How to display time in this format, 00 : 00 am/pm?
Below is the code:
Code:
var myDate = new Date();
var hours = myDate.getHours();
if (hours>12) {
hours -= 12;
ampm = "pm";
} else {
if (hours == 0) {
hours = 12;
}
ampm = "am";
}
var min = myDate.getMinutes();
if (min<10) {
var minutes = "0"+min;
} else {
minutes = min;
}
timeAccess.text = (hours+":"+minutes+" "+ampm);
Displaying Elapsed Time
I've got a swf that loadMovie's another swf into it, and I can't seem to find actionscript to display
1) the full duration of the loaded swf
2) the elapsed time of the loaded swf
Anyone know script for this?
Displaying Time In A Datagrid
my datagrid has 3 column, (name , checkbox, Time)
When the checkbox is selected, the current time will be dispalyed in the field of Time
Here are my as code
Code:
//student_xml.trigger();
import mx.controls.DataGrid;
var dateFmt = new flextnet.utility.DateTimeFormatter();
// Build data provider for the data grid
myDP = new Array();
myDP.addItem({stdChname:"",TakeTime:false,Time:dateFmt.formatString("h:i:s: a")});
student_dg.dataProvider = myDP;
student_dg.getColumnAt(1).cellRenderer = "CheckBoxCell";And what should i put in the componet inspector?
i have name as String, checkbox as object, and Time as String , but the time cant be displayed .. could anyone help me?? thz[/code]
HELP Site Plays Great 1st Time, Not 2nd Time
hi there,
I've got my site up and it plays great - the first time. The problem is, when you've visited the site once (and it's saved within your computers cookies) it will play slow when you return to it.
Can somebody please check it out and give me some ideas on how to keep this from happening?
Thanks very much!
artane
please click
HELP Site Plays Great The First Time, Not The Second Time
hi there,
I've got my site up and it plays great - the first time. The problem is, when you've visited the site once (and it's saved within your computers cookies) it will play slow when you return to it.
Can somebody please check it out and give me some ideas on how to keep this from happening?
Thanks very much!
artane
please click
HELP Site Play Great 1st Time, Not 2nd Time
hi there,
I've got my site up and it plays great - the first time. The problem is, when you've visited the site once (and it's saved within your computers cookies) it will play slow when you return to it.
Can somebody please check it out and give me some ideas on how to keep this from happening?
Thanks very much!
artane
www.theco_kpitstore.com
(Think Rooster)
Displaying Current CPU's Time (clock)
Hi,
I have searched all ove for a tutorial... with no success.
Can anyone tell me how to grab the computer's time (internal clock) and display it in hours & minutes in a dynamic text box?
Just a general description will do, I will figure out any Target paths etc...
Thank you so much in advance!!!
Displaying An Image For A Set Time Using Actionscript
Hello all,
If i have the following code:
Code:
next_btn.onRelease = function() {
nextImageNode = currentImageNode.nextSibling;
if (nextImageNode == null) {
break;
} else {
currentIndex++;
updateImage(nextImageNode);
currentImageNode = nextImageNode;
}
};
this checks to see if "nextImageNode" has a "nextSibling" (an image) when the "next_btn" is clicked.
If null then it stops else it goes to the next image by updating to nextImageNode. It then gives "currentImageNode" the value of the current image.
At least I think that's correct?
Knowing all that what i want to do is add another button (aut_start) that when clicked displays the current image (currentImageNode) for 20 seconds then goes to the next image (nextImageNode) and displays that for 20 seconds and so on till it gets to the end of the image slide show.
Can anyone give me some advice on how to achieve this?
Cheers,
Suzy
Displaying An Image For A Set Time Using Actionscript
Hello all,
I have posted this in the FlashMX forum but realised it would be more suited here.
If i have the following code:
Code:
next_btn.onRelease = function() {
nextImageNode = currentImageNode.nextSibling;
if (nextImageNode == null) {
break;
} else {
currentIndex++;
updateImage(nextImageNode);
currentImageNode = nextImageNode;
}
};
this checks to see if "nextImageNode" has a "nextSibling" (an image) when the "next_btn" is clicked.
If null then it stops else it goes to the next image by updating to nextImageNode. It then gives "currentImageNode" the value of the current image.
At least I think that's correct?
Knowing all that what i want to do is add another button (aut_start) that when clicked displays the current image (currentImageNode) for 20 seconds then goes to the next image (nextImageNode) and displays that for 20 seconds and so on till it gets to the end of the image slide show.
Can anyone give me some advice on how to achieve this?
Cheers,
Suzy
Multiple Preloaders Displaying At The Same Time...HELP...
How can I use preloaders using onLoadProgress for several files? I can't just use one preloader and re-use it because I will load several files at the same time.
How can I have preloaders that will show up on different places in my master at the same time? For example at the bottom one shows "loading background" and at the top there is another showing "loading navigation" at the SAME TIME. I've tried making a preloader for a swf that loads into the master. That file in turn have a file loading into itself using a preloader. I thought it would work but it doesn't. Weird...
When using the same code in master.swf and loading it directly into master-just ONE file..it works. Here is the code. It would be very nice to find out and get some help with this... Ohh and yes-I use levels to load content into myMCL.
Niklas
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadError = function (target_mc) {
info_txt.text = "Error. Background did not load. Contact the webmaster";
};
myListener.onLoadStart = function() {
_root.preloader._visible = true;
}
myListener.onLoadProgress = function (target_mc:Object, loadedBytes:Number, totalBytes:Number) {
var preloadPercent = Math.round((loadedBytes/totalBytes) * 100);
_root.preloader.gotoAndStop(preloadPercent);
};
myMCL.loadClip("bkg.swf", 1);
Displaying The Compile Date/time Of Swf
I am testing files for a project and am wondering if it's possible to print out to the screen what time it was COMPILED, so I can then create a build number. I can't use get date or anything like that, becauise it will update at runtime. I need it to, once set, stay in place, so I then know exactly which version I am looking at. I could look at the dates of the files, but really need to get it on screen. Any ideas?
Clock Displaying Wrong Time?
i made a clock and date in flash but when i tried it out, the date is wrong, everything is fine only the date, can anyone help. this is my script:
mydate = new Date();
day = mydate.getDay();
hour = mydate.getHours();
min = mydate.getMinutes();
sec = mydate.getSeconds();
mon = mydate.getMonth();
year = mydate.getFullYear();
if (length(day)<2) {
day = "0"+day;
}
if (length(min)<2) {
min = "0"+min;
}
if (length(sec)<2) {
sec = "0"+sec;
}
if (mon == 0) {
mon = "January";
}
if (mon == 1) {
mon = "February";
}
if (mon == 2) {
mon = "March";
}
if (mon == 3) {
mon = "April";
}
if (mon == 4) {
mon = "May";
}
if (mon == 5) {
mon = "June";
}
if (mon == 6) {
mon = "July";
}
if (mon == 7) {
mon = "August";
}
if (mon == 8) {
mon = "September";
}
if (mon == 9) {
mon = "October";
}
if (mon == 10) {
mon = "Novemeber";
}
if (mon == 11) {
mon = "December";
}
time = hour+":"+min+":"+sec+":"+day+":"+mon+":"+year;
Displaying The Date/time Within A Movieclip
I am trying to display the date/time from within a movieclip. When I put the date/time movieclip in the main timeline it works fine, but when I put the date/time movieclip within another movieclip it doesn't work. Below is the code that I'm using.
I thought it might be a path issue, but I'm not sure how to correct it.
Attach Code
onClipEvent (load){
timedate = new Date(); }
onClipEvent (enterFrame) {
hour = (timedate.getHours());
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = (timedate.getMonth()+1);
monthname = months[month-1];
year = timedate.getFullYear();
if (length(minutes) == 1) { minutes = "0"+minutes;
}
currenttime = hour+""+minutes;
currentdate = todaydate;
fulldate = todaydate;
delete timedate;
timedate = new Date();
}
FLV Player, Displaying Duration And Time
Hello,
I am in need of some help!
I have a FLV player that uses the netstream method to call in external flv files. I'd like the flv player to identify how long the specified flv file is, in minutes, and display it in a text field. I would also like the time elapsed to be dispayed, when the video is actually being played.
How would i go about getting this functionality to work?
I will post my code up if you guys want to see it but for the time being i'd just like some advice.
I hope someone can help!
Regards
EGR103
Displaying Time In Flash MX 2004 Pro
How do I display the time in Flash MX 2004 Professional in the following format? "September 15, 2005 @ 10:55PM EDT || AP"
Please can some one point me to a tute or tell me what to do. Thank you
Displaying Time For Streaming Video
Hello,
i need some help...
i have streamed the video and it plays well. all i need to do now is show the current time of where the video is at.
i know but using the ns.time shows you the time in seconds, but i need it to be displayed in minutes:seconds format.
i've tried using this formula : ns.time % 60, but once it reaches 60 it starts back at 1 any help is appreciated thanks
Displaying Objects For A Set Period Of Time
Hi there,
Was just wondering if anyone knows how to display objects on the stage for a period of time.
What I am doing is creating a Flash (MX) going away card for a work colleague to project on to the wall. I have done the intro and now want to display see-ya messages from other people for about 30secs a message.
The only way I know is to convert the text to a graphic and then work it out using the timeline so each graphic will show for a given period of time.
There must be a way of getting an object to display for a set period within a frame and then for the timeline to move to the next object on the next frame. Something like 'play for 30 and goto frame 2'.
Or am I being silly?
Thanks for your help on this oh wise ones!!!
Get Involved.
Molenski
Displaying Time In A Datagrid Problem
my datagrid has 3 column, (name , checkbox, Time)
When the checkbox is selected, the current time will be dispalyed in the field of Time
Here are my as code
Code:
//student_xml.trigger();
import mx.controls.DataGrid;
var dateFmt = new flextnet.utility.DateTimeFormatter();
// Build data provider for the data grid
myDP = new Array();
myDP.addItem({stdChname:"",TakeTime:false,Time:dateFmt.formatString("h:i:s: a")});
student_dg.dataProvider = myDP;
student_dg.getColumnAt(1).cellRenderer = "CheckBoxCell";And what should i put in the componet inspector?
i have name as String, checkbox as object, and Time as String , but the time cant be displayed .. could anyone help me?? thz[/code]
Displaying Images One At A Time Then Keep Looping
I have an HTML page Using CSS. At the top I have text 3 images and another line of text that I would like to highlight one at a time each time someone accesses the page. I will attach the page. Does anyone know how to do this.
Thanks
Time To Publish My First Site On The Web :-) But How Do I Align My Site ?
Hi there,
I'm trying to align my new site to the center of my web browser .I read that I would need to do it with Dreamweaver or that I could also do it in flash but it didn’t say how. I have Dreamwever so I could try to do it there, if the flash way is too complicated for a beginner like me.
If you know any simple tutorials about this subject or have the time to explain how to do it or even better upload a Dreamwever preset you wouldn't mind sharing with me, I would be extremely grateful.
Cheers,
Tokolosh
Help Displaying Array Contents Spaced Over Time
I'm using Actionscript 2.0 in Flash MX 2004.
My goal is to randomly display movie clip names ("C1", "C2", etc) from an array. I want these movie clip names to not display all at once, but to show up one second apart from each other.
I have some code posted below which is in the first (and only) frame of my Flash file. I have created an array (interactiveON) which holds all of the movie clip names.
I then create an Array (ary) which generates and holds random numbers.
I can get the movie clip names from "interactiveON" to display in a random order, however instead of having them all show up in the output window at once, I want them to display one at a time, 1 second apart from each other, and then stop once all names have been displayed.
If anyone can help me solve this puzzle it would be much appreciated.
Code:
// Create Array (interactiveON) with my content
var interactiveON:Array = new Array(6);
interactiveON[1]="C1";
interactiveON[2]="C2";
interactiveON[3]="C3";
interactiveON[4]="C4";
interactiveON[5]="C5";
//-------------------------
//Set up an Array (ary) of random numbers
n = 6;
ary = [];
// Assign random numbers to "ary"
for (i = 0; i < n; ++i) ary[i] = i;
ary.sort( function() { return random(2)? 1 : -1; });
trace(ary); // Returns string of numbers 0-5, randomized
// Convert random numbers to new Array
for (j=0; j<n; ++j){
trace(interactiveON[ary[j]]); //Returns the cells of "interactiveON" in random order
}
Analog Clocks Displaying Different Time Zones
Hi i'm following a tutorial on how to make an analog clock but i can't figure out how to make it tell the time from a different city or time zone, does anybody know how?
im following this tutorial: http://www.kirupa.com/developer/actionscript/clock.htm
any help is greatly appreciated.
Problem Displaying Duration Time Netstream
I have a flv in my netstream. Somehow I cannot show the duration correctly. I have read forums and tried their ways, still no luck.
this part is in my constructor --------
//load video
var connection:NetConnection = new NetConnection();
connection.connect(null);
stream = new NetStream(connection);
stream.play("video.flv");
video = new Video();
video.attachNetStream(stream);
addChild(video);
//caculate video duration and initial cuepoint event
//handle function
var client:Object = new Object();
client.onMetaData = onMetaData;
client.onCuePoint = onCuePoint;
stream.client = client;
//create playback time info.
playbackTime = new TextField();
playbackTime.width = 50;
playbackTime.height = 20;
this.addEventListener(Event.ENTER_FRAME, handleEnterFrame);
------------------------------------
then the functions
private function onMetaData(data:Object){
duration = data.duration;
trace(duration);
//resize video, video.width may not equial to video.videoWidth
video.width = video.videoWidth;
video.height = video.videoHeight;
//setup playtime info.
setPlaybackTime();
//setup subtitle
setSubtitle();
}
/*
* keep checking the playback time
*/
private function handleEnterFrame(event:Event):void {
playbackTime.text = Math.round(stream.time) + " / " + Math.round(duration);
trace(stream.time);
}
my duration time keeps showing 10. the elapsed time is ok.
Can someone help?
Thanks
Displaying Duration And Current Time In FLV Player
Hi all,
I was following Lee's FLV player tutorial and I noticed that his FLV player doesn't have the function to display the duration of an FLV clip or the current time of the movie. I looked through the user-submitted tutorials, but found nothing. I would really appreciate if someone could help me out with this or maybe point me to a tutorial that has that information.
Also, as an afterthought, if anyone can help me out with making a fullscreen button for an FLV player, I'd really appreciate that too (I know it usually requires some javascript, sorry if I'm not posting this in the right forum).
Flash Site Not Displaying In IE
Hi there
I have developed a flash site and am viewing it thru IE 6.0.2900.2180 which works fine. THe problem is that some other peole who have tested the site for me cannot see it...it won't display and just times out. They are using IE version 6.0.2800.1106. Both these versions of IE should have flash player 7. So i cannot understand why they cannot see the site. The site is an internal intranet site so i cannot provide the url in this forum. Any advice would be GREATLY appreciated!
Displaying Flash On Site.
Ok, how do i do that? i know there is a code, but i am confused.
PHP Code:
<object classid="clsid:D27CDB6E..." ...>
<param name="movie" value="foo.swf">
</object>
Is that it? and how do i add the width and heighth?
http://pixelmindz.com/images/v4/banner001.swf is the thing i need to put on my site.
Displaying A Site Within Flash
Flash geniuses,
I’m designing a new website to host a web comic of mine, and I’ve had an idea. The basic design layout of my website looks something like this:
Now what I’d like the flash document within the right column of the table to do is simply to display a .php file within its own dimensions, with custom scroll bars as needed (i.e. if the text gets longer than the flash file’s height). I’ve done a bit of digging and I assume that this is possible, but the tutorials on kirupa.com haven’t been elucidating because they all involve just calling variables from a php file, instead of just displaying that file as a web browser might. If any of you have an idea of how this sort of thing might be done, I encourage, nay, beseech you to post your ideas below. I have very little experience with Flash.
Thank you.
Displaying Flash On Site.
Ok, how do i do that? i know there is a code, but i am confused.
PHP Code:
<object classid="clsid:D27CDB6E..." ...>
<param name="movie" value="foo.swf">
</object>
Is that it? and how do i add the width and heighth?
http://pixelmindz.com/images/v4/banner001.swf is the thing i need to put on my site.
Displaying Earlier Time / Date Values ( Eg. 15 Minutes Ago )
In Actionscript 2, I know how to reference the current date and time, but I'm looking for a way to show what the time was (for example) 15 minutes ago.
I thought this would be easy initially until I thought, what happens if now was 10 minutes past midnight on the 1st January 2008 ? 15 minutes ago would be 11:55 on the 31st December 2007.
I guess I could write lots of if statements to determine if the minutes were <0 or if it crossed over to a previous day, or how many days there were in the previous month (is it a leap year) etc... but I'm wondering if there is an easier way to reference 15 minutes ago.
Thanks
Edited: 12/05/2007 at 03:29:12 AM by _noClue();
Displaying A Flash Site Fullscreen Through IE
hello...
I hope that someone out there has an idea or two about my delima. I've built a flash site, and want to display it in full screen with out any of IE's bars or menus...completely full screen. I have found some java script that allows me to open the movie in fullscreen mode, but the embaded flash will not resize. Using the FScommands, I have it set to allowscale true and fullscreen true, but why will it not resize in the the IE browser??
Anything will help...
Sincerely,
keith/very confused...
|