Brian, thanks for the response.

 

I found that in “About theme limitations” at http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00000577.htm

 

I tried adding the skin through Flash authoring by attaching the class to a symbol in the usual way, but it did not work out. I got some compiler errors (since I was referencing some container classes that aren’t included in the flexforflash library) and ran SWCRepair, but the theme didn’t take effect. Flash also generated a ton of ASI’s for every dependent class of the class I subclassed, increasing the swc file size pretty dramatically. I’m not sure if exclude.xml will work when exporting a component, or if there might be a better way of accomplishing this.

 

I later realized that simply referencing the class name anywhere in AS makes the theme work just fine, so this is a satisfactory solution for now. I assume I could add it to a RSL as well.

 

How would one add the swf skin using compc? I didn’t spend much time on it, but I couldn’t find a way to add swf’s to swc’s using compc. Perhaps there is a way to add classes to an already created swc?

 

Best,

 

Jim

 


From: [email protected] [mailto:[email protected]] On Behalf Of Brian Deitte
Sent: Monday, September 05, 2005 10:34 PM
To: [email protected]
Subject: RE: [flexcoders] Combining graphic and programmatic themes - a better way?

 

Hi Jim, that's a pretty interesting solution that technically should work, but the catalog.xml has many exceptions, caveats, and magical properties.  I would suggest staying away from it if you can.  Did you try just adding both the programmatic and graphical skins to the SWC (through compc or Flash Authoring)?  I don't see any real reason why you cannot add both of these to a SWC file.  Can you tell me where this is in the documentation?  Thanks, Brian

 


From: [email protected] [mailto:[email protected]] On Behalf Of Jim Phelan
Sent: Sunday, September 04, 2005 1:17 AM
To: [email protected]
Subject: [flexcoders] Combining graphic and programmatic themes - a better way?

Hi all,

 

I’m new to the list and somewhat new to Flex development.

 

I found this in the Macromedia documentation:

You cannot combine both programmatic skins and graphical skins in a single SWC file.

 

After toying with it for a while, I found that by manually editing the catalog.xml file in the swc and adding my swf of graphical elements manually, I was able to accomplish what I wanted. Is there a more streamlined solution to this? Has anyone created a utility to automate this? If not, is there an interest in such a utility?

 

Best,

 

 

--

Jim Phelan
VP of Development
Stream57, LLC
462 7th Ave
Suite 401
New York, NY 10018

--

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Software design and development Macromedia flex
Software development best practice


YAHOO! GROUPS LINKS




Reply via email to