I've posted Ant scripts for building rsl's in the past. Do a hunt through the archives for them. There are a few complexities using compc rather than mxmlc.
Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk <blocked::http://www.inps.co.uk/> The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Csiki Sent: 30 January 2008 21:51 To: [email protected] Subject: [flexcoders] Re: How to compile a library using Ant and mxmlc.jar Thanks, it will really help, one more question, hopefully the last one: is there anything specific to set in "compc" to indicate the SWC that's being built is a RSL? I have fear this is a dumb question. Can't I rather use "compc" to generate a RSL directly (SWF file) to be used by the main application? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Gaurav Jain" <[EMAIL PROTECTED]> wrote: > > Lets say you compiled the swc (SwcOutput) to directory instead of a .swc > > You can use it as rsl in the mxmlc compilation. Here is the example: > > <mxmlc file="main.mxml" output="${output}/main.swf"> > <el dir="${flexlib}/libs/player"> > <include name="playerglobal.swc"/> > </el> > <el dir="${basedir}"> > <include name="SwcOutput"/> > </el> > > <rsl url="../SwcOutput/library.swf"/> > </mxmlc> > > Thanks, > Gaurav >

