  | |  | eval string as class reference | eval string as class reference
2004-02-13 - By Peter Elst
Back I 've got a question that has been keeping me busy for a while last night,
its probably something simple that I 'm overlooking. How do you eval a string
to have it reference a class? I 've got a bit of an example below:
_global.styles.ComboBox.setStyle( "openEasing ",mx.transitions.easing.Bounce.e
aseOut);
The code above sets a great assigns a class that assigns a nice little
effect on the openEasing style to all instances of ComboBox. The problem I 'm
having is that I can 't seem to get a string to eval as a class reference.
var easingClass = "mx.transitions.easing.Bounce.easeOut ";
_global.styles.ComboBox.setStyle( "openEasing ",eval(easingClass));
Any thoughts on this are very welcome! :)
Cheers,
Peter
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104157
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |