ActionScript 2.0 :: Flash8 Using The If Statement With An Edit Box?

Nov 17, 2009

all i want to do is to enable a user to check that what they have written in an edit box is the correct answer or not

var element ("correct")
var element ("try again")
var element ("input") = "3"
if (input="3")

[Code]....

and what happens is no matter what is written in the edit box, "correct" shows up

View 1 Replies


Similar Posts:


Flash8 :: Cannot Edit Text Box Size

Sep 7, 2009

I am editing a website but flash wont allow me to edit the text-box size, I can only make it wider, not taller. Does anyone know how I can fix this?

View 3 Replies

ActionScript 2.0 :: Flash8 If Statement - More Than 1 Conditions

Mar 13, 2009

Is there a way to have more conditions in an "if" statement? For example I have 3 conditions:

condition 1: a=5
condition 2: b=3
condition 3: c=12

So, if a=5, b=3 and c=12, I want to trace("success") for example. But it's necessary that all 3 conditions are executed. How can I do that?

View 2 Replies

ActionScript 2.0 :: [Flash8] Use An If Statement On A Frame

Jan 7, 2007

I'm trying to use an if statement on a frame, but it doesn't seem to work do i need to put into some sort of function?

View 2 Replies

ActionScript 2.0 :: Flash8 Numerical Sort - If The One Of The Numbers Has A Higher Digit Value, It Ignores The Statement Entirely?

Dec 17, 2009

I defined an array construct and assigned two variables to part of the array so I can simple sort it:

