Simple Question (hopefully) "timed Exit"
Is there a simple script to 'auto quit' a Flash movie in a certain amount of time? Say 10-15 seconds? It's an ending scene to just give a summary of the whole movie and I want it to just stop (exit) automatically. Thanks a lot for your help.
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-18-2001, 11:42 AM
View Complete Forum Thread with Replies
Sponsored Links:
Simple (on Mouse Exit) Script Needed
I know very little of action scripting and need help. Is probably simple, just can't figure it out.
In FlashMX on the MAC (probably universal problem).
This will be used for a "menu that pulls down" and has buttons within it.
I'm trying to attach a script that while the cursor is within the menu area, does nothing, but when it exits the menu area, will "go to frame 1". I cannot use the standard "rollout" command because if you move the mouse too fast, it doesn't register the actual "roll-out". I need it to recognize that the mouse is not on the menu area anymore and perform the action.
In laymens terms,
While MouseWithin, Do Nothing,
If MouseNotWithin, goto frame1
Thanks alot for any input.
View Replies !
View Related
Possible To Exit Out Of Actionscript? - Similiar To PHP's Exit Function
Hi
Is it possible in actionscript to do something like this? I have a lot of functions in my project which display various screens of my project. At the start of each screen I run a function to check out certain things (EG is user banned etc etc). What I want to happen is if those actions are true then to jump to a another function, run it, and then stop all processing of any further scripts. EG Below:
function show_screen () {
_level0.check_settings();
Some more code under the show_screen fuction.
}
At the moment it runs through the check settings function and would then carry on with the rest of the code under the show_screen function. What I want to happen is the ability to exit out of processing anymore scripts should a condition = true in the check_settings() function. Something siliar to PHPs exit() function which stops all processing would be very handy.
Can anyone help?
Thanks.
View Replies !
View Related
Possible To Exit Out Of Actionscript? - Similiar To PHP's Exit Function
Hi
Is it possible in actionscript to do something like this? I have a lot of functions in my project which display various screens of my project. At the start of each screen I run a function to check out certain things (EG is user banned etc etc). What I want to happen is if those actions are true then to jump to a another function, run it, and then stop all processing of any further scripts. EG Below:
function show_screen () {
_level0.check_settings();
Some more code under the show_screen fuction.
}
At the moment it runs through the check settings function and would then carry on with the rest of the code under the show_screen function. What I want to happen is the ability to exit out of processing anymore scripts should a condition = true in the check_settings() function. Something siliar to PHPs exit() function which stops all processing would be very handy.
Can anyone help?
Thanks.
View Replies !
View Related
Timed Mc
Hello,
Is it possible to let a movieclip play together with the systems time ?
for ex. at 1 pm the mc is at keyframe 1, at 2 pm the mc is at keyframe 2 etc. ?
and if possible, how can i do that ?
View Replies !
View Related
Timed AS
Hi peeps quick question... prolly simple to answer but can't figure it out.
Lets say you have 30 seperate frames in your main timeline.
Each frame loads an outside .swf movie.
It running at 29fps.
I am looking for AS that allows me to syncronize and makes the frame stop for an exact minute and on to the next frame without any user interaction.
i tryed
time = new date();
min = time.getMinutes();
but im just a little confused on what to do next...
Thanks,
SightStorm
View Replies !
View Related
Timed
this was what I needed from palading,
but was trying to do compicated things, so in easier terms I want to say:
after 5 seconds
_root.var.text="Value"
thanks in advance
View Replies !
View Related
Timed Loop
hey guys, hope you can help ,me out with this one.
What I want to do is have a loop that will run every few seconds. I thought about using a simple while loop but that would do like 30 loops instantly, I also considered making a movie clip with 20 empty frames to represent a time gap between "plays" but that seems a little messy.
Ideally I need it to run every second (I know it will be more/less on different computers), I know it will be using the get timer (I assume) so any help would be great.
View Replies !
View Related
Timed Loop
Ok...here's what I've got. I have a 10 second .swf file that I generated in Wildfrom SWFX. I created an empty MC in my Flash file, and put the MC on frame 1. On frame 2, I inserted the loadMovie Script.
What I want to do is have the .swf sit there for about 60 seconds, and then re-animate. I've tried getTimer(), but with no success. I even tried doing a little
var i = 1, if i < 720, i++ (assuming 12 fps)
but that didn't work either.
I was able to make it work by going ALL the way out to frame 720, and inserting a gotoAndPlay(1) script, but this is only handy since I'm just looking for 60 seconds. If I was trying to do 5 or 10 minutes...I'd be screwed! Thank you in advance for your help. Peace to everyone.
View Replies !
View Related
Timed Action?
I've been looking around on Flashkit and I can't find my answer (maybe I've just overlooked it). I want to find a script that will not let an action take place until a given time and date. Anyone know where I can find that info? Any help would be greatly appreciated. Thanks!
View Replies !
View Related
Timed Out Function?
Does anyone know how to incorporate a time out function into my Flash MX CD-Rom, where if they don't navigate for awhile it bounces them back to the login page? Or if not in Flash then just HTML/javascript?
thanks in advance
Mike
View Replies !
View Related
Timed Events
I have searched everywhere in the literature but to no avail.
I want to do two things: Have a line of type appear for 'x' seconds and then pass to the next piece of type (Like an automated PowerPoint presentation); and I have a voice track running with bulleted type points appearing in sync with the voice. I wish to avoid mile long time lines. Is there a way to tell the bullets to appear according to time?
Thanks for your time and attention.
View Replies !
View Related
Timed Tween
is it possible to set a tween to last a certain time?
eg take 3secs to get from a > b? or if it was 2secs to get from a > b the tween would go a bit quicker. I can't figure how to link the time with the tween.
Thanks
View Replies !
View Related
Timed Tween
is it possible to set a tween to last a certain time?
eg take 3secs to get from a > b? or if it was 2secs to get from a > b the tween would go a bit quicker. I can't figure how to link the time with the tween.
Thanks
View Replies !
View Related
Timed Delay
Good day, I am trying to create a frame delay that will advance the play head after a set period of time. I would like to pause a frame with text and would like the control to be independant of the viewer. Thanx for the time!
modpod
View Replies !
View Related
Timed Movie
hi there
what brings me here this time is that i need to make load a movie whenever has passed x time of inactivity. So if a user has stopped using the mouse or whatever when playing the swf it loads a chosen movie.
thanks in advance, i know i can trust you to give light to my problem.
andré henriques
View Replies !
View Related
Timed Movie
hi there
what brings me here this time is that i need to make load a movie whenever has passed 30sec of inactivity. So if a user has stopped using the mouse or keyboard when playing the swf it loads a chosen movie.
I was told i needed to use getTimer and onClipEvent(mouseMove) but i don't know how i can do it. I tried but i wasn't able to put it to work. I'm a total newbie at actionScripting so if anyone could explain me better...
thanks in advance
andré henriques
View Replies !
View Related
Timed Delay...
i've got this situation where i need to delay the loading of an external .swf, by about 2 seconds, before it's starts to load into my movieclip holder.
you can see what i'm working on here : go
if you click on 'faq', and then click on 'tickets', you'll see that i have a background rectangle (grey) that shifts depending on what section you are on on the site. so, i'm wanting to attach some sort of delay to each button, so that it lets the rectangle finish shifting before it starts loading the external swf
i've tried just putting the preloader on frame 40 (a crappy way of getting the pause) but obviously flash is still preloading the external swf, and then when it pops up the prelaoder is half the way through it's cycle - messy!
all help appreciated.
paro
View Replies !
View Related
Timed Xml Menu
i got a dynamic yummy xml menu going but i want to time the rendering of each and every item in the list to appear a split second before one another.
atleast a few hints of the code required to do this? i know setinternval() or gettimer() has something to do with it but their conventions are so odd to me.
thanks.
here's the actionscript i got going that renders the xml menu items:
Code:
menuXML = new XML();
menuXML.ignoreWhite = true;
menuXML.onLoad = function(success) {
if (success) {
menuItem = this.firstChild.childNodes;
for (var i=0; i<menuItem.length; i++) {
item = _root.attachMovie("itemClip", "itemClip" + i, i);
item._x = 0;
item._y = 18*i;
item.itemLabel.text = menuItem[i].attributes.name;
item.myUrl = menuItem[i].attributes.url;
item.onRelease = function() {
getURL(this.myUrl, "_blank");
}
}
}
}
menuXML.load ("xmlmenu.xml");
View Replies !
View Related
Timed Segment
Hi
I was wondering if it was possible to have a script in my main movie that can call upon other swf's at certain times of the day.
I have a segment that runs all day and night but at 12 noon and 3 pm I would like the main movie to call upon a pre-determined clip.
Any help would be appreciated
James
View Replies !
View Related
Timed Stuff
i have this script for a shooting game
hp=50;
this.onEnterFrame = go = function() {
if (Key.isDown(Key.SPACE) and mouseOverEnemy) {
hp -= 1;
}
}
and that takes away hp i want kind of a wait after the hp is taken away so that it "shoots" every 3 seconds, instead of very rapidly
View Replies !
View Related
Timed Event
Hi,
I am haveing some trouble with using get timer to populate a textfield. Hopefully someone will see my what I am doing wrong...
Code:
_root.onLoad = function(){
chat[name].box.update("Double click anywhere to move me");
}
function Intro() {
introTime = getTimer();
if (introTime>3000) {
chat[name].box.update("This should be entry 1");
} else if (introTime>6000) {
chat[name].box.update("This should be entry 2");
}
}
The onLoad works but the "Intro" function does not. Is there a better way to set up a textfield to populate on a timed event?
Thanks
NTD
View Replies !
View Related
Timed Erase
Hi,
I have seen a couple of white boards that allow for multi user drawing features and that somehow use a timed function to slowly remove the individual user drawn lines. How is this done? I have a demo white board I am exploring, however, I can't seem to figure out an "erase" function.
Code:
function drawLines(name, lines, color, thickness) {
// Loop through all of the lines that another user sent to you
lines = lines.split("|");
for (var i = 0; i<lines.length; ++i) {
lines[i] = lines[i].split(",");
var temp = lines[i];
drawLine(name, temp, color, thickness);
}
}
function drawLine(name, pos, color, thickness) {
// Physically draw a line on the screen, whithin a specific user's movie clip
var x1 = pos[0];
var y1 = pos[1];
var x2 = pos[2];
var y2 = pos[3];
var clip = users[name].clip;
clip.lineStyle(thickness, color);
clip.moveTo(x1, y1);
clip.lineTo(x2, y2);
}
Then to handle the multi user part.....
Code:
var username = _parent.es.username;
function moveReceived(type, ob, from) {
// You just received a "move" from another person. A "move" in this case is data representing lines drawn
// The user that sent the lines
var user = users[from];
if (user instanceof Object == false) {
// If you have not yet added a movie clip to hold this user's lines, then add it
addUser(from);
}
if (from != username) {
// Create the lines on the screen, if it didn't come from you
var lines = ob.lines;
drawLines(from, lines, ob.color, ob.thickness);
}
}
function sendLines() {
if (myLines.length>0) {
// I'm doing a 'join' because the WDDX packet for the long array was completely enormous
var ob = new Object();
ob.lines = myLines.join("|");
ob.color = myColor;
ob.thickness = myThickness;
// This sends the ActionScript object 'ob' to everyone in the room.
_parent.es.sendMove("all", ob);
}
myLines = new Array();
}
I have tried using getTimer to remove individual lines and then update the erase with this...
_parent.es.sendMove("all", ob);
Basically, I have been trying to "remove" the line object. I would like to draw the line in reverse only erasing as I go instead of drawing.
Here is a demo....
http://ntdesigns.net/myWhiteboard.html
Any suggestions?
Thanks
NTD
View Replies !
View Related
Timed Animations
Is there a way in action script to load and play movies based on minutes, seconds or hours? I want different animations to load at different times - after 2 minutes, a ball bounces in screen, after 2.5 minutes the sun rolls over the scene. etc.
thanks,
powersolo
View Replies !
View Related
Timed Animations
How can I use actionscript to load movies on a time basis? - a ball rolls across the screen after 2 minutes, after 2.5 minutes a balloon floats up the side. etc.
thanks,
Powersolo
View Replies !
View Related
Timed Event
need a script that will execute a event when ever it reaches the specifiec Day, & Time. However it is a reacuring event every week at the same time.
View Replies !
View Related
Timed Actions?
OK i have this script to spawn my enemies:
Code:
//basic def
this.depth2 = 7;
rand = random(10)+3;
//i = random(6)+1;
this.onEnterFrame = function() {
if(rand <= _root.clock-_root.startTime) {
enemyName="oneEnemy"+String(this.depth2++);
this.attachMovie("applets", enemyName, this.depth2);
_root.startTime = _root.clock;
rand = random(10)+3;
}
}
it only spawns one and then stops. what's wrong with it?
View Replies !
View Related
Randomly Timed MC
How would I enable a MovieClip to play a certain animation at certain, maybe even, random time? In this case I have a cellphone that I wish to "ring" every minute or so. If I haev an animation that shows it ringing how can I tell the main time line to go to that ringing animation every couple of minutes...?
thanks for any help
View Replies !
View Related
Timed Unload
A simple question for you guys who know, but impossible for me to work out.
I have three seperate movies.movie1.swf
movie2.swf
movie3.swf
I want movie1.swf to load as the html page opens,
play for 30 secs,
unload and load movie2.swf
play for 30 secs,
unload and play movie3.swf
then this movie goes in to a continual loop.
It essential that know mouse clicks or interaction is needed as this must run seamlessly automaticly.
I hope this appeals to someone who can help me
Thanks
Duncan
View Replies !
View Related
Timed Pause?
Hi, it's been many times I want to find a better way to tdo this. I would like my animation to pause for a couple of seconds on a specific frame. So far I just put an empty movie clip on the stage witch trigger the play status of the main timeline at the end, but I'm sure there must be an easy way to do it with more style using actionscript...
Anyone could help me with this one?
Thanks!
View Replies !
View Related
Timed Action
Ok i have setup a MC with about 3 or 4 dif animations on it. after each animation is a stop. I want after 5 seconds or so for the animation to goto the next frame and so it i will start the next animation. Now i know i could put like 40 frames of nothing in between but i do not want to have to scroll forever on the time line to edit stuff. Now i know there is a way to action script it.. i just am informationaly impaired at the moment.
thanks.
View Replies !
View Related
Timed Actions.
I have a timed function in my movie and it works perfectly (the timing is correct) UNTIL I click on one of the various navigation buttons in the movie.
Here is a link to the movie --> http://www.bigdropnyc.com
Here is the code I'm using for the pause...
Code:
stop();
function letsWait() {
clearInterval(waitTime);
play();
}
//
waitTime = setInterval(letsWait, 4000);
Click one of the small square buttons or the forward, back, pause, play buttons on the bottom of the movie and you'll see what I mean.
Thanks in advance for your help and feedback!
View Replies !
View Related
Timed Rotation
I was wondering if anyone could direct me to a tutorial that would help. I am just learning flash but I'm in a bit of a pinch. I have to create an on-air rotator that changes a picture at a specific time. I was hoping someone could point me in the right direction. Thanks!
View Replies !
View Related
[F8] Timed Events?
hello, I'm wondering if there is a way to have something "gotoAndPlay(2);" after exactly 2 seconds in the time frame.
I'm thinking for sure it would have to star with
stop(); in my action frame (1)
I looked and searched and could find nothing. if this could be figured out. I'd love it. and if possible could it be broken down for millaseconds... just incase of future need for such a thing. greatly appriciated.
View Replies !
View Related
Timed Function
Hi I am not Flash expert and I need some help if somebody could.
I want my flash movie to go to the next frame automatically after 6 - 10 seconds lapsed. How can I do so. I tried a few scripts after googling it with the getTimer function but they seem to never work for me, I am using Flash CS3
thanks in advance!
View Replies !
View Related
Timed Events
Hello,
I'm creating a presentation that will run from start to finish and I want to create the tempo by having long pauses after each event and was wondering what the best method would be to do this? I don't want to just create a bunch of empty keyframes to make time.
View Replies !
View Related
XML And Timed Calls
Hi,
I have a few questions regarding Actionscript as im just starting to learn it. I have been programming in Java and php for about 3 years to give you an idea where im at.
From what i have gleaned so far there is no User done Threading in flash is this correct ?
I wish to make an XML call every few seconds (between every 2sec - 8sec). To get updated data.
I tried to use a while (true) loop but it just warned me that it was killin the system as there seems to be no Sleep/Pause function.
What are the methods to get around this? All i need is to every few seconds to recall this XML file so that i can update the GUI/Movie.
Many Thanks,
Richard
View Replies !
View Related
Timed 'for' Loop?
I have a for loop which loops through an array and attaches movieclips. I don't want to have the clips attached all at once. Is there a way to stagger the for loop?
Code:
for (var i = 0; i < levelCount; i++)
{
newLevel = this.attachMovie("level", "newLevel" + i, index++);
}
View Replies !
View Related
Timed Loading
What and how would be the best method of loading or triggering movie clips to load and play. I want to do be able to do this based on a set time style function where after say 10seconds has elapsed a movieclip will play, then after a further 10 seconds another will play.
Any help would be greatly appreciated.
Regards
Tim
View Replies !
View Related
A Timed Script?
Hello.
I am trying to create a script that waits a certain amount of time then goes and plays the next frame.
Im using a frame for the destination script.
So in pseudo it would be like this:
=======
stop at this frame and wait for 2 seconds then go to and play this frame
=======
I just dont know what the syntax would be. Im an artist not a programmer so any help would be much appreciated.
Thank you very much.
View Replies !
View Related
|