anton1
12-04-2003, 04:16 PM
please help me, i try to controll a flashmovie from a webpage with html/javascript
i want to sent GotoandPlay commands to different frames in the flashmovie from links in a menu-bar
this test is only for Microsoft I.E.
this is the function:
var moviename = "test";
var movie_ready = "false";
function playmovie()
{
if(movie_ready == "false")
{
while(movie_ready == "false")
{
if(window[test].PercentLoaded() == 100)
{
window[test].GotoFrame(2);
movie_ready ="true";
}
}
}
else
{window[test].StopPlay();
}
end of function
movie name is test.swf
as an event i use a link with a functioncall: playmovie()
nothing happens what do i wrong???
is there a good script to controll a flash-movie form a webpage using javascript?
i want to sent GotoandPlay commands to different frames in the flashmovie from links in a menu-bar
this test is only for Microsoft I.E.
this is the function:
var moviename = "test";
var movie_ready = "false";
function playmovie()
{
if(movie_ready == "false")
{
while(movie_ready == "false")
{
if(window[test].PercentLoaded() == 100)
{
window[test].GotoFrame(2);
movie_ready ="true";
}
}
}
else
{window[test].StopPlay();
}
end of function
movie name is test.swf
as an event i use a link with a functioncall: playmovie()
nothing happens what do i wrong???
is there a good script to controll a flash-movie form a webpage using javascript?