flex4.5

Clicked SWF/IMAGE position to center : FLEX

谁都会走 提交于 2019-12-11 16:13:23
问题 Iam trying to make clicked position to center in flex. My code is <fx:Declarations> <s:Parallel id="transformer" target="{swe}"> <s:Scale id="scaleby" scaleXBy="0.2" scaleYBy="0.2" autoCenterTransform="false"/> </s:Parallel> </fx:Declarations> <s:Group width="500" height="350" clipAndEnableScrolling="true"> <s:SWFLoader source="CasuarinaBigMap.swf" width="500" height="350" id="swe" click="swe_clickHandler(event)"/> </s:Group> protected function swe_clickHandler(event:MouseEvent):void {

how to navigate in spark list control?

会有一股神秘感。 提交于 2019-12-11 15:34:57
问题 I'm building a mobile app, using spark list control. When user tap on a list item, i want it to navigate to that correspondence page <s:List id="list" width="100%" height="100%" labelField=" label"> <s:dataProvider> <s:ArrayList> <fx:Object label="Page One" /> <fx:Object label="Page Two" /> <fx:Object label="Page Three" /> <fx:Object label="Page Four" /> </s:ArrayList> </s:dataProvider> </s:List> how do i code it so that when user tap on item label="Page One" it will navigate to PageOneView

Can't get my relative paths to work with flashDevelop and flex

落爺英雄遲暮 提交于 2019-12-11 13:45:08
问题 So i am using FlashDevelop and flex but i can't get the source to work correctly. When ever i Embed a image it works just fine but if i just go source="../img/Koala.jpg" same path that i used for the working embed it doesn't work. In flash builder all i would have to do is source="/img/Koala.jpg" and it work work just fine. If i type in the path "D:\flashDevelop\FlexMobileProject\src\img\Koala.jpg" this works fine. Can anyone please explain what i'm missing here? <?xml version="1.0" encoding=

Flex - Java byte to mp3

柔情痞子 提交于 2019-12-11 13:35:55
问题 I've a problem in converting byte to .mp3 sound file. In my case I do it using FileOutputStream using its write(bytes) method but it just creates a data file with mp3 extension but I cannot play it in any player on my PC. Note: I'm recording it from Flex Michrophone and send ByteArray to java. Which libraries should I use to add mp3 sound file headers etc. in java? UPDATE: I couldn't even convert my raw data to Wave format that is supported by java sound api.. It creates for me sound with

Images in Adobe Flex

社会主义新天地 提交于 2019-12-11 12:47:31
问题 Im very new to Adobe Flex/Actionscript and am trying to create a person search application. So far I have my results showing as a horizontal list, but Id like to include an image above each name as my wonderful paint skills show: /* listOfPeople is a list of arrays with a["name"] a["sex"] a["dob"] and a["image"] which is just a URI to the image */ <s:List width="100%" height="100%" id="results" dataProvider="{listOfPeople}" change="clickPerson(event)"> <s:itemRenderer> <fx:Component> <s

Color of icon when changing color of button

百般思念 提交于 2019-12-11 10:42:19
问题 I have a button with an icon. I want to have the button in gray so I change the chromeColor but when I do that, the icon became darker. On the left the button without changing the color, on the right, the gray button with and darker icon. How can I have a gray button without changing the icon color ? 回答1: You can do this by modifying the skin class and adding "iconDisplay" to the exclusion array. At the end the line should look like this: static private const exclusions:Array = ["labelDisplay

Export Data's from dataGrid in to excel

こ雲淡風輕ζ 提交于 2019-12-11 10:22:46
问题 how can I export data's from a datagrid in to excel.I'm new at flex.I've no idea about it. Can any one help me for doing this or suggest any examples?pls help me... 回答1: see a below tutorial: Import/Export data in/out of a Datagrid in Flex DataGrid data Export to Excel 来源: https://stackoverflow.com/questions/12070347/export-datas-from-datagrid-in-to-excel

How to trigger itemRendererFunction to be called again when data change in Flex

a 夏天 提交于 2019-12-11 09:04:02
问题 I have a list that uses a itemRendererFunction to get custom item renderers. Is there a way to only reevaluate one item in the list and get different item renderer? imagine code like this : there are two item renderers ItemRendererOne.mxml and ItemRendererTwo.mxml Data.as package { public class Data { private var _data : Boolean = false; [Bindable] public function get data():Boolean { return _data; } public function set data(value:Boolean) : void { _data = value; } public function Data(value

How do you play a local flv video file in flex mobile project?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 07:56:21
问题 Good afternoon, I trying to play a flv file in a flex mobile (flex 4.6) The files will all be locally stored and on the device. Would it be better to use the video even if it is not supported or can i use a movieClip? I am going to try and fade out a picture and then play the video with out any user controls and then fade back to the picture. The this will all be on a tablet. I am using Flash Builder 4.6. If I can use a movieClip would someone please give me a tutorial or a snippet of code on

What is the replacement for labelFunction in Spark DataGrid?

假如想象 提交于 2019-12-11 07:44:00
问题 mx:DataGrid has a property called "labelFunction". I'm migrating my datagrid to Spark, but it doesn't have this property. How should I replace this functionality? 回答1: Use the labelFunction property on the GridColumn class. I'll point out, you would have used the same approach w/ the MX DataGrid. The labelFunction was a property on the DataGridColumn class; not on the DataGrid. 来源: https://stackoverflow.com/questions/6029922/what-is-the-replacement-for-labelfunction-in-spark-datagrid