swc

Compile a SWC using COMPC, excluding 3rd party libs

≡放荡痞女 提交于 2019-12-05 22:18:48
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 choose the classes to include in a swc. Thanks -external-library-path+=my.swc is the answer, though

Can we use compiled Haxe swf's swc's in Actionscript as normal libs?

与世无争的帅哥 提交于 2019-12-04 14:29:51
Can we use compiled Haxe swf's swc's in Actionscript as normal libs? I have a swf compiled from haxe code (I can try to compile it into something else SWC for ex) I want to use it as lib in AS3. Is it possible? If yes how to do it? Yes, you can, the performance increase is worth it, and it's surprisingly easy! I got 3-4X speed-up on both a simple sum-of-primes algorithm and a complex 2D bin packing algorithm. I've posted an entire example project on github -- from Haxe source and compile scripts to usage in an AS3 project. Check it out: https://github.com/jcward/HaxeSWCExample Update: Note

Loading .swc assets into array, in pure Actionscript 3 project

夙愿已清 提交于 2019-12-04 12:36:14
I know how to get Flash CS4 symbols into Flash Builder via .swc. The class names become available in the main class, but I can only instantiate those one by one, writing each name into the code. How can I loop through the .swc and load its assets in an array without mentioning their name, then obtain and use these names for instantiation? ideally, something like (half-assed pseudocode): the_instances: = new Array for(i=0; i<the_SWC.length; i++) { tmp = new eval( the_SWC[i].name + '\(\)' ) the_instances.push( tmp ) } or anything else to get those names in a loop. You have at least 2 options.

Actionscript 3 - List error when loading another a swf in my swf

你说的曾经没有我的故事 提交于 2019-12-02 14:32:40
问题 I am working on a AS3/Flash game and we are running into an issue when we load our home page swf into our login swf after someone successfully logs in. TypeError: Error #2007: Parameter child must be non-null. at flash.display::DisplayObjectContainer/addChildAt() at fl.controls::BaseButton/drawBackground() at fl.controls::LabelButton/draw() at fl.controls::Button/draw() at fl.core::UIComponent/drawNow() at fl.controls::List/drawList() at fl.controls::List/draw() at fl.core::UIComponent

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

人盡茶涼 提交于 2019-12-02 07:41:29
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? I'm not sure if you are allowed to do the following: put the class with your fix in the source path of your main application.

Flash Builder - How to build or include an SWC

大城市里の小女人 提交于 2019-12-01 08:33:34
问题 I'm trying to recreate a modernized version of this tutorial here - but I'm having problems building and referencing a SWC file for inclusion in my Flash Builder project. Whenever I try to reference the SWC, Flash says it's "not a compile time constant" - can anyone help me with the process of building a SWC (mainly, naming it so that Flash Builder can reference it) - and then, in Flash Builder, creating that reference to the SWC? Thanks 回答1: You can build a swc from Flash Builder by creating

Working with SWCs - getDefinitionByName issue

百般思念 提交于 2019-12-01 01:00:28
问题 I have a bunch of graphics assets in a fla, the MovieClips are linked to some classes. I export the fla as a swc , which I add to my library with the option "Merged into Code". All works great, I can create instances of my MovieClips , just by calling their classes like this. //example 1 var newMc:BaseClass = new GraphicAsset(); Now if I want do the following , Flash throws an error , GraphicsAssetClass is null! //example 2 var GraphicsAssetClass:Class = getDefinitionByName("GraphicAsset") as

compile a swc in flash for use in flex, with a class written in flex

时光总嘲笑我的痴心妄想 提交于 2019-11-29 12:25:18
OK, It sounds complicated, but it's not. Here goes: I want to use some assets ( buttons, etc. ) I'm creating in flash in a flex actionscript project. Since all my assets are bellow 10K, I'm not planning to load a swf ,wait until it's loaded and create the interface. I want to use a swc and just instance the clips I need. Also, I want my Button class to have some extra properties, and this is where the problem occurs. If in the Linkage Properties in the Flash IDE I add a reference to a custom Button Class and trace a child of the Button MovieClip, I get the right trace. If then I create a

compile a swc in flash for use in flex, with a class written in flex

こ雲淡風輕ζ 提交于 2019-11-28 05:46:38
问题 OK, It sounds complicated, but it's not. Here goes: I want to use some assets ( buttons, etc. ) I'm creating in flash in a flex actionscript project. Since all my assets are bellow 10K, I'm not planning to load a swf ,wait until it's loaded and create the interface. I want to use a swc and just instance the clips I need. Also, I want my Button class to have some extra properties, and this is where the problem occurs. If in the Linkage Properties in the Flash IDE I add a reference to a custom