Whooohooo! nice :) And ehh is there a way to create the swf with either compc or mxmlc? Or should I use mtasc if I want to compile this class via the commandline?
Greetz Erik -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. Schall Sent: dinsdag 31 mei 2005 16:53 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Using custom classes in RSL Erik Westra wrote: >class fly.language.English >{ > //button labels > static public var okLabel:String = "OK"; <snip> > //=== Language.sws === <library url="Language.swf"> <component name="fly.language.English" uri="*" /> </library> //=== Test.mxml === <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" rsl="Language.sws"> <mx:Button label="{fly.language.English.okLabel}"/> </mx:Application> There is no "class" tag for defining a library, rather you need to use component which is a little mislead. The above has been tested and works. -d Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/