ActionScript 2.0 :: Make A Simple BMI (Body Mass Index) Calculator But It Doesn't Seem To Be Working?

Jan 30, 2012

im trying to make a simple BMI (Body Mass Index) Calculator but it doesn't seem to be working

my code is:

on (release) { BMI_SUM = (Number(WEIGHT_INPUT.text) / Number(HEIGHT_INPUT.text * HEIGHT_INPUT.text)); _root.BMI_FINAL.text = BMI_SUM; }

the BMI_FINAL.text box always displays NaN, and when traced it says Undefined and the code looks sound but i cant get it to work.

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Create A Mass Of Images Which Doesn't Have The Same Size/ratio?

Apr 15, 2008

I would like to create a mass of images which doesn't have the same size/ratio. The images cannot overlap, but they should be placed as close to each other as possible, so you get a big picture created by a lot of small ones.

View 1 Replies

ActionScript 2.0 :: Put Together A Simple Calculator Form?

Mar 1, 2009

I'm trying to put together a simple calculator form, all it needs is the quantity, the price, and a price total.

View 3 Replies

ActionScript 2.0 :: Simple Calculator Including Currency Format

Jan 27, 2009

I'm new to Flash and I created a simple calculator using a button function. I need it to output a number as a currency and I'm having trouble doing so including the formatting [URL] I'm sure it's a simple fix...

View 0 Replies

ActionScript 3.0 :: Replicate The Map Found In Mass Effect And Mass Effect 2

Oct 22, 2009

Several months ago I created this, The Halo Galactic Map. After talking with a lot of people on their opinions and such, I wanted to take it to the next level and replicate the map found in Mass Effect and Mass Effect 2 shown here.

Based on my knowledge of Photoshop and some... and by some I mean very VERY little Flash... I took it upon myself and another member of the community to create this.

All was going well until the member decided it wasn't his cup of tea. Basically, he didn't like that he couldn't do it well enough.

Ok, so I've installed Flash and tooled around with it for a bit, but I want to get going. I know this isn't the best place to post this thread - I know there are probably better places - but I just wanted to know where and what to begin with. I have the whole thing planned out in levels, layers, and motion...

View 0 Replies

ActionScript 1/2 :: Creating Mortgage Calculator - Doesn't Add Up

Mar 29, 2010

[URL] Here is the flash file, I feel as if I am almost there, but the calculation doesn't add up.

[Code]...

View 6 Replies

ActionScript 3.0 :: Flash Calculator Not Working?

Apr 20, 2011

I'm in a Web Design class and atm, I'm working on chapter 8 of Flash CS5 case problem.I have to make a calculator. Can I just say that AS3 makes me frusterated? D:Anyway, after I finished what the book told me to do whilst getting confused in some areas, I got many compiler errors. I managed to get rid of them but in the end, my calculator isn't working, haha.

Here's the whole code:

