ActionScript 2.0 :: Popup Window With A Question, And Four Answers With A Button Next To Each Answer?

Aug 17, 2009

I'm creating a sort of guessing game/trivia with AS 2.0. I have a popup window with a question, and four answers with a button next to each answer. The question and answers are dynamic text that are set by clicking on a "question" button.I was thinking I could do was click an answer button, which sets "current answer"... compare that with "correct answer" and do something? If it doesn't match, set the dynamic text to "wrong answer". If it's correct, then gotoAndStop(something)... I can get the answer buttons to trace their values(current answer) as I click on them, but when I try and goto () or do something based on these values (true) it seems just do whatever is in the if statement... not based on the answer being correct?Hmmm... like if I say: if (This is true)Not sure if I'm explaining this properly. But basically I have a popup window with a question. I have four answers, with buttons to select choice. I want to compare the choice/buttons pressed with a variable "correct answer" and then do something.

View 4 Replies


Similar Posts:


Professional :: Interactive Quiz - Three Questions That The User Must Answer With Three Possible Answers In Frames 3,4 And 5?

Feb 10, 2010

For my project i am creating a quiz on the Romans. There are only three questions that the user must answer with three possible answers in frames 3,4 and 5.I want to know the code that would help me to allow a Jpeg (an evaluation of the answer given on each frame) to be placed on frame 6 ready for the user to receive feedback for each answer they have given. So when the user selects an answer, the corresponding jpeg to that answer is placed ready on frame 6 for their arrival after they have answered the third question.

View 1 Replies

ActionScript 2.0 :: Button Is Pushed A Answer Is Displayed And On The Answer Frame?

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

ActionScript 2.0 :: Magic 8-ball - Answers Array To Store All The Answers And Then Call Them At Random Into The "answers" Field?

May 24, 2004

I've got an input field called "question" where you can type whatever you want, an ASK button called "ask" and a response field called "answer". Once you enter a question and hit the ASK button I want flash to randomly reply in the "answer" field with YES, NO, MAYBE, DEFINATELY etc.

Do I need some kind of answers array to store all the answers and then call them at random into the "answers" field? Am I on the right track?

View 7 Replies

Professional :: Open A Popup Window When Clicking A Button?

Apr 9, 2011

Not a URL, but just a swf file in a popup window. Using ActionScript3.0

View 3 Replies

ActionScript 3 :: Get Popup Window When Clicking Button (Safari)

Nov 18, 2009

I'm trying to do a popup window that is sized at 300x200 when clicking a button using the following code
var jscommand:String = "window.open('[URL','win','height=200,width=300,toolbar=no,scrollbars=yes');";
var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");
navigateToURL(url, "_self");
It opens up fine except on Safari 3.

View 1 Replies

ActionScript 2.0 :: Opening Popup Window From Flash Button

Jun 24, 2010

