Skip to main content
Participating Frequently
July 1, 2008
Question

injecting abc into a swc

  • July 1, 2008
  • 6 replies
  • 1561 views
Hi,

trying to put in place a setup to write code in Flex Builder
but targeted at Tamarin instead of the Flash Player

I was wondering if the default compc could take an already generated *.abc file
to inject it in a *.swc ?

I tried some config wihtout success, so just asking if it's really not possible
(maybe I didn't use the correct parameters) before delving into the java code
of the compiler and try to customize it

in the Flex SDK sources I saw some playerglobal.abc and airglobal.abc,
and I was thinking maybe they are injected in their respective *.swc ?
(instead of being generated at the same time)

cheers,
zwetan
This topic has been closed for replies.

6 replies

_zwetan_Author
Participating Frequently
September 1, 2008
It's not as simple as that<br />my particular need is that I don't depend on playerglobal.swc nor airglobal.swc<br />I'm direclty targeting builtin.abc and toplevel.abc from the Tamarin project<br />and this using only ASC, not MXMLC<br /><br />I thought first that I needed a SWC, but in fact it's much simpler<br />to just slighty edit Flex Builder config<br /><br />that way you can edit any *.as files, even the builtin<br />or define/fake equivalent of the Flash Player API<br />like flash.system.Capabilities<br />(see http://hg.mozilla.org/tamarin-central/file/5799c215dc3c/shell/toplevel.as )<br /><br />have them complety in sync with the code completion in Flex Builder<br />without errors or code completion colision (from the Global.as)<br /><br />cheers,<br />zwetan<br /><br />On Tue, Aug 26, 2008 at 10:29 PM, Josh McDonald <member@adobeforums.com> wrote:<br />> A new message was posted by Josh McDonald in<br />><br />> Developers --<br />> injecting abc into a swc<br />><br />> Can't you just compile-time create some throwaway .as files via inspecting<br />> the .abcs, [embed] the classes and generate a swc? That's gotta be a 3-hour<br />> project, right?<br />><br />> -Josh
_zwetan_Author
Participating Frequently
September 1, 2008
thanks :)<br /><br />I described more in detail the process here<br />http://code.google.com/p/redtamarin/wiki/Main#IDE<br /><br />cheers,<br />zwetan<br /><br />On Tue, Aug 26, 2008 at 9:40 PM, Bjorn Schultheiss<br /><member@adobeforums.com> wrote:<br />> A new message was posted by Bjorn Schultheiss in<br />><br />> Developers --<br />> injecting abc into a swc<br />><br />> nice one zwetan!<br />><br />> ________________________________<br />> View/reply at injecting abc into a swc<br />> Replies by email are OK.<br />> Use the unsubscribe form to cancel your email subscription.<br />><br />>
Known Participant
August 26, 2008
Can't you just compile-time create some throwaway .as files via inspecting the .abcs, [embed] the classes and generate a swc? That's gotta be a 3-hour project, right?

-Josh


On Wed, Aug 27, 2008 at 6:40 AM, Bjorn Schultheiss < member@adobeforums.com> wrote:

A new message was posted by Bjorn Schultheiss in



Developers --

  injecting abc into a swc



nice one zwetan!





View/reply at injecting abc into a swc

Replies by email are OK.

Use the unsubscribe form to cancel your email subscription.





--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: josh@gfunk007.com


Participant
August 26, 2008
nice one zwetan!
_zwetan_Author
Participating Frequently
July 9, 2008
thank you a lot Jono for those infos<br /><br />basically my goal was to generate a swc I could use in Flex Builder<br />but to write AS code targeted at Tamarin (not Flash Player),<br />I thought generating a SWC of global.abc, toplevel.abc could be neat<br /><br />and finally I went the route of overwriting the Global.as you can find in<br />/.metadata/.plugins/com.adobe.flexbuilder.codemodel/extraClassPath<br />with an empty file, and simply externally link the tamarin *.as files<br />and that way I have code completion that strictly work and sync with<br />the tamarin AS sources :)<br /><br />cheers,<br />zwetan<br /><br /><br />On Mon, Jul 7, 2008 at 11:10 PM, Jono Spiro <member@adobeforums.com> wrote:<br />> A new message was posted by Jono Spiro in<br />><br />> Developers --<br />> injecting abc into a swc<br />><br />> There is no way to embed an ABC directly into the compile process; the ABC<br />> would need to be integrated into a SWC for your use case. At present there<br />> aren't any tools to do this.<br />><br />> Playerglobal used to be distributed as an ABC file but is now compiled with<br />> compc, hence playerglobal.swc. We do special-case that swc name occasionally<br />> in the compiler code.<br />><br />> Here's the gist of things, don't take it word-for-word, but it's generally<br />> correct:<br />> The whole point behind a SWC is that it has additional information in it<br />> that is not available in the abc file. Specifically the catalog.xml has<br />> all kinds of dependency info that the flex and flash authoring compilers<br />> track when compiling the AS from source. Later this info is used when<br />> linking in the SWC to pull in additional ABC, either by compiling more<br />> source or bringing in the ABC from a SWC.<br />><br />> - Jono
Participating Frequently
July 7, 2008
There is no way to embed an ABC directly into the compile process; the ABC<br />would need to be integrated into a SWC for your use case. At present there<br />aren't any tools to do this.<br /><br />Playerglobal used to be distributed as an ABC file but is now compiled with<br />compc, hence playerglobal.swc. We do special-case that swc name occasionally<br />in the compiler code.<br /><br />Here's the gist of things, don't take it word-for-word, but it's generally<br />correct:<br />The whole point behind a SWC is that it has additional information in it<br />that is not available in the abc file. Specifically the catalog.xml has<br />all kinds of dependency info that the flex and flash authoring compilers<br />track when compiling the AS from source. Later this info is used when<br />linking in the SWC to pull in additional ABC, either by compiling more<br />source or bringing in the ABC from a SWC.<br /><br />- Jono<br /><br /><br />> From: zwetan <member@adobeforums.com><br />> Reply-To: <flexsdk-dev@adobeforums.com><br />> Date: Tue, 1 Jul 2008 06:26:36 -0700<br />> To: <flexsdk-dev@adobeforums.com><br />> Subject: injecting abc into a swc<br />> <br />> A new discussion was started by zwetan in<br />> <br />> Developers --<br />> injecting abc into a swc<br />> <br />> Hi,<br />> <br />> trying to put in place a setup to write code in Flex Builder<br />> but targeted at Tamarin instead of the Flash Player<br />> <br />> I was wondering if the default compc could take an already generated *.abc<br />> file<br />> to inject it in a *.swc ?<br />> <br />> I tried some config wihtout success, so just asking if it's really not<br />> possible<br />> (maybe I didn't use the correct parameters) before delving into the java code<br />> of the compiler and try to customize it<br />> <br />> in the Flex SDK sources I saw some playerglobal.abc and airglobal.abc,<br />> and I was thinking maybe they are injected in their respective *.swc ?<br />> (instead of being generated at the same time)<br />> <br />> cheers,<br />> zwetan<br />> <br />> <br />> ------------------------------------------------------<br />> View/reply at <a href=http://www.adobeforums.com/webx?13@@.59b5aef3><br />> Replies by email are OK.<br />> Use the unsubscribe form at<br />> <a href=http://www.adobeforums.com/webx?280@@.59b5aef3!folder=.3c060fa3> to cancel<br />> your email subscription.