header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
rani
Points:0
Posts:0

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



Magie
Points: 0
Posts:0
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.

rani
Points: 0
Posts:0
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=""

Mark
Points: 0
Posts:0
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.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 3+7 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions