apache-flex

How to set an image's source in a Flex stylesheet (not Embed)

假装没事ソ 提交于 2020-01-05 03:32:44
问题 This works: <mx:Image styleName="image" source="done.png"> </mx:Image> This doesn't: <fx:Style> @namespace mx "library://ns.adobe.com/flex/mx"; @namespace s "library://ns.adobe.com/flex/spark"; .image { source : url("done.png") } </fx:Style> <mx:Image styleName="image" > </mx:Image> Driving me crazy. How it this supposed to be done? Same results if I do: .image { source : "done.png" } Complete source code is: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com

Having a flex project, how to compile it with mxmlc (not using flashBuilder gui)?

牧云@^-^@ 提交于 2020-01-04 21:36:05
问题 So I hava a usual flex project folder with .actionScriptProperties .flexProperties .project files in it and src , libs , html-template dirs. All my libs are in libs folder and my project is generally theme independent (I use costume theam). Jenerally it is simple live TCP stream video player - only default mx components. I want to have some kind of bat/sh script file for compiling my project from command terminal/cmd in realise mode into specific directory. How to do such thing? Is there

Having a flex project, how to compile it with mxmlc (not using flashBuilder gui)?

和自甴很熟 提交于 2020-01-04 21:34:31
问题 So I hava a usual flex project folder with .actionScriptProperties .flexProperties .project files in it and src , libs , html-template dirs. All my libs are in libs folder and my project is generally theme independent (I use costume theam). Jenerally it is simple live TCP stream video player - only default mx components. I want to have some kind of bat/sh script file for compiling my project from command terminal/cmd in realise mode into specific directory. How to do such thing? Is there

Connecting lines (while dragging) in Flex/Actionscript

若如初见. 提交于 2020-01-04 17:29:48
问题 I have a mx:Canvas element that contains several mx:Panel elements. I want to be able to draw a line connecting two such mx:Panel's in such a way that the line continues to connect the two mx:Panels when one or both get dragged around. It seems like something that should be trivial to do, but I haven't been able to figure it out. In effect, this is the problem. alt text http://img150.imageshack.us/img150/5656/ishot1eu3.jpg Since the updates only occur when the Panel reaches it's final

Connecting lines (while dragging) in Flex/Actionscript

喜欢而已 提交于 2020-01-04 17:26:25
问题 I have a mx:Canvas element that contains several mx:Panel elements. I want to be able to draw a line connecting two such mx:Panel's in such a way that the line continues to connect the two mx:Panels when one or both get dragged around. It seems like something that should be trivial to do, but I haven't been able to figure it out. In effect, this is the problem. alt text http://img150.imageshack.us/img150/5656/ishot1eu3.jpg Since the updates only occur when the Panel reaches it's final

Validation and Invalidation in flex

不羁的心 提交于 2020-01-04 13:06:21
问题 I am new in flex and recently read about Validation and Invalidation in components . May somebody explain what it's mean and when it's use, may be some good article. 回答1: I think the chapter "About creating advanced components" from the Adobe Flex LiveDocs will be a good starting point. Take notice of the subchapter "About the invalidation methods". 回答2: some links for you to learn http://livedocs.adobe.com/flex/3/html/validators_2.html http://blog.flexexamples.com/2007/08/13/validating-flex

Validation and Invalidation in flex

此生再无相见时 提交于 2020-01-04 13:06:18
问题 I am new in flex and recently read about Validation and Invalidation in components . May somebody explain what it's mean and when it's use, may be some good article. 回答1: I think the chapter "About creating advanced components" from the Adobe Flex LiveDocs will be a good starting point. Take notice of the subchapter "About the invalidation methods". 回答2: some links for you to learn http://livedocs.adobe.com/flex/3/html/validators_2.html http://blog.flexexamples.com/2007/08/13/validating-flex

Adobe Air: convert sqlite's result [object Object] to String?

馋奶兔 提交于 2020-01-04 11:37:56
问题 I am currently trying to do retrieve text from sqlite. I see that the amount of data requested do come correctly, but content, on the other hand, seems to be in an incorrect format. I've tried some conversion: var data:Array = sqls.getResult().data; var stData:String = String(data[0]); Alert.show(stData); // <--- displays "[object Object]" String conversion does not seem to do what I want. I simply want the text from the sqlite database. How can I convert the [object Object] to the correct

Accurate seek when using HTTP Pseudostreaming in Flash

我的未来我决定 提交于 2020-01-04 10:40:06
问题 Good day! I've faced one problem when developing my video player in AS3. I use HTTP pseudostreaming for FLV and MP4 (here is a description of pseudostreaming: http://flowplayer.org/plugins/streaming/pseudostreaming.html) The problem : The size distribution over flv/mp4 file is not linear, so seeking based on (stream.bytesLoaded / stream.bytesTotal) * video.duration is not accurate. My solution For this solution we need to have keypoints\seekpoints in video file (you will need the anyway) at

How to use line breaks in Flex with PHP string

烂漫一生 提交于 2020-01-04 09:57:12
问题 This is the MXML I have <mx:Text id="name" styleName="textStyle" maxWidth="400"></mx:Text> Then in the same file I have : <mx:Script> <![CDATA[ private function init():void { name.text = data.string; } ]]> </mx:Script> data.string comes from the DB and it contains this : "This is a string \n with two lines." I also tried this : "This is a string with two lines." None of them create a new line in flex they are both rendered to the screen as \n and . How can I create a new line with a