apache-flex

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

loading swf from AmazonS3 - crossdomain policy

霸气de小男生 提交于 2019-12-12 09:01:47
问题 I have a flash app sitting in domainA which needs to load a swf which comes from an Amazon S3 bucket. On load I get the following error. "Error #2044: Unhandled securityError:. text= " I have put a crossdomain file in the bucket and presumed that would do the trick. How can i fix this? 回答1: You can access S3 using bucket name DNS. So instead of s3.amazon.com/bucketname/filename it is bucketname.s3.amazon.com/filename. Using this method you can put your own crossdomain file in a root path

AS3: call a static class method - class and method names are strings

核能气质少年 提交于 2019-12-12 08:32:56
问题 I have an ugly problem. I have two string variables (className and staticMethod) store the name of a class and it's static method I have to call: package { import flash.display.Sprite; import flash.utils.getDefinitionByName; import flash.utils.getQualifiedClassName; public class ClassPlay extends Sprite { public function ClassPlay() { new Foo(); var className:String = 'Foo'; var staticMethod:String = 'bar'; var classClass:Class = getDefinitionByName(className) as Class; try { classClass

Flex/AS3 Drag Drop - Custom Drop Feedback

安稳与你 提交于 2019-12-12 08:16:56
问题 I am using a HorizontalList component to display a list of images, you can drag images from another component to join the list, this all works fine. If I do list.showDropFeedback(event) I get an unsightly black bar at the top of images in the HorizontalList - what I really want is a line to the left/right of the image, where the new one will actually sit. I guess I need to define a custom DropFeedback to override the default. Does anyone know if there there is a way to achieve this? Thanks!

What are the differences between flex mxml and actionscript-3 [closed]

99封情书 提交于 2019-12-12 08:06:45
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . What are the differences between flex mxml and as3. 回答1: MXML is an XML based mark-up language for conveniently defining user

MaxCharLimit on the TextInput according to it's width

旧巷老猫 提交于 2019-12-12 07:04:19
问题 I am using Flex 4.5 and I want to set the maximum characters limit according to the textinput width means if user enter more character then the textinput width it should not accept those extra characters. 回答1: unfortunately, i have no flex in front of me right now. You should know, how many space e.g. 20 characters needed and set this value to your textinput.width. Check out the widthInChars-property for the spark Textinput. Maybe you can work with a litte offset. When it works, you just have

Fill in the blanks questions in flex using action script [closed]

霸气de小男生 提交于 2019-12-12 06:49:34
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I need to create a fill in the blanks component dynamically. Question text will be retrieved from XML. For Example (some text ____________ some text). The Underline portion should have a text input. The question text will be dynamically loaded and the position should be aligned

flex 3 and itemRenderers

邮差的信 提交于 2019-12-12 06:45:07
问题 i have a datagrid and for one of the columns im using an item renderer to display content. Im wondering is it possible to access the dataprovider content of the datagrid inside a script block in the itemRenderer. Currently I can access the dataprovider in a component in the item renderer using data.variableName. I want to be able do some error handling on this variable in the script block, any ideas? 回答1: You can specify your own ItemRenderer component. Within the MXML of that component you

Autocomplete in Flex 4.0 not displaying items in dropdown list

本小妞迷上赌 提交于 2019-12-12 06:25:08
问题 I am new to flex, actionscript and flash builder (having to do an upgrade to an existing project). One of the problems I seem to have is that the Autocomplete component that seems to be part of flex extras is not displaying the list of items in the dropdown list. Basically, I get a list of blank items. I know they are there and they are the right items because as soon as I click on one, I get the right text in the combobox. my Code in the mxml looks something like this <mx:FormItem label=

Alert is triggered multiple times

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 06:24:36
问题 The following code works in the following way: When I enter incorrect values in the txtother.textbox and focuses out, an alert will be displayed as " Please enter a valid Format Mask." . After pressing the " ok " button in the Alertbox the txtOther.focusout even is triggered again. i.e. immediately after pressing the OK of alert, the same ALERT is displayed again. I have added the code for ur reference: //in mxml File: <mx:Canvas label="General" > <mx:VBox> <mx:Canvas id="cvsGeneral"> <mx