2/8/2010 6:05:52 AM
Title:
generate swc
i am creating a library project in that i m creating actionscript classes in src folder.when i am trying to create swc file of the library by
right-clicking libproject>properties>flex library build path>selecting checkbox of src folder>ok button click
swc of the project is not created in bin folder.
HELP PLEASE
2/8/2010 10:28:51 AM
you just need to copy your classes in the src folder of library project and export the release build . The swc file will be available in the bin folder after that.
2/8/2010 9:24:41 PM
i got swc,actually there was some error in class file,after correcting that error swc file was created in bin folder.
but when i am trying to use that it is not showing its classes.what i should include in WindowApplication tag in xmlns:flexlib=""
2/8/2010 11:42:47 PM
You do not need to add anything to application tag .
Right click on the project folder select "Properties" then "Flex Build Path" There will be a button to "Add SWC" and "Add SWC Folder" which you can use to add folder or just swc file to your project. After browsing and adding your file you can use the classes by adding following line in your actionscript
public var myClass:classNameInSwc;
now myClass is the refrence that you can use to call methods declared inside that class.