swc

SWC Instance name on movieclips?

佐手、 提交于 2020-01-16 01:03:59
问题 Is it possible to compile movieclips to swc with the instance name as property name? This happends when I add a dynamic text field, but i would like this also on some UI elements. 回答1: Tick the "Export for ActionScript" box in the symbol properties and give it a class name. That will make it show up in the swc. So if you have a Car clip containing a Driver clip you will need to check "Export for actionscript" on both these clips. If you then give the Driver clip an instance name it will show

Maven failure to download swc files

╄→гoц情女王★ 提交于 2020-01-05 07:43:27
问题 I'm trying to use Maven to build a Flex project using the Sonatype flexmojos. I've set up the project and the build mostly works until it tries to download various swc files from the Sonatype repository, eg. Downloading: http://repository.sonatype.org/content/groups/flexgroup/com/adobe/flex/framework/framework/3.2.0.3958/framework-3.2.0.3958.rb.swc Downloading: http://repository.sonatype.org/content/groups/flexgroup/com/adobe/flex/framework/flex/3.2.0.3958/flex-3.2.0.3958.swc ... There are no

How to properly use .SWC packages in Flash CS 4

为君一笑 提交于 2019-12-25 06:35:00
问题 I've googled a lot trying to find how to properly import and use .swc files in Flash CS 4, tried lots of different methods but none seem to work. What I've done is: 1. Placed it in my "D:\Program Files (x86)\Adobe\Adobe Flash CS4\en\Configuration\Components" folder. It does however not show up in the component inspector. 2. Added it in Publishing Settings as a Library and External Library, still can't seem to use it. I've also tried adding "import org.osflash.signals;" after each method but I

Flash AS3 Attach SWC Symbol Based on XML Element

╄→гoц情女王★ 提交于 2019-12-24 23:37:34
问题 I have a SWC which contains 8 sprites, each of which has a linkage identifier with the pattern Icon01, Icon02, etc. I can create an instance of one of these sprites by doing something of the form var i:Icon01 = new Icon01(); this.addChild(i); However, I have an XML file which contains different messages, and each message contains an image element that is labeled in the same fashion ... <message> <image>Icon01</image> </message> ... I would like to be able to parse the XML and have the

Embedding/importing SWC at compile-time in ActionScript, without setting a library path

吃可爱长大的小学妹 提交于 2019-12-24 12:28:01
问题 Hail, Stack! I'm having a little trouble figuring out how to import a SWC file directly in ActionScript, without setting a library path to the file. To exemplify, I need something like this: package { [Embed(source = 'Library.swc')] // This line won't work, of course... import ClassInsideSWC; public class MyClass extends ClassInsideSWC { public function MyClass() { super(); } } } Besides, I don't want to (I can't, in fact) import the SWC by loading it with Loader class. Well, someone knows a

How to monkey patch or override a swc class in Flex?

烈酒焚心 提交于 2019-12-20 07:06:10
问题 I'm using a swc from the Axiis project to display visualizations in a project I'm working on. I've run into a bug where re-compiling the library swc would be an easy solution, but I can only use the buggy version of the swc. I have the Axiis source and compiled a version with the bug fixed, though I'm not allowed to use it because of client version restrictions. Does anyone know how I can use the updated Actionscript class/file in my code so it overrides the swc class? 回答1: I'm not sure if

MovieClip assets SWC from Flash inaccessible in Flash Builder using getDefinitionByName

瘦欲@ 提交于 2019-12-14 02:42:48
问题 I need to access MovieClips from an SWC created in Flash using getDefinitionByName() in Flash Builder. I know I have to add in the full package name whilst doing this, like so, with the package name being 'com.fusepump': var className:String, assetName:String, obj:Class, i:uint; for (i = 0; i < Config.ASSETS.length; i ++) { className = String('com.fusepump.' + Config.ASSETS[i]); assetName = String(Config.ASSETS[i]).charAt(0).toLowerCase() + String(Config.ASSETS[i]).substr(1, String(Config

How do I include a SWC in an AS2 Flash project?

耗尽温柔 提交于 2019-12-12 19:08:07
问题 In AS3, I know how to accomplish this. One needs only to click "ActionScript Settings", and navigate to the SWC file under "SWC Files or Folders Containing SWC Files". However, when the project is set to AS2, the "Actionscript 2.0 Settings" is a rather sparse menu, and adding the folder as a classpath doesn't seem to work. Can this even be accomplished? 回答1: Assuming that your SWC was created for AS2 as a compiled component, you have to add it to your Flash components folder. For me, using

Compile a SWC using COMPC, excluding 3rd party libs

别来无恙 提交于 2019-12-12 09:47:40
问题 I have a code library that I have built. It relies on 2 other (third party) libraries. At the moment, when I compile the library into a swc, both third party libraries are included. I am looking for a way to compile my code library against the third party libraries, but without including them in the compiled swc. This would obviously mean that anyone using my library would need both libraries as well, but I would prefer it this way. I am not using Flex/Flashbuilder which I know allows you to

How to use a relative path for a swc library in Flash Builder 4.6

时光怂恿深爱的人放手 提交于 2019-12-11 06:49:11
问题 I'm using Flash Builder 4.6 and in one of my ActionScript projects, I have a referenced .swc library file. The way I added it was Project > Properties > Flex Library Build Path > Library Path tab > Add SWC... Here a popup occurs and I must select a .swc file by browsing through my machine and selecting one. Once I do that, it'll display the added library like this: somelibrary.swc - /Full/Path/to/the/swc/here/lib/somelibrary.swc What I want to be able to do is use a relative path instead,