  | |  | Evaluating a statement 'if (x==4){trace(\ 'match\ ')}; ' | Evaluating a statement 'if (x==4){trace(\ 'match\ ')}; ' 2004-02-17 - By Brook Davies
Back Is it possible to write an entire statement and the evaluate it? like this example:
x=4; trace('if (x==4){trace(\'match\')};'); // outputs the literal string trace(eval('if (x==4){trace(\'match\')};')); // outputs undefined
In Cold Fusion its quite a hack to make this kind of evaluation to work. You actually need to write the CFM file with the string to the disk and then include it in your code to have it evaluated. I 'hope' its possible in flash.
Brook Davies
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ 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.
|
|
 |