writing actionscript to use flash movie as a screensaver

  • cherie
  • Born
  • Born
  • No Avatar
  • Joined: Mar 27, 2004
  • Posts: 1
  • Status: Offline

Post March 27th, 2004, 4:24 pm

I have created a simple animation in Flash and want to use it as a screensaver on the computer. I want to write the code in flash actionscript so, when the mouse is idle for a certain amount of time, the  animation begins. When the mouse is moved, the animation closes - Just like how a screensaver behaves.
Could you please help.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 27th, 2004, 4:24 pm

  • stinger
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jan 22, 2004
  • Posts: 157
  • Loc: San Jose, CA
  • Status: Offline

Post March 27th, 2004, 6:25 pm

use a movie clip with 2 frames

frame 1 will set the mouse position.

frame 2 will verify if mouse has moved.

using if statement see if the position has changed. If not, add to the counter. When the counter reaches 20, play your movie.
If the position changes before playing, then, reset counter to zero.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post March 27th, 2004, 9:20 pm

What you are asking for is more advanced than it sounds like it should be... so I hope you understand ActionScript at least a little ;)

http://www.kirupaforum.com/forums/showt ... adid=32884

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 45 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.