View Full Version : How to end all movie clips in Flash MX
Gosia
May 5th, 2004, 01:57 PM
I am a novice to Flash Mx. I am currently working on an interactive project using flash mx and some action script. I have several questions:
How to add a timer in to a movie?
How to control (change content of input boxes)?
How to design a button which would exit the program (movie all together)?
HELP
Gosia
mlk
May 5th, 2004, 03:07 PM
welcome to the forums, Gosia
a) Timer: check your flash help on the getTimer function...
b) I think you assign a variable to the textbox, like theTextBoxValue and then on a button action or any event script something like theTextBoxValue = "Some Text" and it will display 'Some Text' in the text box
c) This only works in standalone player (ie you can't 'exit' a normal flash page, only close its window)
on(press,release){
fscommand("quit","");
}
Gosia
May 9th, 2004, 06:19 PM
Thanks,
I managed to control the text in the text box and exit the movie fine. I am still struggling with the get Timer. I need the timer to be set at the beginning of the movie and after say 1 min a message would pop out saying “You have been using this program for 1 minute".
Any other suggestions?
Gosia
scotty
May 10th, 2004, 02:38 AM
stop();
startTime = getTimer();
this.onEnterFrame = function() {
nowTime = getTimer();
if (nowTime-startTime>60000) {
timeBox.text = "You have been using this program for 1 minute";
delete this.onEnterFrame;
}
};
where "timeBox" is the instancename of your textfield.
scotty(-:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.