Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Getting the date |
From: | John Croteau |
Date: | Wed, 20 Oct 1999 11:17:13 +0100 |
Hi Nashir.
> I have been searching for a solution for this problem. Yes can get it
> with the javascript command but in Javascript the Document.write
> function is in the body tag i.e. at the exact place where you want the
> date to appear in html. IN Flash I get it before or after my movie
> clip in the html depending on how I connect flash FS command to
> javascript. In short my FS command connects with the Javascript part
> if it is in the head tag but not in the body tag.
> Am I clear?
I am not sure what the problem is but.....
It is important that the Flash frame that will receive data from
JavaScript is loaded AND any JavaScript functions used are also loaded
before any Flash JavaScript Method is initiated.
The two basic methods to insure that a Flash frame is loaded first are 1
and 2. Method 3 is only for Flash 4 but can be used for the Date, if
used for time there will be some inaccuracy due to the fact that there
is a delay between when the time was captured and when Flash is loaded.
Since the time Flash takes to load is not a constant you can not get the
very accurate time as in the first two methods (assuming the computer's
system clock is accurate).
1) Use OnLoad so that the JavaScript command is not activated until
everything else is loaded on a page. This works fine for small files.
2) Use an FS Command (from the Flash frame that is required to be loaded
to receive the Flash Method) to provide an 'OK to proceed' command.
JavaScript receives this and runs the appropriate JavaScript function
that sends the time or date to the Flash movie.
3) In Flash 4, if all you need is one time information you could use
JavaScript to send the (in this case Date) on the URL (as variable/value
pairs) that loads the initial Flash SWF file.
--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
John Croteau croteauerols [dot] com (mailto:croteauerols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: Getting the date, Jason
Re: FLASH: Getting the date, John Croteau
Re: FLASH: Getting the date, Nashir Sunderji
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]