swc

What is a Flash .SWC file and how is it used?

亡梦爱人 提交于 2019-12-08 15:43:12
问题 What is a .SWC file and how is it commonly used? 回答1: In addition to just holding classes, SWCs can also hold media assets. SWCs are used by linking them into existing Flash or Flex projects. Adobe Flash Pro CS4 is the first version of Flash where you could just link in a SWC to a FLA (this is done in the AS3 section of the Flash tab of the Publish Settings). Previously SWCs had to be brought in as components. SWCs allow for the easy distribution of assets between Flash and Flex (well, the

Problem using Flash Components in multiple SWC files

和自甴很熟 提交于 2019-12-08 14:01:27
[Edit: Short version - how do you properly handle namespace collisions in SWC files if one SWC has fewer classes from that namespace than another?] I have a rather large Flash application which I'm building in Flash Builder (because coding/debugging in the Flash IDE is... not good) and I've got a ton of external SWC files which I'm linking in to my application. This has worked well so far - the file size is on the large side, but it's a lot simpler than loading in SWFs, especially since I am extending most of the classes in each SWC and adding custom code that way (it's a very design-heavy app

Export SWC from Flash and Access Child from Flex

流过昼夜 提交于 2019-12-08 12:59:55
问题 I'm creating an actionscript project in Flex Builder. I succeed to export from Flash a SWC file, and to use it succesfully in Flex. I have a good programming background and Flex looks very simple for me, but I have difficult times in flash. I'm trying to achieve something that might be very simple(not for me of course): I create a simple shape in Flash, convert it to symbol. Then I create a TextField. The I select both the elements and convert them to another symbol, and Export it as a

TextField instance inside a button created in a separate layer in Flash is null in Flex

為{幸葍}努か 提交于 2019-12-08 04:50:25
问题 I've created an button object in flash. The button contains 2 layers. One is the background image and on top of it is a textField. The textfield is dynamic. I use the button inside a movieclip and I export it in a SWC. The I'm trying to use it in flex. I'm trying to do this: var myComponent:MyComponent = new MyComponent(); myComponent.button01.theTextField.text = "Caption"; I get and instance of the button( myComponent.button01 is not null in Flex debugger), but the instance of the textField(

Flash CS4 and SWC file library path's

≯℡__Kan透↙ 提交于 2019-12-08 04:26:26
问题 I have a SWC file with a skinned version of the ActionScript 3 UI components. I want to use this SWC file on 'some' of my projects so instead of dropping the file in the Adobe Flash CS4\Common\Configuration\Components path, which makes it available to every Flash project, I add the path to my SWC file in the Publish Settings > Flash > Settings > Library Path dialog. However, what ever I try the components do not show up in my Components panel. How do get my skinned components to show up in

Problem using Flash Components in multiple SWC files

☆樱花仙子☆ 提交于 2019-12-08 03:34:59
问题 [Edit: Short version - how do you properly handle namespace collisions in SWC files if one SWC has fewer classes from that namespace than another?] I have a rather large Flash application which I'm building in Flash Builder (because coding/debugging in the Flash IDE is... not good) and I've got a ton of external SWC files which I'm linking in to my application. This has worked well so far - the file size is on the large side, but it's a lot simpler than loading in SWFs, especially since I am

What is the best way to share assets - icons/images - across multiple Flex applications?

China☆狼群 提交于 2019-12-07 12:12:47
问题 I am in the process of creating a new - "lite" - version of a Flex application I created a while ago. I have been porting over many of the Classes and Components to a Flex Library Project that compiles an SWC file. Because both are Cairngorm applications, I'm not able to completely eradicate duplicate code, but it seems logical that I should be able to share assets - such as icons (PNG files). What is the best way to do this? I have tried including them in the SWC, but I can't figure out how

Flash CS4 and SWC file library path's

为君一笑 提交于 2019-12-07 10:18:27
I have a SWC file with a skinned version of the ActionScript 3 UI components. I want to use this SWC file on 'some' of my projects so instead of dropping the file in the Adobe Flash CS4\Common\Configuration\Components path, which makes it available to every Flash project, I add the path to my SWC file in the Publish Settings > Flash > Settings > Library Path dialog. However, what ever I try the components do not show up in my Components panel. How do get my skinned components to show up in the Components panel without making it a global library? If you make your folder in Adobe Flash CS4

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

陌路散爱 提交于 2019-12-06 08:24:10
问题 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

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

青春壹個敷衍的年華 提交于 2019-12-06 07:40:44
问题 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? 回答1: 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