PDA

View Full Version : Control Flash with JScript, how can i do that?



post.factum
Mar 15th, 2007, 02:22 PM
Hi there,

I have been trying around to make something quite simple:

I have a flash movie and wanto to be played if i scroll the html page.

In case I stop scrolling the movies should be paused.

I have arranged my ActionScript:

stop();
var counter = 0;

onEnterFrame = function(){
if(counter == 0){
stop();
} else if(counter ==1){
play();
}
}

but can not really figure out how can I check the status of the scrollbar constantly and pass the counter variable to my swf file.

Any ideas?