Answer To Remain On The Screen?
Sep 2, 2010
I have 12 movieclip buttons which each contain a question. When you click on one, the answer appears. I need the answer to remain on the screen. On that same frame, there's a button for "more information".When that is selected, it goes to another frame within the mc, and more info appears. However, it is covered up by the other 11 buttons from the main screen
View 2 Replies
Similar Posts:
Apr 14, 2010
I've built my first flash application and it's very close to being finished. I have a problem with two buttons that are on the are on the left and right of the stage. When the browser is enlarged these buttons don't remain on the edge of the browser. Not sure if I explained that very well so here is a link to the application [URL] if you make you browser wider you will see my problem.
View 2 Replies
Jan 9, 2004
I have some code that initializes an array (arrQAnswer) that stores what button the user clicked on (0,1,2, or 3). That option it put into arrQAnswer, then compared against arrCorrectAnswer to see if the user got the question right. The problem is that for each time the user clicks on a button, they are taken to a new screen to display feedback based on the answer of the question. If the user gets the question wrong they are returned to the original screen and try again. This is where arrQAnswer is screwing up (or more likely, where I am screwing up). On the first question where the user chooses an answer, then returns to that screen, arrQAnswer re-intializes. Is there a way to stop this from happening? Note that it only happens on the first question, I think that is because the first question is on the same frame as the code (below):
[Code]...
View 4 Replies
Jul 8, 2010
I am trying to get an answer from Input text Field and compare it to the correct answer.here is how my code look like:
//I have a confirm button here
confirm_button.addEventListener(MouseEvent.CLICK, ConfirmFunction);
//I have a correct answer as a String here
var correctans:String = "July";
[code]....
This will check if correct answer contains words in the answer from input text field.But that will result on if I key in "July is great", it will still link to the correct answer frame instead of wrong answer frame.I want the answer to be exact same as the correct answer.
View 4 Replies
Aug 27, 2010
I have a grid with 12 movieclip buttons. When a button is pushed a answer is displayed and on the answer frame, there's a button "click for more information".
That button points to information in a frame within the mc button. However, when I test it all the buttons on the root timeline appear on top of this information, covering it up.
Also, when you move the mouse while in this "further info" area, it disappears
View 1 Replies
Aug 13, 2010
I am trying to create a series of buttons that when finally "clicked" will simply stay on or in their "hit" state. This is not for a web page at all, but for an interactive SWF. Now, I've come to the conclusion that I can't do this with a button graphic so I've created a four state button movie clip with the aid of some online tutorials. Unfortunately all the tutorials end with a URL reference and I simply want the button to function like a button until it's clicked... and then freeze there until the SWF is run again.[code]
View 19 Replies
May 8, 2009
First,I have a menu screen for my game, but for some reason the buttons remain during the game (not visible), I think I need to use swapDepths but I'm not sure. Second, I need to make a restart button from the Game Over screen but I'm not sure of the coding I need to use,would using something like this work?
Code:
on (release){
_root.gotoandPlay ("Menu");
}
or would that only work in replaying a movie?
View 1 Replies
Jul 13, 2011
Is it fine to display the output of Array.toString() to the user, or is there a possibility that the string format could change in future versions of ActionScript 3 or other compilers?
View 3 Replies
Aug 23, 2007
I have a simple movie that just runs to the end and stops. When it stops, I want an object to appear and remain visible while the movie is sitting there in its stopped state. Trivial. My current model of the Flash stage is that if you drop an object onto the stage, it's there for the whole movie and it's up to you to move or hide it to get what you want. (That is, you can't add an object to the last frame of the movie, at least without bringing ActionScript into play.)
So, as far as I can tell, the only way get what I want is to add the object to the stage, make it into a button, and use alpha control to hide the object/button until the last frame of the movie, when the alpha goes from 0 to 100. This works, but I'm filled with the feeling of "this has to be overkill". I'd have the same feeling if I started the movie with the object off-stage and moved it on-stage in the last frame. Is there a more reasonable / lighter weight way to do this?
View 0 Replies
Sep 6, 2009
I have a flash quiz that I created. The file is an external swf loaded on top of another flash swf. The quiz is all radial buttons and drop down menus. Once the user choose which answer they feel is correct they click submit. Before they click submit they have an option to close the window. What i want to happen is if they close that window and return I want those selected answers to remain or even if they submitted before; i would like for those answers to remain.
View 5 Replies
May 30, 2010
It's about a website where a Photo Gallery exists. It all works fine until I press the Gallery button and then try to go elsewhere. The photos not only they remain on the page (the text and other images load normally on the current page, but under the gallery photos), but if I press the Gallery button again after pressing another button, it keeps loading those images over the previous ones. The code:
// <imports>
import flash.filters.*;
import flash.display.BitmapData;
// </imports>
[Code]....
View 0 Replies
Aug 23, 2011
I am trying to create a drag and drop tutorial by building a chemistry set.
The object of the tutorial is to drag and drop the appropriate instruments onto the target to build the kit.
I have the chemistry stand which had been designated as the target and five instruments which the user can drag and drop though only one will connect to the stand and send the user to the next frame. The instruments that are not correct snap back to their original position.
This process continues over 6 seperate frames.
The whole drag and drop process works fine, the only issue is that when the user picks up the wrong instrument and it snaps back to original position, and the user then picks up the correct instrument and send the user to the next frame, the wrong instrument (only the one that was picked up) is behind all the other new objects.
How do I get the wrong object that was picked up in the previous frame to not be in the new frame?
I have also included the actionscript for both the correct and and incorrect instrument.
Correct Instrument:
package Chem.DragDrop
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
[Code]....
View 0 Replies
Jan 23, 2004
I got a project containing 4 movieclips to be duplicated by random and placed on a certain position on stage.all movieclips are placed on top of on another.the problem is: already placed movieclips don't remain on stage - they get replaced by the next movieclip duplicated in.How can I make the already placed clips stay on the stage?
View 1 Replies
Jan 23, 2004
I got a project containing 4 movieclips to be duplicated by random and placed on a certain position on stage.
all movieclips are placed on top of on another. the problem is: already placed movieclips don't remain on stage - they get replaced by the next movieclip duplicated in.
How can I make the already placed clips stay on the stage?
View 1 Replies
Feb 17, 2008
I'm creating a simple shooter game and I've replaced the mouse cursor with a custom one. It works good but my monsters appear above the cursor. How do I make the cursor always remain on the top most level/layer?
View 15 Replies
Jun 8, 2011
I have 2 images, a base and a top. I want the top to rotate to face an object but the base to remain constant. I can get close but when the top rotates it is rotating around the corner of the rectangle it is placed inside of rather than the center. Here's the AS code for the object.....but the important elements are bolded.
public class Turret extends MovieClip{
private var _root:MovieClip;
[Embed(source='mortarbase.png')]
private var mortarBase:Class;
private var mbase:Bitmap = new mortarBase();
[Code] .....
View 1 Replies
Mar 20, 2009
I have a flash panorama that has hotspot links to pop-up windows that contain more information about the object. Right now if you are in fullscreen mode and click a hotspot you are automatically kicked out of fullscreen mode and the pop-up then opens. Is it possible to have the pop-up open and have focus while in the background the panorama is still in fullscreen mode?
View 2 Replies
Jan 13, 2009
Before I get started, I would like to point out that I'm just getting started in flash, so this may very well fit better under the newbies forum. The goal: I'm trying to put together a countdown timer, which can count down from preset amount of time to zero, then trigger an announcement event, as well as an event at 30 seconds, 1, 2, and 3 minutes left. Later on I hope to add in a setup for this to turn into a Debate timer with start/stop/next speech button, but for now, I just need to figure out the timer bit.
[Code]....
View 0 Replies
Aug 12, 2009
Surely this is not normal? I haven't had the need to do this in AS3 yet, and the first time I try it, the buttons don't work. I don't even know why?
View 1 Replies
Mar 25, 2007
I'm trying to create a simple quiz with a few questions, the code I have below doesn't seem to work. It comes up with my final score as -15 all the time, its not even checking to see if the answer is correct, as soon as I load the movie the Output comes out as -5 -10 -15.
quizBut.onRelease = function() {
totalOutput_txt.text = "Your final score is: "+score+"/30.";
};
score = 0;
if (_root.answer1 == "flush") {
[Code] .....
View 1 Replies
May 18, 2007
Am using the XML Photo Gallery tutorial (with grid thumbnails) - it was a slight modification by a Kirupa user here:
[URL]
I have a problem though. I have several sections that you visit from the main page, and one of these is the photo gallery. However, when I visit this page and then goto any other section of the site, the thumbnails remain visible.Thumbs still visible when going to other sections:My guess is that the actionscript needs to say somewhere - hide or get rid off thumbnails when moving out of the gallery?
Here's the code:
cliparray = [];
columns = 3;
spacex =50
spacey=50
[code].....
View 13 Replies
May 17, 2011
I have an object that gets attached to the stage everytime I click (like a side shooting game). What I want is the object to have a speed in a specific direction. I got it to work by the code-
Code:
if (total_bolt_no>0) {
var bolt_name="bolt"+total_bolt_no;
var bolt_n:Sprite=this.getChildByName(bolt_name) as heroweapon;
[Code].....
The problem that arises is that when I spawn another object the previous one becomes still. I tried using the for loop but everytime I click the angle also changes, thus changing the speed of all attached objects.
View 4 Replies
May 10, 2009
I am importing a PSD file with a background layer, which I want to remain static throughout the movie and also several other layers which I am going to animate. Here's my problem...I cannot figure out how to get the background layer to remain visible throughout the movie once I create tweens for the other layers, without manually copying and pasting frame 1 to every other frame...yikes! There must be something very obvious I am not doing, yes? It probably goes without saying that I am a first time 'designer'.
View 2 Replies
Apr 7, 2005
I am trying to get a stationary object to follow the mouse but remain in its location. Example: i am trying to get the center of a compass to follow the mouse around screen while remaining inside the compass. i have only found out how to have it chase the mouse but not remain on a fixed point and rotate.
View 7 Replies
Jun 30, 2003
I have a flash menu that I'd like to use on a HTML page. I'd like to make it so that when a user clicks one of the buttons, that button will remain highlighted on the page that uploads. An example of this would be at [URL]. How is this possible with action script? I was told in another board that it had to do with variables, though the person did not give a clear explanation that I could understand. I'm new to action script but am learning bit by bit!
View 6 Replies
Apr 7, 2005
I am trying to get a stationary object to follow the mouse but remain in its location.i am trying to get the center of a compass to follow the mouse around screen while remaining inside the compass. i have only found out how to have it chase the mouse but not remain on a fixed point and rotate.
View 7 Replies
Feb 16, 2011
I have tried many approaches to unloading my swf, but to no avail, the video sounds within my laoded swf keep playing even once the swf has been loaded.
I have created a universal loader as follows:
var loader:Loader = new Loader();
I then load various swf's into a movie clip named mov_contentLoader, for example the video swf is loaded as follows:
loader.load(new URLRequest("video.swf")); //assign SWF url to loader
mov_contentLoader.addChild(loader); //add loaded content to movi clip
I then have a generic "exit" button, based on the state of the application, certain windows are closed, swf's are unloaded etc. For my video.swf file, when the exit button is clicked, I call the unloadAndStop(); method on the loader as follows:
loader.unloadAndStop(); //unload all content, do some garbage cleanup
mov_contentLoader.removeChildAt(0); //just to be safe, a second layer of reassurance ??
The SWF is unloaded, but for the life of me I can NOT get the sounds to stop! I even resorted to adding stage listeners on the video.swf to listen for an exiting state, but that still did not stop video sounds.
If I load the video.swf in again and play a different video, the two soundtracks play ontop of each other.
View 4 Replies
Apr 20, 2009
I just wanted to check something if anyone can clarify this:
If I create an object with
Code:
And then replace it by doing
Code:
Does the original instance get deleted or will it remain in memory? If it does, how do I remove it properly?
View 3 Replies
Mar 4, 2011
I've got a map that you can zoom in and out of. What I'd like is that are you zoom into the map the labels marking items on the map remain the same size. Initially I did this successfully by making the labels independent movieclips(ie not children of the map mc) and then using localToGlobal to make sure they were in the right position. However I found that there was a bit of lag in their movement compared to the movement of the map.
So I thought what I'd try is to make the labels children of the map and then scale them up and down inversely to the scale of the map. However I haven't been entirely successful. I'm having difficulty finding the equation to make it scale up and down correctly in proportion to the map. The problem is that my labels are scaling in a linear fashion while my maps scaling isn't.
[Code]....
View 0 Replies
Sep 17, 2010
I have a quiz created in Flex using Spark forms, with a series of questions which are a group of radio buttons. When the user clicks "next", I get the value of the selected radio button in the group. What I need to do is keep track of these values; at the end of the quiz I will need to see which value was chosen the most. So if the user mostly picked the questions with a "3" value, I can display a summary based on that, e.g. "You mostly chose type 3 answers". I was thinking about having an int variable for every choice (there are 5), and incrementing the appropriate variable when the user clicks "next", as in
private function enterScore(i:int):void {
switch (i){
case 1:
num1++;
break;
But this seems unwieldy. I also will need to compare the 5 tallies for which one was chosen the most...
View 1 Replies