Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-17-2012, 07:34 PM   #1
DarthTerryble
Registered User
 
Join Date: Aug 2012
Posts: 1
Default Touchscreen Kiosk needs to goto frame1 when inactive for 60 seconds

Full Disclosure:
#1 -I searched the forums as best I could, googled the interwebs as well.
#2 -I am looking for someone else to solve my problem rather than learn how to code it myself. I think I have reached my scripting limits.

I have been tasked by a large evil corporation to create an interactive touchscreen kiosk for my facility because I am the "tech guy." Which is corporate speak for I put gel in my hair and poof it up. I have somehow managed to cobble together a flash file that makes the powers-that-be happy except for one thing:
When users walk away from it, they would like it to goto frame1 after it being inactive for 60 seconds. At frame1 it will play a 60 frame animation and then loop over and over, kinda a hack version of a screensaver. Their request is reasonable to be sure, but one that I have been unable to fulfill so far.

Can anybody help? (By help I mean paste in the exact code that I need so that I have to literally contribute nothing)
By doing so you will help an underling rightfully return to working on his actual job instead of cursing at his computer/the interwebs mercifully for hours on end.

So far I have figured out that I need to have a movieclip sitting in the background and attach the code to it. The closest I have come to achieving this is the following: (which i found in one of your forums)

onClipEvent (load) {
var startTime = getTimer();
}
onClipEvent (mouseMove) {
var endTime = getTimer();
_root.result = endTime;
}
onClipEvent (enterFrame) {
if (endTime != null) {
elapsedTime = endTime-startTime;
secPassed = elapsedTime/1000;
if (secPassed>=60) {
_root.gotoAndPlay(1);
startTime = getTimer();
}
}
}

But... this seems to only gotoframe1 when the mouse is moved after a period of time. I need it to gotoframe1 when the mouse isn't moved after a period of time.

Thanks so much for any help and/or snarky comments that otherwise brighten my day

TJ
DarthTerryble is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:49 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.