apache-flex

center a website in flex

我怕爱的太早我们不能终老 提交于 2019-12-11 17:53:40
问题 I am trying to make a websites in flex . I am facing the problem that my website page is not centered. I Have searched google but haven't succeeded yet. I am trying to center <s:Application> on my web browsers instead of starting from left hand How can i do that? 回答1: As per my understanding: - 1) you are trying to embed swf in to HTML, if you want your swf to be at the center of HTML you have to embed swf in to one container on HTML side. Place your container position at center by providing

Flex 3: Dynamic creation and binding of textinput

一世执手 提交于 2019-12-11 17:46:54
问题 Does anyone have any examples on how to create a dynamic number of TextInput boxes and have each of the text being typed in these boxes be bound to a label? For example, say I have an XML file that specifies that I want 3 TextInput boxes. Flex should then take this data, create the TextInput boxes, create bindable variables for each TextInput and create a label to display what is being typed for each TextInput . The biggest issue I'm having with solving this scenario is how to bind a variable

Flash Builder keeps losing my imported classes…arghh

a 夏天 提交于 2019-12-11 17:43:29
问题 I've been having this really annoying thing happen the past few days, that has happened before but not as frequently. I create a project in Flash Builder, import some classes, and then on occasion it keeps erasing those classes. So then I get errors in a lot of my datatypes, have to go back through my document and retype the datatype so that it reimports the class. What could be causing this? I know flash builder can be a bit buggy at times, but wasn't sure if someone else has had this

Flash Developer IDE

不想你离开。 提交于 2019-12-11 17:35:26
问题 I was wondering which IDE choice you flash developer use to write the code....I use Flex Builder for my AS3 only project so the code below will display nicely with coloring keywords. I wanted to know if there are better choices there...Also, does flash developer do the AS3 programming only? Do they do graphic design at all? Thanks for the reply... 回答1: I really suggest you to use FlashDevelop as your default IDE. This program is a lot lighter than Flash Builder (which is built on Eclipse). If

Invalid unicodeRange in CSS, Flex

一曲冷凌霜 提交于 2019-12-11 17:33:50
问题 I'm having a hard time trying to limit the size of the app by reducing the unicode range of my fonts. I've tried several different combinations, the error is the same no matter what range I put there: -invalid Unicode range '005A' Where 005A can be anything, if I do this: unicodeRange: U+0020-007E; The error is this: -invalid Unicode range '007E' I've tried different fonts, Arial, Helvetica, Century... Same error in everyone, all the unicode ranges throw errors in the CSS file. Any ideas what

Flex make image full screen

五迷三道 提交于 2019-12-11 17:26:36
问题 when i run the image, it only appear in center with 2 blank white space in between. <s:Image x="0" y="0" height="100%" width="100%" source="@Embed('assets/d.jpg')"/> How can i make an image goes full screen (covering up the whole screen) with double tap/touch on mobile app? And if possible how to turn it back to non-full screen (back to normal)? thanks. image size: W=1920, H=1200 回答1: To remove the white bars you're going to have set the scaleMode of the Image tag. The default is Letterbox;

Parse boolean values in strings for use with Function.apply

旧巷老猫 提交于 2019-12-11 17:17:14
问题 I'm using String.split to parse a command line string into an array of strings. The result is then used to call a function using the Function.apply API. If apply(null, ["17"]) is called with this function: static function test(foo:int):void { trace(foo, typeof(foo)); } it works as expected (output: 17 number ). However, calling apply(null, ["false"]) or apply(null, ["0"]) with this function: static function test(foo:Boolean):void { trace(foo, typeof(foo)); } does not work (expected output:

Check transparency

*爱你&永不变心* 提交于 2019-12-11 17:16:28
问题 I have swf file(900x600) and main part of that file is transparense. So I want by clicking in swf file know either user clicks on transaprent part of image or not... I can get mouse coordinates by event.localX event.localY So how to know in clicked part swf is transparent or not? 回答1: First of all, be sure, that you have some transparent sprite on background of your swf - otherwise you won't receive event. Second, do not use pure local coordinates, they can contain local coordinates of

Flex DropdownList does not show the correct values

眉间皱痕 提交于 2019-12-11 17:14:27
问题 I have a Flex Spark dropdownList in which I need to show the Provider FirstName,LastName: <s:DropDownList id="providerList" dataProvider="{model.practiceProviderList.practiceProviders}" labelField="provider.providerName.firstName"/> But the output shows only [object Object] & [object Object] as there are 2 providers in the DB and does not show the actual values. The PracticeProviderList.as: [Bindable] [RemoteClass(alias="model.PracticeProviderList")] public class PracticeProviderList extends

Add own watermark to flex chart

自作多情 提交于 2019-12-11 17:08:31
问题 does someone know how to add a watermark to a charting component in flex? Maybe to a Line Chart or just simple to a canvas. Thanks in advance Sebastian 回答1: Try making the background of the chart transparent (backgroundAlpha: 0), then wrap them both in a canvas, and put your watermark behind the chart <mx:Canvas><mx:Image/><mx:Chart/></mx:Canvas> 回答2: You can manipulate backgroundElements of your chart, for example <fx:Declarations> <fx:Array id="backgroundContents"> <mx:Image source="..