Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-15-2008, 02:59 PM   #1
OmenKing
Member
 
OmenKing's Avatar
 
Join Date: Jan 2007
Posts: 60
Default Adding SWC files to Flex Project?

I want to add a SWC file to my Flex Project so I can start using its components.

I'm not using Flex Builder and need to know how to do this without it.
The docs say you can add library-path and say where the file is.

So I tried it and Its not working so I'm doing something wrong.

This is what I tired to do:

main.mxml
Code:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:degrafa="http://www.degrafa.com/2007" frameRate="25" backgroundColor="0xCCCCCC" paddingTop="0" paddingLeft="0" paddingRight="0" paddingBottom="0" creationComplete="onCreationComplete()" >
<degrafa:Surface verticalCenter="0" horizontalCenter="0">
	<geometry:Circle radius="150">
	  <geometry:fill>
	          <paint:SolidFill color="#62ABCD"/>
	  </geometry:fill>
	</geometry:Circle>	
</degrafa:Surface>	
</mx:Application>
Terminal
Code:
mxmlc main.mxml -library-path=lib
And I've placed the swc within a directory called SWC.

Any suggestions on how to compile a flex project and including a SWC?
OmenKing is offline   Reply With Quote
Old 04-15-2008, 06:43 PM   #2
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

try

-library-path+=lib
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flex Project AND ActionScript Project : IF tlc660 Flex 2, 3 & 4 8 12-02-2009 07:25 AM
Compiling a Flex 2 project from the commandline Chuck Taylor Flex 2, 3 & 4 3 03-15-2007 10:13 AM
How to structure a project in Flex 2 TheBigDaddy ActionScript 3.0 2 01-24-2007 12:31 PM
Adding links to loaded text files Pixel ActionScript 1.0 (and below) 3 11-05-2001 02:58 PM


All times are GMT. The time now is 12:40 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.