This content has been marked as final. Show 2 replies
For Step #1, open the Flex Library Project's Properties and go to the Flex Library Build Path. Make sure you have the hellowWorld class selected in the Classes tab.
For Step #2, open the project's Properties and go to Flex Build Path, Library path tab. Open the helloWorld's library and double-check the link-type setting. For RSL, make sure you give the URL to the RSL (which will most likely just be the filename) and make sure Auto extract is checked. This will place the swf from the Flex library into the bin directory of the application. So if your Flex Library were hello.swc, then hello.swf would be in the bin directory of the application project. Also, hello.swf would be the RSL URL since it will be comming from the same place as the main application swf.
Now go to the Flex Compiler section of the Project Properties. Add this to the Compiler arguments:
where hello.swf is the name of the RSL swf from the first part of Step 2 above.
thanks for that response peter.
you are right - i hadn't noticed before but adding the library auto-generated a swf in the bin folder. and when i commented out the problem line there was no compiler error on the import line, all of which seems to imply that the library is being recognised okay.
breakthrough! i couldn't see the forest for the trees - while i was trying to work out why shared libraries wasn't working, i didn't notice that i'd missed the word 'static'. the class was available, it was just the FUNCTION that wasn't...
interesting though - i had already done everything you mentioned except for the additional compiler argument, but manually adding this line doesn't seem to be necessary as it is working okay without it.
thanks for your time anyway peter. a simple little word like static huh? cheers. ;)