ActionScript 2.0 :: Click The Start Button, How Do I Randomise The Question?
Apr 17, 2007
when i click the start button, how do i randomise the question. it will come to a stop at the random question. Once question display will b4, should not display anymore..
View 2 Replies
Similar Posts:
May 13, 2009
I have used the actions panel to write a stop code on frame one of my timeline.When I test my movie it stays on the home page, which is good! I have also created an 'enter site' button on the home page. I want to click this button and have the timeline start rolling over to frame 50 (where my next label 'contents' will be). At frame 50 I want it to stop, and so on for all of my labels/pages. The action taking place on the timeline is a pan across a panoramic photograph, which will stop at different points.
View 7 Replies
Apr 30, 2009
I want that when someone clicks on the button, my movie will start downloading instead of showing. (meaning, you can either save or open the file). Like downloading a clip from the web.
View 5 Replies
Mar 12, 2010
In my scene, I have five buttons and each one will start a movie clip within the scene.o, I have only one frame for the entire scene( but four layers: button,background(with music), action and my last one is animation.Each time a click a button( with onPress or onRelease actionscript 2.0.), a movie clip starts(that's ok..)But, when I click an another button, I want the previous movieclip to stop and disappear. In my case, the new movieclip starts but over the last one who is still there.Furthermore, when I want to click on a button that had already been pressed, I want him to start over his movieclip. For now, I need to press it once again to cancel his movieclip and then press it again to start his clip.In resumé, all I want is that each time I press a button, the last movie clip disappear because the new one starts and an already been pushed button, when pushed again, starts his movie clip without the need of pushing it to cancel his first operation and then pushed it again.
View 5 Replies
May 7, 2010
I wrote the following code to have flash stop on frame 1 and wait for the click on the start button. I will use the animation in Connect Pro and without a Start button, the audio starts before the video. Here is the code and following is the error I get in the Compiler when I play the animation. The button does have the instance name play_btn :
play_btn.addEventListener(MouseEvent.CLICK, buttonClicked);
function buttonClicked(event:MouseEvent):void {
gotoAndPlay(2);
} stop();
The error I get is:
Location: Scene=Scene1, layer=actions, frame=1, line 3
Description: The class or interface 'MouseEvent' could not be loaded.
Source: Function buttonClicked(event:MouseEvent);void
View 3 Replies
Oct 27, 2011
its for a photo gallery that I downlowded,the images fades in and out, but only start that when you click a button(timer).I'm trying to founf out where in the script I can change this, so that the photo's start automatically,rather than, on a button click.I have pasted the script below, is that ok, or would people rather a zip file of the files?
// (c) Copyright by Andrew DiFiore. All rights reserved. DO NOT REMOVE.
fscommand("allowscale", "false");
Stage.scaleMode = "noScale";[code]......
View 4 Replies
Apr 24, 2011
I'm trying to broaden my horizons with it and so I'm trying to do an update of a quiz program my employer has. Everything has worked well, except for the timer. The button that starts the game has two options, "study" or "exam"; if the study is selected, there is no countdown, just the score keeper. If the exam option is selected, the timer is show (counting up). But, press "Start" and while the quiz begins, the timer, in either case, does not.
I'm going to post the actionscript for the timer that was already there, as well as the start button. I'm hoping someone can explain how this timer is supposed to work and why it's not; and where the disconnect lies in pressing the start button and making it run.The timer is embedded in a movie clip, with two dynamic text boxes, that are for some have no instance name; and actionscript spread out over several frames.Frame 1:
Minutes = "00";
Seconds = "00";
Centiseconds = "00";
[code]....
View 8 Replies
Nov 19, 2011
Here is the action scrip that I created. Correct it if you can.
Process.visible = false;
Cycles.visible = false;
stop();
[Code]....
View 3 Replies
Apr 19, 2007
How do i randomise and come to a stop at the random selected circle.URL...
View 4 Replies
May 12, 2010
Lets say i have a button on frame 1. And if you press it normal, you ll get to frame 2. But then if you click it on another way, you ll get to frame 3. How do i do that easy?! With another way i mean like shift click or ctrl click or is it an easier way?
View 3 Replies
Dec 22, 2006
Is it possible to make a MC in flash and then randomise where it appears within the movie?
View 7 Replies
Jun 11, 2010
I want 3 movieclips to change positions (swap places) on the stage randomly when I push a button and make sure they are always in different positions, so they don't randomise the same way.
cat, dog, fish
position_a,position_b,position_c
position_b,position_c,position_a
position_c,position_a,position_b
then loop and randomize the position they popup in again. So I can just keep on clicking the screen and they always change.
xxxa
xxbx
cxxx
I will have the 3 movie clips on the stage with instance names.
position_a
position_b
position_c
[code]....
View 9 Replies
Dec 9, 2008
I have a tricky problem. I've been working on a flash quiz that uses a xml file to generate questions in a random order. Got that working fine. The Fla parses open the file and loads the nodes into dynamic text boxes.
[Code]...
View 1 Replies
Aug 13, 2009
I am looking for real simple scripting - I have a 15-25 frame flash tweened animation and all I would like to do is run thru the animation once then on mouse click go to frame one and start again. And of course I am under a time crunch and completely fogged with actionscript 3.0. I did some basic projects back in the director days and thought I could just pick up where I left off. If I remember right it was simple scripting like
gotoFrame
and
pause
etc...
View 3 Replies
Oct 17, 2009
I'm having a problem with a small animation for a form I'm creating in flash. Basically I want the motion to happen when I click it, and then stop where its told to. It plays and stops just fine, however I cannot figure out how to make it wait for the click to play. This is the current code I have[code]...
View 3 Replies
Dec 15, 2011
I'm currently recording sound and storing the byte array for playback and subsequent encoding to mp3.
Unfortunately though I am getting a click sound at the very beginning of the recording.
I have attempted a couple of methods to try to eliminate this such as:
recording the first .3 seconds with mic.gain = 0; then setting mic.gain = 50; clearing the byteArray after the first .3 seconds then continuing to write the bytearray (in effect deleting the first .3 seconds of the recording.)
Neither of those methods has stopped the click being added.
how I can prevent the click from being added?
Here is my recording/storing code:
public var mic:Microphone = Microphone.getMicrophone();
public var micSilence:uint;
private var soundBytes:ByteArray = new ByteArray();
private var soundBA:ByteArray = new ByteArray();
[Code].....
View 1 Replies
May 5, 2010
i have a plane with movie material on it, im trying to make when i click on that plane. im trying to make if i click on that plain and material is playing that stop play and if is not playing that srarts.may plane is named 'film' and material on it 'movieAssetMaterial2', can someone explain me how to do it? i have tryed to make it myself but cant find out how.[code]
View 1 Replies
May 5, 2010
i have a plane with movie material on it(im using papervision), im trying to make when i click on that plane. im trying to make if i click on that plain and material is playing that stop play and if is not playing that srarts.
may plane is named 'film' and material on it 'movieAssetMaterial2'
here is the code( it is the whole code of cubic panorama that im vorking on)
Code:
package {
import flash.display.*;
import flash.events.*;
import flash.ui.Keyboard;
[Code]....
View 1 Replies
Jun 15, 2011
What I want is use a one page website like this:Unfortunately I have to have 50 posts first to place a link But on the website of project seven you can see the template named "Mercury" .And place 5 swf players on 5 different locations.Then when I click a menu button to go to an other location on the one page web site, I want to let the swf stop on the page where I am at that moment, and the swf on the location where the link leads to to start.
View 6 Replies
Sep 16, 2009
I followed the tutorial about making your own mp3player but I don't want the music to start directly I want it to start after I clicked on play ...
Code:
// Setup sound object
var s:Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(75);
[Code] .....
View 0 Replies
Aug 23, 2011
i know this is a problem allread often talked about, but i cant solve it.i want to start and stop a sound with a mouseclick event.the problem seems to be that the click event is never triggered. can anyone see why?
[Code]...
View 3 Replies
Oct 23, 2009
I have some images I would like to display in TileList in Flex. My TileList dimensions are 2 columns by n rows. What I want to do is to display the first item (row 1, column 1) empty and not clickable, and to start displaying my items from row 1, column 2.I also wonder when I create click event for the same TileList, is there a way get an index of clicked element?
View 1 Replies
Jul 3, 2006
I have a animation in my loader_mc that I want to start at one frame and play to it then stop then when you click on it again I want it to play from a certain point. But what is happening is that it will initially do everything it is supposed to but than mess up after the initial 2 clicks. Check out the onRelease event and you will see what I am currently trying to do. [URL]
View 2 Replies
Feb 13, 2008
I have a picture and I want the object to be on the left side. When I click on the door on the right side, the object will start moving ( with motion tween ) to the door and when it reaches the door, Scene 2 will appear.
View 8 Replies
Mar 25, 2010
I've seen various games where by when you start the game it gives you a scenario and 2 boxes to click, if you click a you go to frame say 57 and if you click b you goto frame 58
[code]...
View 1 Replies
Dec 14, 2011
I have read all threads and can not find a solution but i am not somebody with a lots of knowledge about actionscript so here is my problem i am using this script .
[code]....
the problem is that when i click on the first button loads ok but when click on second still showing the first movie clip in the back ,,,,, i have try everything without luck ,,,, i guess i need to keep reading but will like to find an answer to this situation ,
View 3 Replies
Sep 11, 2010
I created a movieclip animation that only activates when i rollover the movieclip button. I further extended the frames and created another frame animation that i active only when user clicks the button. So i have a roll over/out animation and click animation in the same movieclip in the same layer. Now the problem is that when i click on the button, its supposed to take me to another page, and it does, unfortunately without the click animation. That means after i click on the button its supposed to first finish the click animation and then go to another page. But when i click, it takes me to another page without showing the click animation
SO I tried the If function, but i seem to make a mistake somewhere and i dont know what to do. Now there is no error in script, but onw there is a problem in link, the button finishes the click animation but it does not go to the tarrgeted"about" frame. here's the code
[Code]...
View 1 Replies
Jun 20, 2010
Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening.Now, I rigged it up by setting a var to open and closed, so when clicking the button it does a check. However, if you click away from the screen, the HIDE event gets dispatched, and the menu closes. This messed up the open close var being set.
How could I make this Flex example below show the menu on button click, and then on a second button click, it closes the menu? Take into affect that if you click away from the menu, it closes it.Also, I played around with the MOUSE_DOWN_OUTSIDE event for the button and set the preventDefault, and the FlexMouseEvent event.cancelable is set to false.Changing to a PopUpMenuButton is not an option. I have to much skinning involved.Here is the Flex example:
<mx:Script>
<![CDATA[
// Import the Menu control.
import mx.controls.Menu;
[code]....
View 1 Replies
Jun 21, 2010
I am building a flash interface and I would like a menu where it is hidden to begin with (just a tab). You click the tab to expand it, and click again to collapse it. I've made a movieclip with animation of the menu opening up and closing, but I can't seem to work out how I'd go about making the movieclip open and close properly.
View 4 Replies
May 18, 2011
I need a counter click button that can storage every click on a txt file or something..
View 1 Replies