Passing Variables 2004-02-26 - By Bo Parker
Back 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)
|
|