ActionScript 2.0 :: Reset/Stop All Activity?
Jan 14, 2006
I have created an application in Flash and in the first frame u enter a number of parameters for the application. Then you press start and it continuose to the second frame. Here is all my code and mc.
Now I have created a RESET button and when it is pressed. I want all the functions, variables to be deleted i.e. nothing should happen.'
My first attempt was to just tell the main timeline to go to frame 1 (which is empty, only the textboxes with the param. are there), and i thought that all running functions from frame 2 would just stop. But they dont.
So how can i stop/reset all activity, cause i dont want to close the app. each time i would like to enter new values?
View 3 Replies
Similar Posts:
Aug 14, 2009
im making an image recignition app. for a kiosk and im trying to figure out a way to make the movie start over if it hasnt been touched after a certain amount of time. i tried to use a timer class but it doesnt seem to be working the way i want it to.
View 1 Replies
Jan 20, 2010
I am new to flash and I'm trying to do a button. This button should play a short video clip when I would go mouse over it. On Mouse Out, the video should stop and reset.
View 5 Replies
Jan 22, 2011
have been looking for the right solution to my little problem and not found anything that works with my project.I have a fully functional mp3 player built in flash cs5 with AS3 and I would love to make the stop button reset the song to the beginning instead of pausing it like it is doing at the moment.. My code for the whole app is as follows :
/////////////////////////
/////// CODE FOR FRAME 1
/////////////////////////
[code].....
View 1 Replies
May 16, 2011
I'm trying to create a simple disappearing action when a WheelParticle hits a special disappearing CircleParticle. Normally the WheelPartical bounces off of a bunch of other CircleParticles, but when the WheelParitcal collides with this CircleParticle, the action Pauses, an animation plays, and when the action resumes, many surrounding circle particles have dissappeared.
The problem is that the WheelParticle needs to just drop from a complete stop, but it continues as if having just bounced off of the, now non-existant CircleParticle.
I'm having trouble clearing out the forces. I've tried init(), addForce() and changing .velocity amoung other things, but it keeps wanting to continue the lateral bouncing movement. I'm using the latest trunk version of APE in order to capture Collision events for sound.
[Code]...
View 1 Replies
Jul 13, 2010
Just new in forum and just new in as3 programming. All i want to do is to make some physics simulations (i'm physics teacher...). So i made my first sim with the following code, just to simulate a simple motion with constant velocity. It works ok, except the part i need to reset the display by the means to start the motion all over again (reset button). Then the motion starts but the traces of the previous motion remains on stage. I tried the null command (sp=null) but the sim could not start again because the sp nedded to be non-null...
[CODE]...
View 2 Replies
Apr 13, 2011
I have an issue with adding a reset button to my drag and drop movie clips.The problem is, if a student drags a movie clip to a wrong location on the SWF file I want them to be able to hit a reset button that would take them the same SWF that they opened and what would showup would a clear page for them to restart their drag and drop exercise.I know how to make the button for this just want the proper action script to be able for user to start over with no movie clip symbols on the page.
View 3 Replies
Aug 27, 2008
What is the difference between Timer.stop() and Timer.reset() functions because it seems that the 2 functions do the same thing? I image Timer.stop() to stop the timer and when Timer.start() is called the timer starts from where it stopped. For example, if I have a 3 sec. timer (3000 ms). If I stop the timer after 2.5 sec. and start the timer again, I would expect the timer to expire/trip within .5 sec.
View 1 Replies
Dec 28, 2010
reset in google yields only its use for timers.However I have code bg.reset() which I suppose puts the background back to the beginning of its timeline.
View 3 Replies
Jan 14, 2010
Anyone know of any code I can add to my project to keep a log of how many times a button is pressed? Ideally it would write to the disk with date/time stamp.
View 1 Replies
May 29, 2010
Why setloopback needs to be set to true for microphone activity to be detected. The problem is the echo feedback when using a macbook with a built in mic. Right now I'm experimenting with toggling gain, depending on activity to simulate echo reduction. Not optimal though.
View 1 Replies
Mar 6, 2012
Is there a way within ActionScript 3.0 to:
Get all URLRequests() that are made within the application?
Get all RTMP:// connections to a Flash Media server?
Since my application contains SWC files which were compiled by another developer, I cannot directly access the ActionScript which creates the URL requests and RTMP connections.
View 1 Replies
Mar 13, 2010
I have a flash project on the solar system. I created a drag and drop activity, dropping pictures near in the correct place/next to the correct name.
Everything is working perfectly but when I return to the home scene, the pictures are still being displayed from the acitivity even though they are on a different scene... they go away if I navigate through to different places.
View 1 Replies
May 6, 2003
I have a very large projector movie with many loaded in swf files. I want to make it so as you are reading and viewing the whole movie the screensaver is not active. I then want it so after 10 minutes of no activity a screensaver (or movieclip in the movie) starts playing and then goes away when there is activity again. How do I do this? What would be the best way... just have the screensaver (movieclip) the only thing in the first scene and it just goes to this after 10 minutes?
View 18 Replies
Mar 18, 2011
I have a problem with using the webcam in flash. Most of the times it works fine but sometimes the wecampicture is not updated and is outputs a constant activity level of 100%.
View 3 Replies
May 23, 2010
I have to detect avtivityLevel of microphone in Flex. I am using the activityLevel property of Microphone class but as I found out it always return -1 even if I have done Microphone.getMicrophone(). To detect activity level we have to set microphone.setLoopback = true;
how to do this without using loop back as I do not want to hear my sound back just monitor the activity level
View 1 Replies
Apr 7, 2011
i am trying to detect the microphone activity level. In windows XP, it's returing the activity level. But in windows vista, even if the mic is not connected it's returning an activity level. has anyone come across like this.what is the problem?
View 1 Replies
Apr 22, 2009
i attached my fla file and the sample activity image.so before i create like this activity i try basics of this activity.so i got proplem.there are lot of line drawing
View 1 Replies
Jun 15, 2004
As I have done all my work for the week already I have been given the basically pointless takes of creating generic functions, classes and maybe components for a number of possible e-learning interactions for the projects we have, things such as sliders, drag and drops, multiple choice questions, scenario driven things and so on. How would I go about making things like this generic? The graphics will always be different and more then likely so will the kind of things needed from them, in many cases we don't know the capacity these things will be used in!
View 2 Replies
May 13, 2009
I have a set of 5 button that change their opacity when clicked to a lower opacity. What I need to add is the ability to "toggle" the button to go back and forth from 100% opacity to 20% or whatever and then back to 100%. I would also like to add the ability to fade the opacity instead of it changing all at once. Her is the code as I have it so far.
Code:
ClickMe.addEventListener(MouseEvent.CLICK,f);
ClickMe.buttonMode = true;
[code].....
View 7 Replies
Nov 25, 2009
With out getting into a ton of background I am wondering if there is a command that will reset all the variables in a swf at once with out having to do them individually?
I've googled and searched my books and can't find anything. Another option I could see is having the current flash reload, that would set everything back to the start but I couldn't find how to do that either.
Anyone know?
View 2 Replies
Apr 5, 2009
Iam having 3 buttons in stage and three corresponding movieclips. When I clicked on one button, it should play its corresponding movieclip from the second frame. (Same case for the rest of the buttons).Here the action for the three buttons are almost same, only the movieclip differs. In AS2, I can optimize the script for the above activity as below
for (var i = 1; i<=3; i++) {
_root["btn_"+i].onRelease = function() {
myname = this._name.split("_")[1];[code]..........
My Question is ===>is there any way to add the Event listeners for all the 3 buttons using "for loop" instead of initializing it for each buttons seperately ? [Imagine if we have more than 10 buttons and it will be very boring to add the listener for each button in a seperate line ].
View 2 Replies
May 26, 2010
Take a look at [URL] I have made a preloader for a site but the tween dosnt seem to be working properly. Stop the page from loading as soon as you see the preloader. You'll notice that the preloader circle appears to shimmer, i have no idea why. its basically a photoshop psd file that i have dropped to the stage as a graphic and then done a motion tween to make it rotate across 24 frames. I have set the html page to show the flash at 'best' quality and tried it on a black background to see if it was an optical effect, but its always the same.
View 1 Replies
Aug 29, 2010
I've put together a little flash activity for my educational website, and although it works perfectly on my PC (I also zipped it up and passed it onto my laptop, where it also works perfectly), when I try to open it after uploading it to the website, all it shows is the background.
[URL]
To download the ZIP file I passed onto my laptop: [URL]
View 5 Replies
Dec 27, 2010
Any microphone action script code which indicates a progress bar when there is activity on microphone
View 1 Replies
May 30, 2011
I was looking this new game ([URL]) that uses the iPhone as a control pad for a flash game in your computer browser. I tried to monitor the HTTP activity of the browser but it doesn't seem to be using the HTTP protocol. Do you know how does this works? It's sockets programming? Can the flash movie become a socket server?
View 1 Replies
Dec 4, 2009
I have SWF application that contains some video windows and a chat window. Do you know any opportunities to save all contents of an application into video file (may be flv)? In other words i need to record all activity in program into video file. I need to do this in AS code.
View 2 Replies
Jun 10, 2009
I have an invisible movieclip over some buttons/images. I have it so that on mouse over that invisible button the images start panning from one to the next. The thing is that these images/buttons are supposed to be clickable, but with the invisible movieclip on top I just can't do that. Is there a way to force mouse activity on the buttons/images?
I've tried simply adding a movieclip to the back of the buttons/images and make the MOUSE_OVER listener on the whole movieclip that holds all the images but for some reason whenever the mouse goes from one image to the next it pauses the movement and then continues it, which looks like it identifies different movieclips (images/buttons AND the mc in the back) and re-does the MOUSE_OVER listener for each of them instead of the whole movieclip that holds all of them.
View 2 Replies
Mar 19, 2009
I have created an activity in which the user is invited to click on some buttons. There are approx 60 buttons to choose from with 7 of them being the correct ones. If the user clicks on 1 of the incorrect 53 buttons i want a hint pop up to appear to steer them in the right direction. Is there a efficient way of doing this without having to create a function and apply it to all the incorrect buttons? Perhaps an event listener? (AS2).
View 1 Replies
Jun 11, 2009
I have an invisible movieclip over some buttons/images. I have it so that on mouse over that invisible button the images start panning from one to the next. The thing is that these images/buttons are supposed to be clickable, but with the invisible movieclip on top I just can't do that. Is there a way to force mouse activity on the buttons/images?
I've tried simply adding a movieclip to the back of the buttons/images and make the MOUSE_OVER listener on the whole movieclip that holds all the images but for some reason whenever the mouse goes from one image to the next it pauses the movement and then continues it, which looks like it identifies different movieclips (images/buttons AND the mc in the back) and re-does the MOUSE_OVER listener for each of them instead of the whole movieclip that holds all of them..
View 3 Replies