-
Newbie Question. I need a way to get the time and display it on the screen. It only needs to display to the minute. I will also be using the minutes variable to run a PHP or Perl script on the server every few minutes to get and parse an external data file. My main hurtle seem to be the number to string conversion!!! I have read all the tutorials I can find on the net but nothing seems to work. HELP! Thanks!
-
1. Create a Dynamic Text Box
2. Click on the Sound and Frame Actions Button and Select Actionscript:
In the actionscript Box Type this:
myDate= New Date();
txt1 = myDate.getMinutes();
That will show the current Minute.
-
If you are trying to construct a clock, see this thread
http://board.flashkit.com/board/show...hreadid=228259
Scroll towards the bottom of it..Hilary did one in Koolmoves. There is one I did in Koolmoves and Javascript.
-
Thanks, that was exactly what I was looking for. I did run into a "gotcha". It works fine when played in a web brower but it doesn't work when using the "stand-alone" player option. The one I was using is from the demo version of Macromedia Flash that I downloaded a few days ago. It was the only "stand-alone" player I could find as the normal "free player" download from them is only a browser plug-in.
-
Here's a little more on the "stand-alone" player. I noticed that the clock.swf works fine if closing the Koolmoves program and runing just the "stand-alone" player. It also makes a projector file that works. But doing the same from inside the Koolmoves program doesn't. It's just a note so other's don't have the same "gotcha" that I did.
-
I made a standalone of it. In fact its playing even now as I speak- Chances are high that You have 2 versions of FlashPLA.EXE on your machine. A flash 4 version and a Flash 5 version. Check the version Number in the about Flash Player on the KM Standalone.
-
this cool clock works fine with internet explorer 6 and flashplayer 5, but doesnot work in a netscape 4.7 with a flashplayer 4. Is this the browser or the old flash player, which doesnt work with math.objects?
thanks
gorky
-
Quote:
Originally posted by gorky2
this cool clock works fine with internet explorer 6 and flashplayer 5, but doesnot work in a netscape 4.7 with a flashplayer 4. Is this the browser or the old flash player, which doesnt work with math.objects?
thanks
gorky
Its a combination of things;
None of the actionscripting will work with the Flash 4 or lower players, as it is entirely based around the SWF 5 format, while the built in actions are compatible with the flash 4+ player. This is why it is important to know which version of the standalone player you are using. You must use the Flash 5 standalone if you used actionscripting. Everything but Send data, Load Dynamic Text, Mp3 Sound, and Dynamic text are compatible with Flash 3. This is Macromedia's Doing. The Built in add to web page and export to HTML + SWF has a check for the apropriate player script built right into it and is self generating.
Also this is just FYI, if you were using the <embed> tag to place SWF on your Web Pages it will not work for MSIE 5.5 SP 2 for MS Windows or Higher. NS 6.1 and higher in standards mode, Opera, Mozilla in standards mode will properly display the animation with either the <embed> or <object> tags. Old versions FP Express and FP(2000 and lower) use the <Embed> Tag for plug-ins so it is no longer suitable to design pages with Plug-Ins with those Web Editors them. You need to check generated HTML to make sure it is indeed using the Object and Embed Tags with any web editor if you want cross platform/browser compliance.
Also NS, or rather Java dropped it with the Java 2 JRE, dropped Live Connect so JS/Flash communication using FS Commands does not work with newer versions of NS. FS Commands were developed to acommadate MSIE 3 which could not handle Javascript in Get URL in the first place so its not a real loss as MSIE 4 and higher can handle this now. It is was never suitable to design with the FS command becuase Almost all Mac and Linux Browsers could not process the FS Commands.
Sorry if that confuses anyone.
-
Its a combination of things;
None of the actionscripting will work with the Flash 4 or lower players, as it is entirely based around the SWF 5 format, while the built in actions are compatible with the flash 4+ player. This is why it is important to know which version of the standalone player you are using. You must use the Flash 5 standalone if you used actionscripting. Everything but Send data, Load Dynamic Text, Mp3 Sound, and Dynamic text are compatible with Flash 3. This is Macromedia's Doing. The Built in add to web page and export to HTML + SWF has a check for the apropriate player script built right into it and is self generating.
Hello
Maybe I did not say it clear, because I am not an English-navtive speaker. But I used the clock-swf only within my browsers: ie6 with a flash5-plugin and netscape 4.7 which has a flash4-plugin. I don“t have/use standalone-players.
Is there no auto-check , which says "you need the new flash5-plugin"??
Thanks for any help
Gorky
-
In the new version, Bob has added a new functionality that will create a javascript function to check for the Flash plugin when you export the movie for the web -- I do not think he is checking for the version, but that script can be easily modified by th individual user I guess to look for version.
-
The script has always been there for export to the web. I added the javascript for playing the animation in a web browser from within KoolMoves. It would be confusing for new users if their browser doesn't have a flash plugin and they not see anything in their browser window.
-
Well? It works fine in "stand-alone" now! I don't know! One of my other programs must have some "memory leak" or something. New day, fresh computer, morning cup of coffee, what ever it took. I have only been working with Koolmoves and Flash for a couple of weeks now and my notebook and bookmarks are filling up fast (this forum is the top bookmark). A lot of capability and a lot to learn. Thanks.