It's as simple as
mx:Script source=includes/Sample3Script.as/
All it does is include the AS file at that point. Everything inside the MXML
file is available to the AS file - no custom events necessary.
See http://livedocs.adobe.com/flex/3/html/help.html?content=usingas_6.html
--- In
: .as vs .mxml best practices
It's as simple as
mx:Script source=includes/Sample3Script.as/
All it does is include the AS file at that point. Everything inside the
MXML file is available to the AS file - no custom events necessary.
See
http://livedocs.adobe.com/flex/3/html/help.html?content
2 matches
Mail list logo