Re: a Flash methods question?
- From: Geoff Cox <gcox@xxxxxxxxxx>
- Date: Mon, 21 Sep 2009 13:06:51 +0100
On Mon, 21 Sep 2009 11:13:38 +0200, Thomas 'PointedEars' Lahn
<PointedEars@xxxxxx> wrote:
Dr J R Stockton wrote/:
Thomas 'PointedEars' Lahn posted:
Geoff Cox wrote:
I know that JavaScript can use Flash methods to start/stop etc a swfWhat a junk. You could have at least considered to declare `movieplayed'.
file being played using code such as
function startMovie() {
movieplayed = true;
var flash = window.movie || document.movie;
flash.Play();
}
One does not declare, within a function, any global variables that it
uses.
True, and I did not imply otherwise.
Since the result of that assignment is never used within the
function, it must be global.
Non sequitur. Because it is not declared locally, it must be defined in one
of the outer execution contexts (not necessarily the global one); in one of
those it should be declared or one risks attempting to augment a host object
in the scope chain, the side effects ranging from overwriting a special
property to a runtime error (as demonstrated before for the MSHTML DOM).
Thomas,
I did declare it as a global variable and no doubt should have said
so.
Cheers
Geoff
.
PointedEars
- References:
- a Flash methods question?
- From: Geoff Cox
- Re: a Flash methods question?
- From: Thomas 'PointedEars' Lahn
- Re: a Flash methods question?
- From: Dr J R Stockton
- Re: a Flash methods question?
- From: Thomas 'PointedEars' Lahn
- a Flash methods question?
- Prev by Date: Re: addEventListener / attachEvent and grab Option Value
- Next by Date: Re: capture onclick event below an image
- Previous by thread: Re: a Flash methods question?
- Next by thread: Sell Coogi t-shirts, other brand t-shirts and coogi products $18
- Index(es):
Relevant Pages
|
Loading