import flash.events.MouseEvent;
calcTotal_btn.addEventListener(MouseEvent.CLICK, calculateTourCost);
function calculateTourCost(event:MouseEvent):void {

[code]....

View 4 Replies

ActionScript 3.0 :: Creating A Simple Running Index Within This Function?

Jul 6, 2010

I am trying to index a series of movie clips with their own unique index number for accessing through AS3. The example below is what I would like to achieve, when a user clicks on Topic1, I can trace back the index of 1, when a user clicks on Topic2, I can trace back an index of 6:

Topic1 (Index = 1)
|
|-subtopic1 (Index = 2)

[code].....

View 1 Replies

ActionScript 3.0 :: Make Changes- Change Calculator?

Jul 10, 2011

Make changes to the MakeChange.fla application, such that the user  enters in the amount of change. The program calculates the number of  coins necessary to make change for an amount less than 100 cents. The  program should have variables for the amount, number of quarters, number  of dimes, number of nickels, and number of pennies. Display all of the  information clearly in the output of the program.

View 4 Replies

ActionScript 2.0 :: Functions - Make A Graphing Calculator With Drawing API

Feb 5, 2006

im trying to make a graphing calculator with drawing API. I can't get it so actionscript draws my line from the function that is produced from user input. say i have an array

[Code]...

View 1 Replies

Actionscript 3.0 :: Make The Arrow2, Body And Target Move To The Left Of The Stage

Sep 28, 2009

i have a loop error where it times out

Code: Select allstage.addEventListener(MouseEvent.MOUSE_DOWN, shootArrow);
function shootArrow(event:MouseEvent):void
{
do
{

[code]...

So what im trying to do is make the arrow2, body and target move to the left of the stage and make the actual arrow (flyingArrow) to move down to give the effect of a flying arrow?

View 3 Replies

ActionScript 2.0 :: Load An Swf That Doesn't Take Whole 1020x610 Of Index.swf

Oct 18, 2005

I have a main swf named index.swf with only 1 frame, on that frame I have actionscript that creates an empty movieclip loads an external swf and centers it depending on the user's browser size.My problem is if I load an swf that doesn't take the whole 1020x610 of the index.swf it won't be centered.[code]

View 7 Replies

ActionScript 3.0 :: Make A Basic Flash Calculator Except It Only Has To Be Able To Square The Number Provided By The User?

Dec 14, 2009

I'm trying to make a basic flash calculator except it only has to be able to square the number provided by the user, I have followed many tutorials but I keep getting the NaN as the output. Here is the actionscript:

import flash.events.MouseEvent;
square_btn.addEventListener(MouseEvent.CLICK,
squareClick);

[code]...

I also need to have Input box and Error Messages & Highlighted Input Box.

View 1 Replies

ActionScript 2.0 :: Scope - _root In Gallery.swf Doesn't Work Within Index.swf?

Oct 27, 2006

This is a situation: i have a index.swf in which i have holder movieclip in which i load gallery.swf (where i load pictures in it's holder mc). The thing is i used _root in gallery.swf so when i publish it separately it works, but it doesn't work within index.swf. I suppose there is a scope problem where _root adresses _root timeline of index.swf instead of gallery.swf when index.swf is published and gallery.swf loaded inside. I tried to solve this by putting: Code: this._lockroot=true; inside of gallery.swf but now my Flash 8 player just freezes when index.swf is published and gallery.swf loaded into it but i have no idea why? What would be other solution for this problem?

View 3 Replies

Flex :: Why Selected Index Not Working When TextBox Changes

Oct 31, 2010

In the following working example the list's selected index is supposed to reset to 0 whenever the text box changes. However, for some odd reason every other keystroke the selected item disappears and then reappears at the subsequent keystroke.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
[Code] .....

View 4 Replies

ActionScript 3.0 :: Why Doesn't This Really Simple Code Work?

Mar 16, 2009

What I'm Trying To Do: Modify the y coordinate of a MovieClip on the stage from an external .as File, simple as that.If someone could tell me why its not working and how I can go about fixing it without modifying the existing class structure
(ChildOfMain must subclass MainClass).

Download
Source Files 6 kB

For those of you who don't want to download the source files (I thought it would make it easier if you could handle it yourself)

Document Class For Project: Main Class
Objects In Project Library
platform (movieclip)
subjectMovieClip (movieclip)

[code]....

View 6 Replies

Flex :: Why Doesn't App Draw A Simple Rectangle

May 6, 2011

the code is straightforward and my Intention should be clear. Still i can get this to work:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 1 Replies

Html :: Flash Hides Behind Submenu, Z-index Is Not Working

Nov 29, 2011

actually i have an image gallery in a seperate HTML page, I want to embed it into the main html page containing the menu, but even after using the code <param name="wmode" value="transparent"> or <param name="wmode" value="opaque"> the submenu is still hiding behind the flash. I also tried by changing z-index values, still didn't work.

View 2 Replies

ActionScript 2.0 :: Email Form Not Working Via Index.html?

Jul 5, 2009

I've got an email form within a swf file - [URL]

If I try and fill this form in, it gives me nothing, I got my "Your email failed" message.

However, if I call the swf file - www.kismetroadshow.com/main8.swf and do the same again, it works and I get an email.

I've ruled out the php script therefore.

I've posted the actionscript below:-

stop();
senderLoad = new LoadVars();
receiveLoad = new LoadVars();

[Code].....

the button's called sender. It's been doing my head in for 4 days, everytime I think I have it cracked the punter sends it back which is really embarrassing.

View 3 Replies

Animation Simple Flip With Flash Doesn't Work

Feb 26, 2011

I am trying to create a simple animation, juste a picture that need to move from left to write while rotating around the vertical axis.I tried just to have the first position normal and the final position scaled at -100% in width but it also distort and move up and down.I already did that in acstionscript but not just graphicaly.

View 2 Replies

ActionScript 3.0 :: Simple Password Checker Doesn't Work?

May 10, 2011

Im trying to make password checker but in some reason my code doesn't work. I have one input text field "inTxt", one output text field "outTxt" and submit button "btn". My code checks if the text in the input field is same that is in the "pass" variable and if it is, it should print "Correct." in the outTxt output text field and if it's not it should print "Incorrect." But for some reason it prints "Incorrect." all the time.

ActionScript Code:
btn.addEventListener(MouseEvent.CLICK, test);
inTxt.displayAsPassword = true;
var pass:String = "dog";

[Code].....

View 5 Replies

Simple Text Fade Movie Clip Doesn't Work

Aug 1, 2009

I have a simple text fade movie clip that will "play" but won't work when I "Test Movie." What am I missing? I don't regularly use Flash as of yet, and have been successful before, but this is ridiculous - and I know I'm probably missing something very simple.

View 3 Replies

Flash :: Music Player Stop Working - Embed It Into Index Page?

May 3, 2010

Inside my /test folder/music_player/ have have a file called mini_player.swf. If I play it without embedding it anywhere, like this: [URL].. everything is OK. But when I add it into my index page: [URL].. the song doesn't start.

[Code]...

View 1 Replies

IDE :: Mass Convert To MovieClip?

May 31, 2002

I have... ~1300 "Drawing Objects" (read: Shape) sitting on the stage that were Paths in Illustrator and were pasted in as part of one cohesive image. I need to be able to access all of them via ActionScript, but as with my post on the AS side of this problem, they are all stuffed into a single Shape and not accessible independently.

View 2 Replies

ActionScript 2.0 :: Change The Working Directory So That Index.swf Can Simply Call Projects.html?

Dec 6, 2003

My main movie calls loadMovieNum("projects/index.swf", 1); . Therein, the movie index.swf calls loadText.load("projects/projects.html");.

Is there a way to change the working directory so that index.swf can simply call projects.html, without referencing the projects directory? This is particularly useful bc the text file calls a number of links.

View 1 Replies

Looking For A Batch / Mass Publishing Plugin?

Mar 28, 2011

I am working on a flash project that has many fla files associated with it. Is there a plug-in that will allow me to publish many flash files without me having to manually open and publish them myself. I know in Photoshop there is a batch processing of actions but was unaware if there was one for Flash.

View 1 Replies

Flash :: Mass Renaming Linkages In A FLA

Jun 1, 2011

I have an AS3 based FLA that, for various reasons, needs nearly all of the linkages in the library reworked (need to move to a different package namespace).This particular FLA is pretty big, so doing this by hand would be rather tedious.I have considered saving out the FLA as an XFL, and just hand editing all of the XML files in the LIBRARY folder, and then saving out as FLA. Has anyone tried this? I have never worked with XFL files before, so I don't know what quirks I may run across.My problem has to do with loading SWFs and class conflicts because of multiple SWFs using the same package namespace. Without getting into too many details, I know about ApplicationDomain and LoaderContext. I am currently loading into a new ApplicationDomain, but that isn't an ideal situation and is causing grief that won't be maintainable in the long run.

View 1 Replies

ActionScript 3.0 :: Mass Deprecation Of Many Files At Once?

Sep 22, 2010

Any easy way to mark an entire package/directory and all subfiles as being [Deprecated]? I'm about to separate a large number (500+) of genericly-coded library files from our more app-specific ones, and need a way to notify developers they are using the files that have moved so they can point them to the new directory. In the meantime I'll be opening them all one-by-one

View 1 Replies

ActionScript 2.0 :: Mass Image Load Via XML?

Jul 21, 2004

I have a folder with a number of photos. In my XML file i have the paths to the and a description. Now i want to preload all the photos in Flash in 1 time. I do to preload the photone, i want to preload them all in one. Does somebody know h

View 1 Replies

ActionScript 2.0 :: Mass Update Buttons With Loop?

Oct 9, 2009

I'm trying to update a series of buttons with a for loop automatically. These buttons will have a somewhat fixed instance names like btn1,btn2,btn3,btn4.My problem is i don't know how to reference the button names with a dynamic variable appended..I have something simple like this, but can someone point me in the correct direction for the syntax please?[code]

View 2 Replies







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