PDA

Просмотр полной версии : Какие ещё есть методы общения c флешем через JavaScript?


Dimanelly
26.05.2004, 18:31
Здравствуйте уважаемые.
Ищу методы, вызываемые из JavaScript-а для воздействия на флеш-фильм.
Например: window.document.id-флеш-ролика.Play();

на сайте макромедии нашёл такие:

Play() - Start playing the animation.
StopPlay() - Stop playing the animation.
IsPlaying() - Returns true if the movie is currently playing.
GotoFrame (int frameNum) - Goto a specific frame of the movie.
TotalFrames() - Returns the total number of frames in the movie.
Rewind() - Go to the first frame.
SetZoomRect (int left, int top, int right, int bottom) - Zoom in on a rectangular area of the movie.
Zoom(int percent)
Pan (int x, int y, int mode)
PercentLoaded()

К своему удивлению, не нашёл в этом списке SetVariable(name, value)

Вопрос: может быть есть ещё какие то?
И как можно вызвать функцию описанную в флеш-фильме.
window.document.id-флеш-ролика.my-func(); ???

Спасибо.

dimarik
27.05.2004, 11:12
http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/