File[please respond.swf] - (99 KB)
[_] [?] actionscript to refresh a swf object every 10 minutes? Anonymous 05/25/12(Fri)00:56
No.1684454
actionscript to refresh a swf object every 10 minutes?
not an expert on this and dont know what i'm doing.
please help, anyone.
Marked for deletion (old).
>> [_] Anonymous 05/25/12(Fri)01:27 No.1684482
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/Timer.html
>> [_] Anonymous 05/25/12(Fri)01:36 No.1684495
>>1684482
thanks but really dont know what i'm doing in flash.
is there a working example script for copy pasta?
>> [_] Anonymous 05/25/12(Fri)01:40 No.1684496
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/Timer
.html#includeExa
mplesSummary
>> [_] Anonymous 05/25/12(Fri)01:50 No.1684501
>>1684496
i dont know how to make the script
>> [_] Anonymous 05/25/12(Fri)03:42 No.1684558
Where have I heard this music before?
>> [_] Anonymous 05/25/12(Fri)03:50 No.1684561
>>1684558
stretch the window to see.
from the /f/ flash tutorial.
>> [_] Anonymous 05/25/12(Fri)05:11 No.1684580
By refresh, you mean just start it over?
Using their example you probably want something like...
package {
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.display.Sprite;
public class TimerExample extends Sprite {
public function TimerExample() {
var myTimer:Timer = new Timer(600000, 0);
myTimer.addEventListener("timer", timerHandler);
myTimer.start();
}
public function timerHandler(event:TimerEvent):void {
goToAndPlay(1);
}
}
}
But I haven't so much as licked actionscript in something like 10 years.
>> [_] Anonymous 05/25/12(Fri)06:31 No.1684595
>>1684580
might be actionscript2 then but thank you.
got help from youtube videos and chat rooms.
http://pastebin.com/ivHNRmPs
myVideo.isLive = true;
stop();
var videoTimer:Timer = new Timer (600000, 0);
videoTimer.addEventListener(TimerEvent.TIMER, sync);
//sync fucntion to myVideo movie
function sync(event:TimerEvent):void
{
trace("timer triggered");
myVideo.stop(); // tells video to stop
myVideo.play(); // tells video to play
}
// tell the timer to start
videoTimer.start();
forums are completely dead and absolutely useless.
youtube videos suck too but a little more helpful.
chats will help if you attempt a script and its broke.
was expecting 0 replies....
everyone thank you very much!!