Is it possible to open a cross domain pop up window from a flash button. Let's say something like this:
ActionScript Code:
on (release) {
getURL ("javascript:NewWindow=window.open('[URL]','newWin','width=800,height=650,left=60,top=60,toolbar=No,location=No,scrollbars=no,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
Is a button hosted in domain that links to a secure page in link. Will it work or will it get blocked by browsers or internal flash restrictions?

View 3 Replies

ActionScript 2.0 :: How To Make Button To Open Popup Window

Oct 13, 2011

How to make a button which opens a pop up window(don't really knows if that's the correct name) with a image or text, centered, but the site isn't available unless I click the "x" button on that window or outside the window.

View 1 Replies

ActionScript 2.0 :: External Interface - Call A Popup Window On A Button

Sep 3, 2009

I am trying call a popup window from actionscript on a button and am having trouble I am using following: import flash.external.ExternalInterface; Then on the button in Flash: on (release) { ExternalInterface.call("myPopup.start", "#contactForm"); } but I don't know if ExternalInterface will properly call the start() method.... am a little lost The page is @ [URL] and the link at the bottom "CLICK HERE FOR FORM" is what needs to be incorporated into a flash button on the SWF.

View 0 Replies

ActionScript 3.0 :: Button - Close The Flash Movie And The Popup Window

Nov 25, 2009

I have an html page with a link that loads a popup window. The popup includes a simple Flash movie. Some basic Javascript code in the html file was used to produce the popup window. What Im trying to do is have a button that I created in the Flash app close the Flash movie and the popup window.

View 2 Replies

ActionScript 2.0 :: Popup Window Form Flash Button Blocked From Ie?

Feb 26, 2010

What I need is a new window with fixed dimensions... I found a script somewhere in the web that works fine with firefox but with ie (I tested only in ie8) the built-in popup blocker is preventing the window to open...Here is the code use:For the flash button:

Code:
on (release) {
getURL ("javascript:openWindow('mypage.php','newWindow','toolbar=0,location=0,directries=0,status=0,menubar=0,scrollbars=1,resizable=0,width=480,height=650,left=80,top=180')");
}

In the head section of the page that contains the flash movie:

Code:
<script language="javascript">
function openWindow(URL,windowName,windowProperties)
{newWindow=window.open(URL,windowName,windowProperties);}
</script>

View 2 Replies

ActionScript 2.0 :: Flash Button + Full-screen Window = Popup Blocker?

Nov 16, 2006

I came across the following javascript code that creates a fullscreen pop up window from a rollover button (html/javascript) that appears to be unaffected by popup blockers in IE (or at least on my computers it's unaffected). However, when I adapt the button code to actionscript for use with a flash button it starts to trigger the popup blocker. figure out the correct actionscript to make this work without being blocked?

[Code]....

View 3 Replies

ActionScript 2.0 :: Multiple Centered Popup Window - Buttons Don't Open / Replace Past That One Popup

Jul 6, 2004

i'm using the centered pop up window script from: [URL]. i have multiple buttons in my flash movie which open screenshot html pages in external browser windows. the script works fine except when a popup window stays open. the rest of the buttons don't open/replace past that one popup. i tried changing the window name in the onRelease script to screen1, screen2, etc for each button, but that didn't work.

View 1 Replies

Actionscript 3 :: Close The Adobe Flex Popup Non Modal Window If Click On The Parent Page Of The Popup

Dec 12, 2011

I need to close the popup(adobe flex), non modal window if I click on the parent page of the popup. I have to do the out of focus check and then do some validation before close the popup. So what I was thinking that is there any inbuilt focus check event or do we need to create custom event for that?

View 1 Replies

ActionScript 2.0 :: Get A Html Popup Window To Open When Movie Hits A Certain Frame Instead Of A Button?

Aug 5, 2008

I am trying to get a html popup window to open when my movie hits a certain frame instead of a button. Im using the following code but it uses a button instead of a frame to open the popup.

on (release) {
customize the window that gets opened
0 equals NO.[code]........

View 2 Replies

Flex :: Placing Popup Window In The Middle Of The Main Window

Mar 16, 2010

I'm trying to place a popup window (TitleWindow) in the middle of the main application window. how do i set the coordinates of my popup window to be of the main application window? i tried the localToGlobal function but with no luck, I just can't get the main window x and y.

View 3 Replies

Flex :: Reload Main Window's Variable In Popup Window?

Aug 12, 2011

How to access main window's variable from popup window.

I create a popup window in the main window, and pass variable "content" to this popup window as following [code]...

View 2 Replies

ActionScript 2.0 :: Resizing The Window - Photos Will Popup In A Fullscreen Window

Apr 25, 2008

Go to [URL]. Click on "The Photos". It will pop up in a fullscreen window. Try resizing the window and you'll notice that the background is vector and it looks like the scale mode is set to "showAll". BUT, the photos look like they have a separate scale mode set to "noScale". They don't resize.

View 2 Replies

ActionScript 2.0 :: Create A Flash Based Popup Window When A Button Is Pressed Within The Flash Movie

Oct 28, 2009

I'm looking to create a flash based popup window when a button is pressed within the flash movie. Not a javascript based html window or html browser window, but a window that is in the flash movie that is entirely flash based. I looked all over the internet and can't seem to find anything on this, and can't find anything on this board either. I am new to flash and actionscripting in general. I would also like to use the Tweener external class, or the flash tween class would work too.

View 1 Replies

ActionScript 2.0 :: Popup Opens In The SAME Window And Not Ina New Window

Mar 27, 2006

following situation: a button with AS :

[Code]...

this popup opens in the SAME window and not ina new window. What can I do to let it open in a new window and given the same properties to this new window as above: toolbar=No,location=No,scrollbars=No,status=No etc.... a geturl opens it in a new window but does not give toolbar=No,location=No,scrollbars=No,status=No etc.... properties to the window

View 2 Replies

ActionScript 3.0 :: Get An Answer From Input Text Field And Compare It To The Correct Answer?

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

ActionScript 1/2 :: Window Component - Keep Buttons From Being Active While The Popup Window Is Active?

Mar 26, 2009

I have a window component on my main timeline that gets called up on several instances. When the popup window appears, everything looks fine, except that the user can still click on links that are now behind the actual popup window itself. My question is how do I keep those buttons from being active while the popup window is active?

View 2 Replies

Professional :: Make Drag And Drop Work On A Check Answers Button?

Feb 20, 2012

I ve got a drag and drop code working, but what I really want to do is have a check answers button that tells the user, you have none correct, or two correct or all wrong... I have one target area, and 3 correct answers (out of 7) so I would like to let the user put as many ansers on the target as they want and then check if they have any correct, also a reset code would be nice to put everything back where it started... I tried to break my code up but the events then went mad, Here is what i have so far, it works instantly and lets crrect answers stay and incorrect bounce back..
 
stop();
yes1.visible=false;
allcorrect.visible=false;
doit.text="drag over the words that mean Vision";

[Code].....

View 1 Replies

How To Open Popup Window

Jul 1, 2009

How can I create a new window such as the one that opens here when i click the "insert link" above, with fade out and one that looks as if it's in the same window ?

View 1 Replies

ActionScript 2.0 :: Xml Popup Window?

Dec 9, 2009

I have a gallery that calls the images from xml that loads into my place holder witch it attaches the url for the images to open in another window. Now, I will like only one image to open a new popup window, how can I activate that using xml and possibly a bit of as2? here is what I got: javascript to open new window:

Code:
on (release) {
getURL [code]......

View 2 Replies

ActionScript 2.0 :: Reset Check Answer Button?

Oct 22, 2010

Frame one has three draggable movie clips and three finishing locations (one clip per location), it also has one a button (Check answer)A user can drag any of the three clips to any location and then click Check Answer.Check answer then runs an action that if the clips are in the right places, it goes to frame 2, if they are not, it goes to frame three where a Reset button is provided. In either case, a message is displayed.

On frame 3, I want people to be able to change the positions of the clips and select Check answer and have it check the answer again. Currently it's letting me move the clips, but even when I put them in the right places, it still tells me it's wrong.[code]...

View 1 Replies

CS3 Play An .flv File In A Popup Window?

Jul 19, 2009

I have a flash website, and I want to put in a button that when onrelease is triggered will popup a window that I can play another movie in, I have the movie both as an .flv file and I have also converted it to a .swf movie as a seperate little movie, I could also convert it to another format if its easier, The movie size is only 320x240 in dimension.

View 1 Replies

ActionScript 2.0 :: Creating A Popup Window

Jan 5, 2010

All the info I see on the net is for 3.0. I have a file that uses 2.0 and I need to try to get a popup window to work. The point is so that I can have a window come up at specific dimension when clicking on a button. This is some 3.0 script I got from the net.

[Code]....

View 7 Replies

Javascript Popup Window Buggy

Mar 2, 2011

I am trying to open a new browser window popup from Flash. I am using:

[Code]....

What is supposed to happen is that the popup should open in a new smaller window whilst the original window keeps displaying the flash file. Not sure what I'm doing wrong. Is there a better way to go about this? NOTE: I know that you can call JavaScript functions and house your js in the HTML file, but I cannot edit the HTML file since it is a page from a remote site.

View 5 Replies

Flex :: Center Popup Window In 4?

Mar 30, 2010

How can I center popup window in flex 4 ?

I have tried:

PopUpManager.addPopUp(AlertPopUp,DisplayObject(spark.components.Application), true);
PopUpManager.centerPopUp(AlertPopUp);

but it's problem with conversion Application->DisplayObject.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved