Checking True Vs False
Imagine if you will, a timeline with 60 frames. On frame 5 we set a varable equal to "true" and on frame 30 we set a varibiable equal to "false" simple right. Add into the equation a scrubber that alows the user to skip around in the movie, just like a quicktime movie in the quicktime player, you can drag a handle or click the timeline to effect where you are in the movie.
Here's where my question comes in. If the viewer is on frame 53 our variable is set to "false" now say the user uses the scrubber and jumps to frame 12 well our variable should be set to "true" now but because the user din't land on frame 5 the variable didn't get reset. How can I fix it so the when the scrubber is used it knows whether the varabile should be set to true or false?
Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-17-2002, 11:23 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Checking For True/False
Last edited by MikeOliver : 2004-02-14 at 20:52.
Hey Guys,
Im trying to do a constant check to see if the RollOver on a specific mc is true or not. But I cant seem to get it working.
I was wondering if anyone has any better suggestions as to how to do it or, help me get my code working. I posted what I have below.
Thanks for the help!
ActionScript Code:
mc.onEnterFrame = function() {
Foo();
trace("Calling Foo Function");
}
function Foo() {
mc.onRollOver = function() {
trace("TRUE");
}
mc.onRollOut = function() {
trace("FALSE");
}
}
True False Quiz In Flash (answer Checking& Marks Counting Problem)
hello, i've created a true/ false quiz in flash 6.
the question appeared with 2 radio buttons and the user need to make a selection and press the check answer button.
however, i dont manage to make the check button to display an error message if the user didnt make any selection....
besides, the marks are not counted correctly in the result column, anything wrong with my script?
how can i solve these problems?
True Or False (help)
Well it's been one of those days whe you learn somthing new and you say hey this is neat, then you go to save and what happens the Fu**ing comp crashes and can i figure out how i got it to work first time :( PISSED OFF :(
here we go, i will try explain this best i can.
on the first key frame of the movie i have this
dismain = false;
discon = false;
disgb = false;
dischat = false;
dischart = false;
dislink = false;
The dis"" is the name of the mc's that r going to be displying the information.
inside each of the mc's first frame i have a mc for clipevents. this has
onClipEvent (enterFrame) {
if (_root.dismain==true) {
_root.dismain.gotoAndPlay("dismain_on");
}
}
i know that this code is not complete becuase i need to and an if statement to check and see if it is false as well (if someone can tell me how to do this cheers). The second frame has a gotoAndPlay(1) 1 being were the clip is checking for true or false.
Now i have a button that triggers dismain to be true.
on (release) {
gotoAndPlay ("unload_signin");
_root.dismain = true;
}
I think thats about it. So can someone see were iam going wrong.
Sample movie
http://ecosse-web.com/~activefm/active/activemain.swf
i am looking to control when the diplay mc plays with true or false.
Does everybody follow me.
cheers
True Or False?
hi guys,
i am trying to "trap" the value of a checkbox. (true or false)
i know the value is changing, as i have used the debugger and it works fine, i.e. it changes the value as it should.
i now want to use that value to validate a form. here is my code for the submit button
----------------------------------------------
on (release) {
if (termsread != "true") {
gotoAndPlay("tickerror");
stop();
} else {
gotoAndPlay("truetest");
}
}
----------------------------------------------
termsread is changing from true to false correctly. but it always goes to the tickerror frame and never to the truetest frame!!
any ideas?
gary
True/False
Is there a way to do a trufalse against an array of numbers, as opposed to doing,
Code:
if ((x = 1) or (x = 2) or (x = 3) or (x = 4)){}
True,false.
I want to make an advanced shooter game.I made one before in which there is a black point appearing when you shot(thehole of the bulet).
I don't like 'buttons shooters'where you just press on heads.
The code for the appering bullet:
Code:
onClipEvent (mouseDown){ _root.blood.duplicateMovieClip("bulletNew", i);
if (i == 10) {
i = 0;}}
Now,I want to make that when you shoot on a bad guy,a blood MC appears just like the bullet but does not appear when you shoot at a wall...I tried to use true and false.
This is the code I used:
Code:
"shoot",false
if (_root.crosshair.hitTest(_root.ds)){"shoot"==true;}
And in the crosshair:
Code:
onClipEvent(enterFrame){if("shoot"==true ){
onClipEvent (mouseDown){ _root.blood.duplicateMovieClip("bulletNew", i);
if (i == 10) {
i = 0;}}
}}
I know it doesn't work...I can't put a movie clip into another one. Help!
=true == False? :)
maybe a stupid question, but i will still ask :P
if i have a boolean and if i say if (something != true), is this the same as saying if (something == false) ?
at first i thought yes, but i am not so sure anymore
TRUE Or FALSE
Things that are in the library movie clips or whatever....If not put on the
stage do not add to the size of the SWF file ? True or false ?
^_^True/ False Values, Help ^_^
I need to know how to setup a true or flase value for frames not variable. So i need to have something like this:
on (release) {
password = password.toLowerCase();
if (password == "i am the one") {
gotoAndPlay ("Scene 2", 1);
} else if (password =="neo") {
gotoAndPlay ("Scene 3", 1);
} else {
password = "";
}
}
turn into:
on (release) {
password = password.toLowerCase();
if (frame label == "start") {
gotoAndPlay (no frame);
} else if (frame label == "left") {
gotoAndPlay (frame label start)}
True/false Check
I have small problem here. I have a button in a movie(_root.butmov.button) and another movie(#3(_root.mov1.mov2.mov3) inside of 2 other movies. What I need to do is when I press the button(on mouse press), it will somehow check on what frame my #3 movie is. If it's on frame 30, keep playing and if it's on frame50 goto and play 2. I tried it the true/false way but it doesn't work(I guess because they are not in the same movie). What I did is on frame30:
mid=true;
and on frame 50:
mid=flase;
and script on the button is:
on (press) {
if (mid=true) {
tellTarget ("_root.field") {
gotoAndPlay (31);
}
} else {
tellTarget ("_root.field") {
gotoAndPlay (2);
}
}
}
Any ideas how to do that so it'll work? I know I'm doing something wrong with "if" here.
_visible = True/false ?
i'm making a fps where u have 2 shoot the enemy more than once 2 kill em. the way i did this was to make a movie clip of him and everytime tha button over the clip was pressed (shot), it would go2 the next frame with a different pic of the enemy (one of him w/ a bullet in his head). i also wanted to put a health bar over each enemy so u culd c how may more times u wuld have 2 shoot him 2 have him dead. but after i put them in the whole screen was 2 crowded. so now my idea was 2 only show the health of the enemy that ur mouse was over. what i did was to put in the health bars code(movie clip):
Onclipevent (load) {
_visible = false;
}
In the button that tell the enemy to advance 2 the next frame, i put the code(ehealth = enemy health bar{instance name}):
On (rollOver) {
ehealth = _visible = "true"
}
but that didnt work. then i tried:
On (rollOver) {
var ehealth
_visible = "true"
}
didnt work either
i'm confused about it. i know i have to use set variable 2 change the visiblity from false to true, but i cant figure owt how 2 tell (in the code) what thing 2 turn from false to true. ?? does anyone know how to solve this ??
Visible False-true?
Hi there. I am fairly new to flash.
Anyway, I am currently working with on map.
I want to be able to use a button, and by pressing that adding some kind of movieclip over the map.
(It will only be used as a picture)
Anyway, I want to set this movieclips visible status to false, and after pressing the button to true. Is this possible and if so, how the *beep* do you do? :P
Function True Or False
Hey guys,
I have a function that doesnt seem to be working. It's pretty simple. Any help would be greatly greatly appreciated.
_global.changeit=function(switch) {
_root.a=false;
_root.b=false;
_root.c=false;
switch=true;
}
mybutton.onRelease=function() {
changeit(_root.c)
}
This doesnt seem to change the value of _root.c to true. Any help would be great
Thank you
Don
Simple True/False
Hey everyone,
Could someone please tell me why it is this this code doesnt activate the if statement. Thanks
for (i=0; i<7; i++){
mc="ring"+i;
mc=true;
trace(mc);
}
if (ring2){
trace("GIL");
}
True/false Quiz
Hi all,
I want to make a true or false quiz using the radio buttons. The template provided in flash seems to only allow on question per page. I would like to have all my true/false questions on one page.
When I test movie, only the first question works with the radio buttons.
Is there an easy way to do this?
Laurel
True Or False Function();
i wanna have this function- function fsp ();
be able to run and stop running. like fsp() == false or fsp() == true;
but i cant do that, what can i do that will work and have the same outcome.
[F8] The Trouble With True Or False.
Hi all,
Was wondering if someone could help? I have tried every way I can (as an amateur) and have completley confused myself!
I have a button that when pressed plays movie clip foundation1_MC. inside this MC at the end is a bit of code.
Code:
foundation1_MC=true
I also have an MC with this bit of code
Code:
onClipEvent (enterFrame) {
if(_root.foundation1_MC=true){
gotoAndStop("fact");
Basically I wanted it then to jump to a choice of 2 frames one if the movie clip has ended on true and one if it hasn't. And for those of you who now more than I do you can probably tell it don't work!
The reason why I wanted to do it this way was so eventually I could add more frames with more buttons almost like a multiple choice with a final scene showing the decisions that were made.
Any help would be great or point to a tutorial, I couldn't find a helpful one!
Thanks in advance
[F8] Question About What Is True Or False
Hello everyone,
I want to ask everyone in the community if this game http://www.xfire.com/cms/xf_flyff/ was made totally with flash and if not with what?
if only selective parts were made in flash then what were they also the 3d with what?? 3d max?? without much details which software was used to making this game.
thank you for everyone who responds.
AKA.NUKE
_ Visibile = True/false; Help
Hi
i would like to know more about the myMovieClip atribute.
Can any one help me??
I want to create a button on frame 1 and on frame 2 have an animation that is invisible unless the button has been pressed. I know on frame 2 the animation you have to use the code : myMovieClip._visible = false;
but what would i put in the button??? Please help!!!
Thanks
What i am trying to do is make a game so that on a frame thre is a button and on another frame there is an animation. If the button is pressed then an icon appears on the animation. Someone told me that if you wanted to change the visibilty to false and true on seperate frames then you had to use the ._visibility = ....; code. I put the code on a frame minigun._visible = false; the gun doesn appear which is good. But i put this code in the button on (release){ minigun._visible = true; . but it doesnt appear. What would i do have i done the code wrong or does that code not work on different frames. if so please can someone give me the code that does?! Thanks
Using True/false In Conditions
I have tree symbols, two of them are buttons and one is a Movie clip. I want the movieclip to get an alpha of 50 if you press button2, but only if the Movie clip is not visible.
Button1:
Code:
on (press) {
_root.movieclip._visible = false;
}
Button2:
Code:
on (press) {
if (_root.movieclip._visible = "false") {
_root.movieclip._visible = true;
_root.movieclip._alpha = 50;
}
}
I am new to flash and would be glad for any help.
Getting True Or False Via Amfphp?
Hi. I'm making login thing with flash using amfphp to use my mysql database.
AS3 code:
import flash.net.*;
var gw:NetConnection = new NetConnection();
gw.connect("http://localhost/df/game/amfphp/gateway.php");
var res:Responder = new Responder(onResult, onFault);
function onResult(responds:Object):void {
trace (responds);
}
function onFault(responds:Object):void {
for (var i in responds) {
trace (responds[i]);
}
}
gw.call("Login.loginCheck", res, "Username" , "password");
PHP in services folder:
<?php
class Login {
/**
*This service checks login
* @returns true or false
*/
public function __construct() {
mysql_connect("localhost", "username", "password");
mysql_select_db("dbname");
}
function login($userName, $passWord) {
$query = "SELECT * FROM users WHERE username= '".$userName."'");
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
if ($row['password'] != $passWord){
return "false";
break;
} else {
return "true";
}
mysql_close();
}
}
Output:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion
at email_fla::MainTimeline/frame1()
And if I just put into loginCheck function return "true" and delete the query thing I get to output text true.
So where I'm doing wrong?
Thanks for advance.
Levels True/false
Hi all!
This might be a newbie question but I can't find the answer.
So I have loaded lets say 3 SWF in different levels, and I want a button that allows me to show 1 of these and hide the othe other 2. If I'm not mistaken involves true and false in the code but I'm not sure how to do it.
So the button's first action is to hide all levels and then another action that allows me to show one level in particular.
What I need it's the button's code for this.
Thanks!
P.D: it's not my first post, but it's been a while since I don't work with Flash, hope to never leave again!
Visibility False Or True
How do I change the visibilty from true to false with 1 of 3 dynamic text fields in a movie clip that is looping. The problem is when you hit the button that would hide the text field, it instantly appears again because the movie clip the text field is in is looping. I need to keep the text fields where they are because of the way my movie is structured. Otherwise I would put them inside their own movie clips. Any way to get it's visibilty to stay at false?
True & False Component
Hello,
I am using the built in quiz templates within Flash. It is my preference to use radio buttons for multiple choice questions rather than checkmarks. As it stands right now, the only way I can use radio buttons is for True and False questions. Is there a way I can have 4 radio buttons for a multiple choice question instead of 2?
If you want to see what I mean, go to File - New - Templates Tab - Select Quiz Category - Click Ok
Go to the last question within the quiz. You will see it is a True or False question. I want to use radio buttons, but I want to use 4 instead of 2. Does anyone know how to modify the component to accomodate 4 radio buttons?
Thanks!
Doug
Help With My True/false Statments
[CODE]onClipEvent(load){
speed=3;
gravity=-1;
base = true;
}
onClipEvent(enterFrame){
if (Key.isDown(Key.UP)){
this._y-=speed;
base = false;
}
if (this.hitTest(_root["base"])){
base = true;
}
if (Key.isDown(Key.UP)){
this._y-=speed;
base = false;
}
if(base = true){
this._y-=gravity;
}
}[/CODE]
trying to make a game, where you start on a base "base" then you fly your ship up with the arrow key up, and when you leave go of the key, you get pulled down by my gravity... but the only way gravity works if if i put
[CODE]if(base = true){
this._y-=gravity;
}[/CODE]
but then gravity always works expect when i got up, down.
if i set it to false, it never works
Return True Or False
What is the most simplified way to get flash to return True(1) if a variable is > 0, returns False(-1) if a variable is < 0, and returns nothing(0) if the variable is 0?
Enable=false Or True
Hello
this is how my problem goes: I've got a button set made of movie clips.
Basically, each button has two frames where the background color changes for the mouseover and release state, or for the idle or mouseleave states. The main button of the button-set, lets call it ONE, is on the root, and other three buttons (lets call them A, B and C) are symbols (movie clips) placed in a symbol (lets call it TWO) (another movie clip) placed in the root.
What I have managed to do so far is to disable, for instance, A, as well as ONE, when A is pressed, so that it will not return to the idle state (frame 1) on mouseleave, and stay on the mouseover state (frame 2)
But what I cannot get to work is the enabling of B and C after A is pressed, because they should be available for a new mouse down after the user chose A.
This is what I wrote for button A:
Quote:
on (press) {
_root.ONE.enabled = false;
}
on (press) {
enabled = false;
}
on (release) {
_root.TWO.B.enabled;
}
I also tried without the complete path to B, only "B.enabled", but it didn't work either, and i even wrote =true after enabled, but again, nothing happened.
If I set the movie clip A as a button in the properties window, I can then select "track as menu item", and enabling B or C from A seems to work, but if I do this, the "enable=false" for A itself doesn't, and it goes back to the first frame on mouse leave, instead of remaining in the second (where it should)
What is it that I'm doing wrong? Can someone help me?
Thanks
Laura
Enabled = False/true;
When i use the _visible = false comand my buttons on the stage are still clickable. When if I have one button over another clicking on one effects them both. Is there a "SIMPLE" way to have just one button active at a time. For example when "A" is active then "B" and "C" are inactive or when "B" is active then "A" and "C" are inactive. Anyway to keep this SIMPLE?
Scroll Enable True Or False :-) Help
I use flash mx 2004 this is my code. I am not sure if you can even do this but I tryed and had no luck so, please help...
Code:
///////////////////////////////////////////////
//this is the down button
///////////////////////////////////////////////
onClipEvent (load) {
enabled = true;
}
on (press) {
if (_parent.textBox.scroll.length>length) {
enabled = false;
_parent.up.enabled = true;
} else {
_parent.textBox.scroll += 1;
}
}
I am useing scroll to scroll my txtfeild. What I want to do is disable my button once the bottom of the text has been reached and do the same for the up button.
Can U Please Help Me With Or/and And True/false Conditions? Code Inc
if(txtemail.text!="" && txtemail.indexOf("@") == 1 && txtemail.indexOf(".") == 1){
myData.email = txtemail.text
myData.sendAndLoad("save.php", myData, "POST")
}
what is wrong with this code? Basically if the user inputs a blank email, or a email without a "@" or an email without "." then it doesnt accept it...funnily this doesn't work, but works fine when its just:
if(txtemail.text!=""){
myData.email = txtemail.text
myData.sendAndLoad("save.php", myData, "POST")
}
Can u help me with the syntax errors or whatever, help very much appreciated! thanks
How To Make True False Buttons?
I am trying to make a short 10 question quiz. I am not sure how to make my true and false buttons work. What action to I put to the buttons?
Thanks
Weird - I Set A Variable To False, And It's Set To True Instead...
Hi there.
I have a xml-sheet with some formatting information. I can manage to get out the information, but then something weird happens. First, take a look at the code.
Btw: The first line is created to look for a default value (def.italic) if the chosen Style don't have "italic" defined.
ActionScript Code:
textFrm.italic = (chosenStyle.italic != undefined) ? chosenStyle.italic : def.italic;
trace(chosenStyle.italic);
trace(def.italic);
trace(textFrm.italic);
chosenStyle.italic is defined as false, as is def.italic.
But then the tracing:
ActionScript Code:
textFrm.italic = (chosenStyle.italic != undefined) ? chosenStyle.italic : def.italic;
trace(chosenStyle.italic); // traces false
trace(def.italic); // traces false
trace(textFrm.italic); // traces true (!!!)
How in the blazes can this happen?
I appreciate every sentence of help, because this really boggles me!
- Samuel
Help With True/false Wm Player Scripting
I have used free actionscript to build two mp3 track players for my website and they work wonderfully except for one thing: The player that is at the top right of the page will auto start and so will the one at the bottom. I would like it if the one at the bottom did NOT auto start when the page is opened. I even went to the extent to make a new layer with a stop(); script for the beginning frame as to stop this but that does not work. Is there something wrong with the script I am using? I was told to change the value to call the mp3 to play to FALSE and it still does not work. Your help would greatly be appreciated
Here is my website address where the player is located:
http://www.2scr.com/main.htm
Here is the action script I have used for the player:
my_sound = new Sound(this);
my_sound.loadSound("http://www.2scr.com/The_Plague.mp3", false);
How Do True/false Variables Work In As3?
Hello,
How do variables true/false custom variables work in flash?
For example, what I want to do is create a simple true=false variable that I can call on an if statement later.
For example:
Code:
Var1 = true;
if (!Var1)
{
Do this;
}
else
{
Do that;
}
I noticed that neither the "Var1 = true;" part or the if(!Var1) part worked in flash. I saw them somewhere as I was researching other stuff, but can't find an example anymore. Any help?
Thanks!
My False Statment Returning True?
I got the following code:
Code:
function checkfeilds(){
if (username.text == ""){
usercheck.text = "Error,enter a username!";
count1 = 0
}else{
usercheck.text = "";
count1 = 1
}
if (pass1.text == "") {
passcheck1.text = "Error,enter a password!";
count2 = 0
}else{
passcheck1.text = "";
count2 = 2
}
if (pass2.text != pass1.text && pass1.text != ""){
passcheck2.text = "Error, passwords dont match!";
count3 = 0
}else{
passcheck2.text = "";
count3 = 3
}
if (email1.text == ""){
emailcheck1.text = "Error,enter an email!";
count4 = 0;
}else{
emailcheck1.text = "";
count4 = 4;
}
if (email1.text != email2.text){
emailcheck2.text = "Error, emails do not match!";
count5 = 0;
}else{
emailcheck2.text = "";
count5 = 5;
}
if (pass1.text.length < 4){
passcheck.text = "Password must be atleast 4 characters!";
count6 = 0;
}else{
passcheck.text = "";
count6 = 0;
}
if (username.text.length < 4){
usercheck2.text = " must be atleast 4 characters!";
count7 = 0;
}else{
usercheck2.text = "";
count7 = 7
}
trace(count1)
trace(count2)
trace(count3)
trace(count4)
trace(count5)
trace(count6)
trace(count7)
}
and when i click my submit button with all the feilds empty which triggers a function and that function activates this function I get this output:
0
0
3
0
5
0
0
the if (pass2 != pass1 && pass1 != "") is returning with a value greater then zero and same with the email one any suggestions?
Mouse Status True Or False
I need a way to keep track of how long the mouse is held down to return a value. I honestly have no clue wear to start and i cant find it anywhere in any turtorial. If you could point me in a good direction that would be cool.
Thank you
Enabled True And False? Temporary..
peepz,
i want to disable a button temporary (for a few miliseconds) with this script:
Code:
on(release)
{
this.enabled = false;
enabler = function()
{
this.enabled = true;
clearInterval(myInt);
}
myInt = setInterval(enabler, 10);
}
what im doing wrong?
im using flash8!
thnx already!
True/False Learning Interactions
I'm having this issue where I'm creating a quiz (not from a template) and in frame 1 i have a true/false question - i put in all the data and assets and everything looks fine when I preview it. When I got to the next blank keyframe I create another true/false interaction - do everything i did with the first one, even giving it a new label but the radio buttons just show up as 'radio button' and not 'true' or 'false' as they should. The question is showing up correctly. Oh, the control button is also greyed out in the second true/false. Several frames later i have a series of multiple choice questions and these are working just fine.
anyone have any ideas?
Falling True And False Problems
im making a game but im already having trouble with the first code, i just want the user to fall when he is not touching a floor....i put this code on the user:
ActionScript Code:
onClipEvent(enterFrame){ if(falling=true){ this._y=this._y+5} if(falling=false){ this._y=this._y} if(this.hitTest(floor)){ falling=false}}
theres is no errors but it doesnt stop when it hits the floor
Enabled True And False? Temporary..
peepz,
i want to disable a button temporary (for a few miliseconds) with this script:
Code:
on(release)
{
this.enabled = false;
enabler = function()
{
this.enabled = true;
clearInterval(myInt);
}
myInt = setInterval(enabler, 10);
}
what im doing wrong?
im using flash8!
thnx already!
True/False Tile Game
Hi - I'm new to this forum and appreciate any help you care to provide.
I want to create a 5-row, true/false tile game using Flash 8. The tiles in each row will have true statements on one side and false statements on the other "flip" side. When the user gets all of the tiles in each row to show true statements, then all the tiles disappear and a picture is displayed. Is there anyone who can provide me with some actionscript code for this or perhaps an existing tutorial?
Thanks very much.
Joyce
True/ False Statment Problem
I have it where i have a little ball, and i push crates along. Im trying ot make it so that when then then crate goes into water, i cant push it anymore.
here is the code i have on the ball:
// This is the true/salse statement for the crate
onClipEvent(load){
crate = true;
}
//this moves our character (named ball)
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
this._y -= 21.15;
//this is to check if my crate is in the water or not
//if its not, then i can push it
//if it is in the water, then i shouldnt be able to push it
if (crate == true){
if (this.hitTest(_root.box)) {
_root.box._y -= 21.15;
}
// this is what it does if the crate(box) is hitting the water
} else{
_root.crate.gotoAndStop(2);
}
}
}
the rest is all the same, just changed for the different directions that your character will move, so i took it out
ok, now the code i have on the floor (not the water)
onClipEvent(enterFrame){
if(_root.box.hitTest(this)){
//this keeps the box normal
_root.box.gotoAndStop(1);
} else
// if the box isnt hitting the floor, go to the box's second frame, and make create = false
_root.box.gotoAndStop(2);
crate == false;
}
make sense?
if theres something u dont understand, or left out, just ask
Falling True And False Problems
im making a game but im already having trouble with the first code, i just want the user to fall when he is not touching a floor....i put this code on the user:
ActionScript Code:
onClipEvent(enterFrame){ if(falling=true){ this._y=this._y+5} if(falling=false){ this._y=this._y} if(this.hitTest(floor)){ falling=false}}
theres is no errors but it doesnt stop when it hits the floor
How To Make True / False Buttons
I am new at flash and need to make several true and false buttons for a quiz file.
What action do I apply to the buttons for this type of answer.
Can I keep a track of how many right and wrong answers a person makes on the quiz.
Thank you for your help in advance
True False Statements/ Actionscripting ARGH
I tried to write this yesterday but the site was goofy. So here we go: I place on the first frame of my movie minedropped = false . Now when it goes to the second frame, I have a stop command. I use functions for everything, so when I hit a button, it sends it to the minefire function. This is the minefire function:
function minefire () {
if (minedropped="false") {
attachMovie("mineLink", "mineDrop", 0);
mineDrop._x = _root.ship._x;
mineDrop._y = _root.ship._y;
minedropped = "true";
This should work, right? well it doesn't. In addition, in the mine MC that is suppossed to be dropped I have this at the last frame:
tellTarget ("_root") {
minedropped = "false";
removeMovieClip (_root.mineDrop}
Please help. This is really annoying me. Thanks for your help.
Andy
Load Visible True/false Variable
hiya!
i have _x and _y variables (that are numbers) in a string from a text file on my server load into my SWF like this:
xpos = Number(locationArray.shift());
ypos = Number(locationArray.shift());
what i'm trying to do is add the 'visible' property that returns a 'true' or 'false' in the string but my SWF is not displaying it right with either of these codes:
visible = Number(locationArray.shift());
OR
visible = locationArray.shift();
i know since it's a word being sent rather than a number it doesn't need to be converted to a number but i can't figure out what's wrong. any ideas? thanks!
Sending True/false And Effecting Buttons
Lets see if I can explain what I am after here. First I have two projector files. First one I will call sender. Sender is a projetor that you can type into many diffrent forms and send them to a perl script on my server. That part is easy. The second one I will call Get. The get file reads the perl script and places all this txt into diffrent Dynamic boxes in the get projector. That part is easy. In the get projetor I have many buttons that when pressed starts a mc that has what ever txt it is suppose to have in it. And yes that part works great too. Now the problem I have at this time is that I don't want all of this information to be up at the same times. So what I am looking for is if there is a way from my Sender projector to be able to send a tru or false variable for each button in my Get projetor so lets say on buttons 1 - 5 I mark them in my Sender as false so then when my Get is used you don't even see buttons 1 - 5. Makes them invisable. Hope this makes some sence to someone out there. If this can be done can some one point me in the direction of a tutorial on this because I can not find one at all. Thanks for takeing the time to read all of this.
_visible Of All Movieclips On Stage Is True Or False....how?
ok i have a dynamic menu...
when i move over with my mouse the submenus should be visible and when i roll off they should be invisible...
its important because the submenus are dynamicliy named and i dont know how much they are and how many they are....
my question: is there a command that can talk to all movieclips in a timeline or in a parentmovieclip at once...
i thougt about a solution to store alle names in a arry when they containermovieclip is duplicated....but before i want to ask if there is a easyer solution....
thx
|