  | |  | $50 reward...) | $50 reward...) 2004-02-11 - By Alan Rafael Bleiweiss
Back Thanks to all who pitched in! Everyone who put up with my insanity on this has been so completely helpful. Because I've needed to put so much energy into this ONE process, I feel, for the first time in all these months of learning how to do a real site in Flash that I'm actually LEARNING ActionScript!!!
The final issue was resolved by Jayson K Hanes...
What was happening was this:
Go to a page - run Cold Fusion script to pull dynamic content from database
Get the variables and call that process _root.CFresponse
If variables are loaded, say OK
Put the variables into an instance called _root.txtField.records
If so, load an empty target text field movie clip (txtField)
So I had a txtField and it had the resulting variables in it. //Cool - page displays...
Then on clicking another page's button, I was unloading the text field movieclip and starting the whole process over again, just calling a different .cfm file each time.
The problem with this was MANYFOLD... however, essentially, if I understand this clearly now - While my button action was getting rid of the text field, the variables that were being loaded were never "unloaded" before going to the next page... and so the code that was saying "yo - if the variables exist, show this new page... Except OF COURSE the variables still existed - I'd never DELETED the variables anywhere.
So this simple line of code DELETE _root.cfResponse
THAT's ALL it took. DOH! Sucker works perfectly every time now, and for every page!
Now I get to figure out all the REST of the things I want to do on the site that I haven't yet learned!
Eventually, after I can finally deliver this project to the client, I'll go back in and take my time to refine how I do EVERYTHING, reduce my code, create one or more functions...
THANKS AGAIN TO ALL!
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ 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)
Earn $52 per hosting referral at Lunarpages.
|
|
 |