number1 = array[i]
number2 = array[i+1]
if(number1 > number2){
...swap etc

Problem is, when I try the comparason if the one of the numbers has a higher digit value, it ignores the statement entirely. Eg If 16 > 8 it skips it. So I tried adding '16' and '08' into the array and that worked perfectly with the statement.

View 2 Replies

ActionScript 2.0 :: Flash8 Variable Set-up - 'if' Statement To Run From Variable When Playhead Encounters MovieClip

Aug 21, 2009

I want to declare a variable on the main timeline that can be called from anywhere in my movie. So, _global var should be the right approach. I want to declare a movie clip 'MC1' "open", or "closed" so that when it is revisited, my flash file knows the user has been there before and performs a different task from the one it does when 'MC1' was first encountered. So, i need a 'if' statement to run from the variable, when the playhead encounters the movieClip.

[Code]..

View 2 Replies

ActionScript 3.0 :: Edit The Content Without Having To Edit The FLA File Or Any Code?

Aug 11, 2009

I'm actually relatively new to flash and actionscript but I could say I have fair knowledge about them. So anyway, I usually build flash websites the traditional way using timeline animation and scripting. Today I had a job interview and they said they're looking for someone who can develop any web design into a Flash CMS with a back-end office for the client to edit the content without having to edit the FLA file or any code.

Accordingly, I'd like to know where and how to start. What are the main concepts I should follow/adapt?

View 1 Replies

ActionScript 2.0 :: First Requirement Of The If Statement When Type In The Proper Input And Go Straight To The Else Statement

May 14, 2009

Having a few problems with what I thought was a simple if statement. Here is the code:

[Code]...

I can't quite figure out the small problem with the code. It seems to just bypass the first requirement of the if statement when I do type in the proper input and go straight to the else statement.

View 7 Replies

ActionScript 1/2 :: Execute Code In Previous If Statement If Second If Statement Is Executed?

Aug 31, 2011

if (variable == 1){
//code
//Execute this code.
} else if (variable == 2) {
//code

[Code]...
 
I dont want to copy the code from the first into the second and the first and second into the third.
 
My mind isn't working and there is probably an extremelly simple way to get this working.
 
I know I could used functions but for some reason it stops the instance referencing working: _root["bullet"+j] doesnt work in a function.

View 7 Replies

ActionScript 2.0 :: Loading Data From XMl File And Uses It To Run An If Statement. If Statement Fails?

Oct 10, 2008

The Flash movie contains 2 Text files, one Component button, and 1 component checkbox.The purpose of the application is to load an XML file(works)Populate 2 text fields with information from the XML file(works)Compare the two text fields, if they contain the same information then the checkbox, via AS is told to be selected. (Heres the problem);

Heres the code:

Code:
runCode_btn.onPress = function() {
data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = function(success) {

[code]....

The idea behind this app is that its an electronic form. The user fills it out, the information is then sent to a newly created XML file, months later the open the XML file in flash, and Flash fills out text fields and check and or unchecks Checkboxes based on the XML data.CheckBoxes are mandatory.But I don't see how I'll be able to use them if i can't create and condition statements based on the loaded Data.

View 1 Replies

ActionScript 2.0 :: If Statement Inside If Statement Won't Work

Mar 30, 2011

why this code won't work

[Code]...

I'm sure you can put if statements inside other if statements, seriously I can't figure it out

View 4 Replies

ActionScript 3.0 :: Another 'if' Statement Inside An 'if' Statement?

Sep 22, 2010

I need to write an if statement inside an if-else statement. But no matter how I write it it keeps giving me a syntax error.The syntax error is "1083: syntax error: else is unexpected".[code]No matter how or where I place the braces, it keeps giving me errors.

View 13 Replies

ActionScript 3.0 :: Use A For Statement To Create An If Statement

Jul 12, 2010

what I'm trying to do is create an else if argument for each object in an array based on a user set number

Code:
for(var i:int=0; i < numberOfElseIfs; i++){
GENERATE AS3 CODE
}

to which I want it to GENERATE THE FOLLOWING CODE:

Code:
}else if(baskets[i].used == false){
baskets[i].used = true;
drawButton(i);
}

the problem is obviously that the compiler reads this code rather than understanding I'm trying to regenerate the code within the for loop...does that make sense :S? So basically I need as3 to read the code between the for statement as if it is going to echo that out later. Is this even possible?

View 4 Replies

ActionScript 3.0 :: Write Another "if Statement" Inside Another If-else Statement?

Sep 22, 2010

I have a script which is giving me a lot of trouble since I have no idea how to write another "if statement" inside another if-else statement. I keep getting errors, I guess I don't know where to put the braces exactly...

example:
if(bla == bla) {
<------------how would I write another if statement here?
}else if (bla == bla){
}

View 3 Replies

Flash :: "IF" Statement, Within A For Statement, To Control Movieclip Within Movieclip?

Dec 18, 2011

I have a movieclip on the screen called "mc_bg". Within this movieclip are 7 movieclips called "barrier1" through "barrier7".From main.as I want to be able to do this call:

for (var i: int = 1; i < 3; i++ ){
trace("got here")
trace(mc_bg["mc_barrier" + String(i)])

[code]....

View 1 Replies

How To Edit A .fla

Sep 19, 2009

I just got adobe flash cs3 and opened up a .fla header in which I like to change the text. I bought a template from someone with test in the flash and I'm trying to edit the words with no luck. I've tried double clicking on it and it brings up a square around the text but I'm not able to change it.

View 8 Replies

F8 Can't Edit FLV Cue Points

Jun 18, 2008

I am following a good tutorial here:URl...And it uses the following example file to display an embedded FLV movie:URL...I am having a problem editing the cue points. If I open the compenent inspector for the FLVPlayback, and then open the cuePoints dialog, I should be able to add, remove, or modify cue points. However, I can't edit anything in the dialog at all. It seems locked.The tutorial clearly states you should be able to edit the points.

View 1 Replies

[CS3] Can't Edit FLV Cue Points

Jun 18, 2008

[URL]In the tutorial, it says I should be able to edit cue points for the FLV video. I open the component inspector and the cuePoints dialog. All the cue points are listed, but it won't let me edit them. They seem ti be locked. I need to be able to edit cuepoints within flash for a linked flv file.

View 1 Replies

How To Edit A Template

Aug 5, 2011

I have a IT background and have been able to alter most of the template by myself to the design I would prefer my website to have. However I have hit a snag, it looks like part of the flash website design is controlled by bitmap images therefore I concluded those images were under the sources within the PSD folder. I tried creating a PNG file and double clicking the relevant bitmap and then updating it with the new file. However after I perform a publish preview the the change made no impact to the design.

View 2 Replies

Can't Edit FLV Cue Points

Jun 18, 2008

I am following the tutorial here at URL...and it links to the following tutorial file:URL...In the tutorial, it says I should be able to edit cue points for the FLV video. I open the component inspector and the cuePoints dialog. All the cue points are listed, but it won't let me edit them. They seem ti be locked. I need to be able to edit cuepoints within flash for a linked flv file.

View 1 Replies

Edit A .swf Header?

Sep 18, 2009

I just got adobe flash cs3 and I think its a very nice program that I hope I can use for more things going forward.  Here is my first question.
 
How do you edit a .swf header?  I can open it and it comes up but I do not see any options on how to change the existing words in it.

View 12 Replies

Edit FLV Movie On Fly?

Oct 1, 2009

I am working on flash project ... requirement is ... editing flv movie on fly ...
 
Customer will upload flv file through simple html form.
 
And from admin i will run my flash project where i can be able to open that uploaded flv file and
 
make corrections in that flv file like draw line, change text etc and resaved it with my corrections. and mail flv link to client.

View 3 Replies

ActionScript 3.0 :: How To Edit Xml

Jul 14, 2009

I want to edit xml on run time dynamically using AS3.if is this possible plzzz send the tutorial link or sample script.

View 1 Replies

IDE :: Edit A XML File From A SWF?

Sep 23, 2009

I'm just starting to work with XML files in Flash and it's been pretty easy so far. I was just wondering if it's possible to edit the XML file from inside an SWF (or Flash EXE).

View 3 Replies

ActionScript 2.0 :: Possible To Edit SWF File?

Jul 2, 2002

Is it possible to edit an SWF file? I'm making a change to a clients webpage but they claim they don't have the orginal .FLA file. Is it possible to edit an .SWF or even unpackage it to an .FLA?

View 2 Replies

Copy And Edit Symbol?

Feb 7, 2010

Is it possible to have a symbol, copy it, and change the copy without affecting the other?

View 3 Replies

Any Way To Open / Edit FLA Files?

Mar 24, 2010

I've recently taken over the website for the company I work for (has been freelanced outside of the office). The previous webdesigner created a flash menu for the top of the pages, as well as a flash element on one other page. I have no Flash knowledge. On the other page with the flash element here: [URL], in the page content on the right there's the bulleted, numbered links. See how the numbers aren't centered on the button? I'm able to open the fla file & can find the elements & where I need to edit, but no matter what I do I can't get the numbers to center on the button.

I've opened each & selected both the number (which is a text element) & the button & have centered horizontally, made the same width & height, etc., etc. but they're still not centering. Now for the menu bar at the top of the page (can look at same page for reference), I can't figure out how to change the text on some of the buttons. For instance I want to change Home Serves to read Custom Homes. I find the symbols & they appear to be images, so is it safe to assume the previous designer created buttons with the text already on them? Also how do I removed some of the drop down items in the menu bar, specifically under Our Galleries?

View 3 Replies

Edit In Place Greyed Out?

Jan 25, 2009

I was going through the chapter 9 topic of animating 3d elements in Todd Perkins Flash CS4 professional essential training on lynda by opening the file and following along by clicking into the movie clip, but doing so caused me to go into symbol editing mode. When he does it on the video he goes straight into the movie where you can see the other elements on the stage. I right clicked on the movie clip and noticed that edit in place is greyed out. Why can't i get into the movieclip so i can edit the animation while seeing the other elements on the stage? I've researched everywhere and i'm confused how i can be going into symbol editing mode directly from the stage. It is late on a sunday night and i am now questioning my sanity.

View 2 Replies

Open A SWF File And Edit?

Jun 12, 2009

I've recently upgraded to CS4 and the latest version of Flash - I was wondering if it's posssible to open SWF's as .fla files? I'm a complete Novice in Flash even though I've worked as designer over 10 years.

View 7 Replies

Edit Txt Content Online?

Jul 5, 2009

I need an easy way to let my customer edit txt content on the web..

View 5 Replies







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