This text is replaced by the site logo. If not, try enabling javascript.
Advertise
|
About us
|
Site map
|
Syndicate
|
Search site
|
Mailing list
|
View Authors
|
Become an Author
Home
Tutorials
Forums
Articles
Blogs
Movies
Library
Employment
Press
ActionScript.org Forums
>
ActionScript Forums Group
>
ActionScript 1.0 (and below)
math problem
User Name
Remember Me?
Password
Register
FAQ
Members List
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Thread Tools
Rate Thread
Display Modes
02-27-2003, 10:25 AM
#
1
philspeakman
Goatboy
Join Date: Feb 2002
Location: Liverpool
Posts: 136
math problem
i used this
var height3 = eval(height2)+eval(inches);
height 2 was a number divided by 12 - that bit worked
as does the input for inches so i assume its an eval problem should i be using some thing else?
Ta
Phil
philspeakman
View Public Profile
Visit philspeakman's homepage!
Find More Posts by philspeakman
02-27-2003, 01:28 PM
#
2
tost
my pleasure
Join Date: Apr 2002
Location: gent.be
Posts: 792
eval is deprecated code, this is the better, less-code way:
height3 = height2+inches;
if this doesn't work out, add some trace commands to check the values of height2 and inches?
regards
tost
tost
View Public Profile
Visit tost's homepage!
Find More Posts by tost
02-27-2003, 01:49 PM
#
3
bit-101
Registered User
Join Date: Feb 2003
Location: In the matrix.
Posts: 78
eval is not deprecated.
bit-101
View Public Profile
Visit bit-101's homepage!
Find More Posts by bit-101
02-27-2003, 05:21 PM
#
4
annexion
I make out with chicks
Join Date: Oct 2002
Location: NYC
Posts: 1,586
Just realized that this is a crosspost. In any event, try using Number() around the variables that you are adding.
__________________
www.perpetuated.com
annexion
View Public Profile
Find More Posts by annexion
02-27-2003, 05:43 PM
#
5
tost
my pleasure
Join Date: Apr 2002
Location: gent.be
Posts: 792
Quote:
Originally posted by bit-101
eval is not deprecated.
indeed, my mistake
tost
View Public Profile
Visit tost's homepage!
Find More Posts by tost
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Rate This Thread
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Rate This Thread
:
5 : Excellent
4 : Good
3 : Average
2 : Bad
1 : Terrible
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
Off
HTML code is
Off
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
ActionScript Forums Group
ActionScript 3.0
ActionScript 2.0
ActionScript 1.0 (and below)
Simple Stuff (Newbies)
Flash General Questions
Flash 10 General Questions
Flash 9 General Questions
Flash 8 General Questions
Other Flash General Questions
Flex
Flex 2, 3 & 4
Flex 1
Extensions and Plugins
Components
JSFL - Extending Flash
Desktop, Mobile and non-browser Environments
AIR (Apollo)
FlashLite / Portable Devices Development
Projectors and CDs
Supporting Technologies
HTML and JavaScript
haXe
Server-Side Scripting
Flash Remoting
Flash Media Server
General
Best Practices
Gaming and Game Development
Animation and Effects
Flashants Support Forum
Community Boards
General Chat
Just for Kicks Challenges
Detention
Flash In Action
Site Check
Cool Sites
Widgets
Decommissioned
Projects and Positions
CMS Forums
Announcements Board
Content Postings / Updates
Product Review Requests
CMS Technical Questions
Process Questions
Collaboration & Suggested Articles
All times are GMT. The time now is
07:01 PM
.
///
Categories
Tutorials
Flash
Flex
Articles
Best Practices
Product Reviews
Third Party
Press Releases
The Community
Featured Jobs
Technical Flash Artist
MADISON, USA
iPhone/iPad Developer - CREATIVE CIRCLE
Philadelphia, USA
UX DESIGNER - CREATIVE CIRCLE
Philadelphia, USA
- More ActionScript, Flash and Flex jobs in the Employment Section.
- Advertise a job for free
Contact Us
-
Home Page
-
Archive
-
Privacy Statement
-
Top
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by
RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our
Privacy Policy and Terms of Use
.