Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Passing Variables

Passing Variables

2004-02-26       - By Bo Parker

 Back
Reply:     1     2     3  

I have a calculator that is two frames.  One frame contains text fields and
buttons that set the variable information and the second frame displays the
results.  In the first frame, I have a variable called "prepress".  On the
second frame, I need to run through conditionals to arrive at a total called
"prepressTotal".  I have a movie clip running on the second frame that is
blank but contains the code:
onClipEvent (enterframe) {
   if (prepress > 1) {
       prepressTotal = 0;
   }
   if (prepress = 1) {
       prepressTotal = 65;
   }
   if (prepress > 1) {
       prepressTotal = (((Number(prepress) - 1) * 6.5) + 65);
   }
   trace (prepress);
   trace (prepressTotal);
}

That value is to put into a formula with the prepressTotal as part of the
final calculation.

The variable "prepress" keeps returning undefined or "1" and giving me a
value of 65, no matter what value is entered in the text field on frame 1.
Any ideas how to solve this dilemma?  Thanks,

--

Bo Parker
RMC
215 S Jennings Avenue
Fort Worth, TX  76104
817.332.4700 p
817.332.4710 f

www.rmcfw.com


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington  
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)