i made two buttons, first called buttonA and the second buttonB.each button will run a movieclip when it's clicked now, the first time when i try it it works wonderfull, then when i keep clicking it, the scrips repeats causing the moviclips to pause or run again, the more i click the more it repeats ,
By the way I'm still really new to Flash and AS3.I'm writing this quiz that gets questions and answers from an xml file in the same directory and displays the question in a TextArea, the available answers in a list, and additional text in another text area.Most of it was working the way I wanted and I noticed the apostrophes weren't coming through the XML so I thought I'd try escaping it with a not thinking. I did a publish preview and saw that my list loop became infinite populating my answer list. I took the out and still had the same problem. I backed out as far as I could in the AS3 and couldn't find anything that would cause it to continually loop like that. I traced a statement at the beginning of the script and realized it was actually looping the whole app not just an event or function. I'll reply back with the code.
Is something wrong in this syntax? I'm getting only the first record and it keeps on repeating. When the php file is being tested in the borwser, it shows its data correctly in this format. AA,,BB,,CC,,DD,,
I have a website with a mc inside a mc. The nested clip keeps repeating , I want the nested clip to run 1 time. I have stop actions on each clip, it delays, but won't stop repeating.
I have a simple mp3 player, with PLAY PAUSE PREVIOUS and NEXT buttons. the problem i have is if you click the play button more than once, the mp3 clip will start to play itself as many times as you clicked. this sounds really bad..u could have the clip playing over itself 5 times.
Code: if(play button is clicked ONCE){ (deactivate play button until next song); }
in other words, only one PLAY-button-CLICK allowed per song...
I am dynamically playing a video.flv file on the stage when a button is clicked. It plays fine but continuously repeats itself. I want it to play once and the disappear.
So, I downloaded a simple sound loop from Flash Kit.
I am building a Flash webiste and want the sound to loop once the movie loads. I have added a stop and play button to the movie in case the viewer doesn't want the sound on. I understand sound can be annoying.
I add the following code to the FRAME 1 of the movie. Everything works fine but when the loop finishes, it just stops. How do I get it to continue looping? Also, as I navigate to other sections of the movie.. I want it to continue playing and not restart when I go back to say "Home". Home starts at frame 1 as well.[code]...
I'm just starting to learn to make my own functions and was trying to make a walk sequence. My original program used an elaborate series of counters and onEnterframe, but I want to take a different route (basically starting from scratch) because my walk sequences always turned the avatars into picasso paintings when two or more keys were pressed simultaneously. I'm more familiar now with set and clear timeout, but what do I do if I want a specific sequence to count up, then down, or rotate back and forth, like the pendulum of a clock? starting with a basic function like function walk(bodypart){bodypart._rotation += 45;}. if (keyUsed == 68){walk(square_mc);} what do I have to change so the square rotates back and forth +/- 45 degrees while depressed?
On the stage of a flash app I have several movieclips that keep repeating. Now I need a movieclip that doesn't repeat. It should play once, and then keep its last state on stage. I can't find out how to stop this movieclip from repeating.
I built a Flash clock. The Clock working! Visible working! Sound working! BUT the sound seems to be plays EVERY frame instead of just the very first frame one time. Stops great but multiple songs seems to be playing. Is it my ENTER_FRAME code causing the problem? If so, what should that line read?[code]...
When i play it it autoplays (that's fine) but it also keeps repeating over and over, i'd like it to stop at the end and just display the end frame (as mentioned i converted a movie so i cant do it with actionscript in the .fla file).
The problem I am having is that once I click back button on my scene to go back to home page, the animation of papervision3d kick-starts on top of already existing papervision3d animation. It doubles each time.
Is there a way to remove it? something like removeChild(); or it's nothing similar to that?
I have a .fla that plays music until a certain text object (start_course_txt_mc) is visible. Then I want the music to stop and the narration to begin. I can get all that to happen. The problem is that the narration keeps playing over and over, but it is only playing about 3-4 seconds of an audio file that is about 30 seconds long.
function unBlur() { var my_bf:BlurFilter = new BlurFilter(0,0,1);
I've got a class that "Spawns" enemies to the display based on a timer. So if the timer is 3 seconds, such and such happens. The problem is that the function is firing the ENTIRE time the Timer says 3 seconds, instead of just once and for some reason I can't wrap my head around how to limit it to just going once. Logic Statements aren't showing to be my strong point.[code]Anything other than that shouldn't be relevant, the spawnZeroFormations() seems to be working perfectly. it's just being called far to often. The thing is it WAS working but then I rearranged code and deleted something and can't remember what it was.I tried wrapping the switch in a For loop, but it doesn't seem to do anything which is confusing in itself; but again Logic statements aren't showing to be my strong point.
point me in the right direction for creating a thumbnail slider which repeats itself when it reaches the end, rather than just reaching the end and stopping? For example: http:[url]....I take it you would just duplicate the entire thumb container when it got close to the end? Would this not buckle up the function which is sliding the container as this is probably base on the containers width? Or would you treat each thumbnail as a seperate element and move them individually?
I'm creating a flash game in which you are a UFO flying over a group of cows and you have to abduct them. It's a top view game so I have the grass moving from top to bottom and I have a movie with 5 cows and theres a controller in the _root movie that creates a random variable:
_root.cows = random(5);
Now everytime the controller movie gets to a certain frame, that frame tells the cow movie to play a certain cow (Moving from top to bottom) based on the current variable. What's happening is when there is a repeat, the cow disapears and jumps back to the top. Seeing how there's only 5 cows you can tell this happens a lot.Now I've researched this a bit and found that I can create an array of random numbers and splice each one as I've used it. I've tried this, copied different codes and I can't get it to work.
I have an animation that runs into 100 frames. How can I make the animation that occurs after 45 th frame repeat itself rather than going back to first frame in a continuous loop playback?
I am going to make a quiz. It loads questions from an XML. I want to load random questions from the file without repetition. How can I achieve that? Can you give me the script for generating non-repeating random numbers.
how do i stop an animation from repeating once it has finished executed.
What i had wanted to do: was to play an animation once when the player has been hitted by a rock and increased an animation counter. So after say, the counter has reach 2, the animation will stop. But when i tested it out, the counter only execute once yet the animation just keeps on playing.
Code: var j:int = rockArmy.length - 1; var rock:Rock; while ( j > -1 )
How can I keep repeating my functions below endlessly? I am Using the enterframe and timer class.I want my object to keep going across the stage over and over.Do I need a for loop?[code]...
rotating and moving along y axis... its position in the stage is x = 120 and y = 20 base on its properties.. but when i test it, tracing(_y) shows dat d first value comes 42.85 and not 20(value from the properties).. i dont know how to get its exact value just like what is seen from the properties.. i've tried to have an if statement that if the value of _y = to the y coordinate the blade position will alter its movement(at first its _y -= 2; going down movement, id like it to alter its movement when _y turns = 90), it never turns like i want. here is my facebook email add(URL)
I'm using the following code below, and basically I've got 4 containers which all load a random image from a folder. The problem is there are often double ups with the containers. How can I adjust the code below to ensure each container loads an image that isn't already in any of the other containers?
I've been trying all morning to figure this out but I'm really not the best when it comes to actionscript. I've looked around and I just simply don't have a clue how to adopt other code to fit my own .I have the following code
Code: function reActivateTopMenu() { _root.top_nav.btn1.gotoAndStop(1); _root.top_nav.btn1.enabled = true;[code]....
I just can't figure out the exact way of writing the code in "flash" talk and not "dave" talk!
I'm making a website at the moment which will all be done in flash (currently 1000px wide x 450px height) - what i want is a background which is consume the entire width of the page regardless of what the users screen resolution is, im not sure if this is a html/css thing or a flash thing.
I have several objects in a separate movie and want to perform a hitTest with them and my other object 'knexman' which is noted below in the script. Basically what's happening is that when I trace the output of the hitTest, it increments about 5 or 6 at a time with each enemy collision running into the knexman object. All I want to do is when objects run into the 'knexman', to increment and trace it by one. Once I get it to increment by one I can accurately conditionalize how many lives are left etc.