[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 485
  • Last Modified:

Flash movie clip focus

I have reoccuring problem where is a user moves their cursor too fast, falsh sometimes doesnt notice the change on focus both for rollouts and for rollovers. Is there a way to force flash to keep checking so that if it misses it in the first instance it will pick it up very quickly after? Smetimes people can rollover a button too quick and then flash ignores that the rollover should be active even if the cursor is still on top
0
sousflai
Asked:
sousflai
  • 2
1 Solution
 
sousflaiAuthor Commented:
Im attaching a final swf export. Youll see that if you roll over and then roll out of any of the module the desired animations happen. If howver you quickly scroll form side to side it seems totally random when some other movie clips are triggered and others arnt. Is there a way to stabalise this?

Ive attached the code for one of the modules
//N1//
 
_root.n1.onRollOver = function () {
	
	/*this modules up scaling*/
	if (_root.n1._currentframe = 1) 
	{_root.n1.play();}
	
	if (_root.n1._currentframe >= 36) 
	{_root.n1.gotoAndPlay(70-_root.n1._currentframe)}
	
	
	/*all other modules black up scaling*/
		if (_root.n2.scaling2.black2._currentframe = 1) 
	{_root.n2.scaling2.black2.play();}
	
	if (_root.n3.scaling3.black3._currentframe = 1) 
	{_root.n3.scaling3.black3.play();}
	
	if (_root.n4.scaling4.black4._currentframe = 1) 
	{_root.n4.scaling4.black4.play();}
	
		if (_root.n5.scaling5.black5._currentframe = 1) 
	{_root.n5.scaling5.black5.play();}
	
		if (_root.n6.scaling6.black6._currentframe = 1) 
	{_root.n6.scaling6.black6.play();}
	
	
	
	
	/*all other modules black up scaling*/
	if (_root.n2.scaling2.black2._currentframe >= 36) 
	{_root.n2.scaling2.black2.gotoAndPlay(70-_root.n2.scaling2.black2._currentframe)}
	
	if (_root.n3.scaling3.black3._currentframe >= 36) 
	{_root.n3.scaling3.black3.gotoAndPlay(70-_root.n3.scaling3.black3._currentframe)}
 
if (_root.n4.scaling4.black4._currentframe >= 36) 
	{_root.n4.scaling4.black4.gotoAndPlay(70-_root.n4.scaling4.black4._currentframe)}
	
	if (_root.n5.scaling5.black5._currentframe >= 36) 
	{_root.n5.scaling5.black5.gotoAndPlay(70-_root.n5.scaling5.black5._currentframe)}
	
	if (_root.n6.scaling6.black6._currentframe >= 36) 
	{_root.n6.scaling6.black6.gotoAndPlay(70-_root.n6.scaling6.black6._currentframe)}
	
	
;}
 
 
 
_root.n1.onRollOut = function () {
	
	/*this modules down scaling*/
	if (_root.n1._currentframe >= 2 && _root.n1._currentframe <= 36  ) 
	{_root.n1.gotoAndPlay(70-_root.n1._currentframe)}
	
	
	
	/*this modules green down scaling*/
	if (_root.n1.green1._currentframe >= 2 && _root.n1.green1._currentframe <= 36  ) 
	{_root.n1.green1.gotoAndPlay(70-_root.n1.green1._currentframe)}
	
	
	
	/*all other modules black down scaling*/
	if (_root.n2.scaling2.black2._currentframe >= 2 && _root.n2.scaling2.black2._currentframe <= 36  ) 
	{_root.n2.scaling2.black2.gotoAndPlay(70-_root.n2.scaling2.black2._currentframe)}
	
	if (_root.n3.scaling3.black3._currentframe >= 2 && _root.n3.scaling3.black3._currentframe <= 36  ) 
	{_root.n3.scaling3.black3.gotoAndPlay(70-_root.n3.scaling3.black3._currentframe)}
	
	if (_root.n4.scaling4.black4._currentframe >= 2 && _root.n4.scaling4.black4._currentframe <= 36  ) 
	{_root.n4.scaling4.black4.gotoAndPlay(70-_root.n4.scaling4.black4._currentframe)}
	
	if (_root.n5.scaling5.black5._currentframe >= 2 && _root.n5.scaling5.black5._currentframe <= 36  ) 
	{_root.n5.scaling5.black5.gotoAndPlay(70-_root.n5.scaling5.black5._currentframe)}
	
	if (_root.n6.scaling6.black6._currentframe >= 2 && _root.n6.scaling6.black6._currentframe <= 36  ) 
	{_root.n6.scaling6.black6.gotoAndPlay(70-_root.n6.scaling6.black6._currentframe)}
 
;}

Open in new window

0
 
sousflaiAuthor Commented:
I think I might need to add an event listener rather than using simple rollOver commends, Im not sure where to start with this, any help very gratefully received!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now