FAQ Database Discussion Community


how to change prompt size of textinput in flex?

flex,fonts,command-prompt
I have created a spark text input component and I prompt a text in the text input using prompt property. But the font size of prompt is very small. How to change the font size of prompt....?

Flex mx:SWFLoader Loads Incorrect SWF File

actionscript-3,flash,flex,actionscript,swfloader
I'm fairly new to Flex and am having an issue where I have a main Flex program (let's called it "Parent.swf") attempting to load another Flex application (Child.swf) via the SWFLoader class/component. Environment is Flex 4.6 on FlashDevelop. The call appears to work correctly (i.e. no IO or sandbox errors...

Is there a class in AS3 that tells you the type of the URL protocol?

actionscript-3,flex,flex4
Is there a class in AS3 or Flex that tells you the type of protocol a URI or URL is part of? I was sure there was a class that broke a URL into various parts and grouped it into usable data. For example, if the URL is, "mailTo" it...

How can I remove button I press in Flex?

arrays,actionscript-3,flex,actionscript
When I try this it doesn't remove the right button. Could you please point me in the right direction in finding what's wrong. private var myArray:Array = []; private var myButton:Button; public function addButton():void { var i:uint = myArray.length; myButton = new Button(); myButton.label = "New Button"+ String(i); myButton.id= "myButton"...

Flex property binded to datagrid dataProivder array

flex,actionscript,mxml
I have the following datagrid in my application mxml: <event:SelectRowDataGrid id="resultDG" dataProvider="{model.EventDTOs}" ... <event:columns> ... SelectRowDataGrid is my extension of the Flex DataGrid: package xx.xx.xx.xx.event { import mx.controls.DataGrid; public class SelectRowDataGrid extends DataGrid { private var _checkedItems:Array; public function SelectRowDataGrid() { super(); _checkedItems = new Array(); } public function get...

Flex valuation of conditional expression issue (data binding ?)

flex,data-binding
I'm in trouble with valuation of conditional expression in Flex. Let me explain. I have this : <s:Label text="SomeTextLawyer" includeInLayout="{Session.isLawyer()}" visible="{Session.isLawyer()}"/> <s:Label text="SomeTextDoctor" includeInLayout="{Session.isDoctor()}" visible="{Session.isDoctor()}"/> This Session object is defined as below : public class Session extends Singleton { [Bindable] private static var user:User; [...] public static function isDoctor():Boolean {...

After enabling spell checking with Squiggly the delete key and arrow keys stop working

flex,flex4,squiggly
After enabling Squiggly on a TextFlow the delete key and arrow keys stop working. If I click around or switch applications and switch back it sometimes starts to work again. If I do not use Squiggly at all the delete and arrow keys work as expected. Here is the code...

How to use Adobe AIR with Flex 4.6 SDK?

actionscript-3,flash,flex,air,mxml
I've been trying to use Adobe AIR 3.1 that comes with Flex 4.6 for my project. I have been receiving the error application descriptor not found. My descriptor file looks like this inside D:/Test/. <?xml version="1.0" encoding="utf-8"?> <!-- D:/Test/AIR.xml --> <application xmlns="http://ns.adobe.com/air/application/3.1"> <id>Test</id> <versionNumber>1.0</versionnumber> <filename>Main</filename> <initialWindow> <content>Main.swf</content>...

How to define rectangle of visible children in Flash/AS3 (“real” element size)

actionscript-3,flash,flex,canvas,layout
I use BitmapData.draw to make a snapshot of a graph canvas. On the canvas located some children in random positions (including negative positions). I should to define in some way what rectangle bounds to shoot. SO, for example, i have 3 nodes in the view (canvas): {10x10, (-5; -3)} {20x20,...

Parsley Command Decoupled Result Handlers and Observers

actionscript-3,flex,model-view-controller,parsley
I posted a question last night that after reading back sounded awful, so I deleted it and have come back to try again, this time properly. I have a Flex Mobile App, that uses Parsley, everything works as expected but I am trying to do use a decoupled result handler...

Dynamically fill comboBox providers in Flex Datagrid

flex,combobox
I am trying to dynamically add comboBox's to a DataGrid, and for each comboBox I expect a unique dataProvider. So for example I have built a grid as follows: <s:DataGrid id="testGrid" horizontalCenter="0" width="100%" dataProvider="{testArr}" gridClick="handleTestGridClick(event)"> <s:columns> <s:ArrayList> <s:GridColumn dataField = "valName" headerText="Name"/> <s:GridColumn dataField = "testVals" headerText="Selections> <s:itemRenderer> <fx:Component> <s:GridItemRenderer>...

Setting the x property through effect does not work on target UI Component?

actionscript-3,flex
I have a Move effect that was working but now that I put it into a Parallel composition effect it no longer works. Here is the effect declaration: <s:Parallel id="slideToTheRightAnimation"> <s:Move id="slideToTheRightMove" target="{myComponent}" xFrom="0" effectUpdate="trace('myComponent x=' + myComponent.x)"/> </s:Parallel> Here is the component definition: <comp:OptionsPalette id="myComponent" width="350" height="115" y="160" layoutDirection="{LocaleManager.layoutDirection}"...

Flex 4 VGroup.getElementAt() returning id of element

actionscript-3,flex,flex4,flex3,flex4.5
In our code we are dynamically adding checkbox into a vgroup. code follows something like this FLEX 3::: var tempVBox:VBox = new VBox; var tempCheckbox:Checkbox = new Checkbox; tempCheckbox.id="someid"; tempCheckbox.label="somelabel"; tempCheckbox.event="someevent"; tempVgroup.addChild(tempCheckbox); and in same actionscript we have another function to getcheckbox element to perform some operation like select all....

Search for exact word or phrase in Flash Builder's “Search” tool?

regex,eclipse,flex,flex4,flash-builder
How do I search for an exact match to a phrase or word in Flash Builder's search tool? For example, in my project I have a class with a function named "removeEvent". If I search on it, I get all instances where "removeEventListener" is used and of course that is...

select all checkbox in advanceddatagrid flex headerrenderer [closed]

flex,itemrenderer,renderer,advanceddatagrid
I am trying to have a "Select/DeselectAll"checkbox in an advanced data grid column in flex. <mp:Table id="dataTable" dataProvider="{rpadata}"> <mp:columns> <mx:AdvancedDataGridColumn dataField="selected" textAlign="center" minWidth="36" width="36" paddingLeft="0" paddingRight="0" sortable="false"> <mx:headerRenderer> <mx:Component> <mx:CheckBox/> </mx:Component> </mx:headerRenderer> <mx:itemRenderer> <mx:Component> <mx:CheckBox width="18" click="{data.selected =...

Reload AIR application remove Skin and background image in flex

actionscript-3,flex,air,flex4.6
I am working on AIR application. In which i Put refresh button to refresh the application. When User click on Refresh Button following code refresh my application. protected function onRefreshClickHandler(event:MouseEvent):void { var app:WindowedApplication = WindowedApplication(FlexGlobals.topLevelApplication); var mgr:ProductManager = new ProductManager("airappinstaller"); mgr.launch("-launch " + app.nativeApplication.applicationID + " " + app.nativeApplication.publisherID); app.close();...

Flex: Replacing characters in a string based on a mask

flex,string-formatting,masking
I am attempting to apply a mask to another string to replace all wildcards in one string with the matching characters in the matching index while keeping the non-wildcard characters. Eg: starting string: "1234-234-3456-45-9876" mask string: "____-___-0001-__-____" when applied together: "1234-234-0001-45-9876" Is this some usage of Regex I haven't seen...

Flex 4 DataGrid with floating toolbox ItemRenderer

flex,datagrid,itemrenderer,toolbox
At my project I've a DataGrid component that holds some information and, at the final column I need to put a floating tool box. The idea is when the user hit on the icon's tool box, it appears above a floating tool box like a menu holding some icons to...

Two ane file conflict in one flex mobile application

android,ios,actionscript-3,flex,air-native-extension
I have two ane file for video recorder. One is for android and another is for ios device. Both have different package name and methods. Now, i import both Native Extension in single project. And detect ios and android device following way: if(Capabilities.version.indexOf('IOS') > -1) //for ios device And if(Capabilities.version.indexOf('AND')...

Flex include as3 script file

actionscript-3,flash,flex
I made a new as3 file from flash builder added this code : import flash.external.ExternalInterface; public function alfa() : void{ var someVarInAS : String = 'foo'; var someOtherVarInAS : int = 10; var jsXML : XML = <script type="text/javascript"> var someVarInJS = '{someVarInAS}'; var someOtherVarInJS = {someOtherVarInAS}; <![CDATA[ //here be...

Polymer 1.0 iron-flex-layout only works on some tags

css,flex,polymer,polymer-1.0
Update: The polymer docs are now updated to reflect the answer below I'm doing a polymer 1.0 app. I'm trying to layout some paper toolbars on part of the screen horizontally. It seems I can get iron-flex-layout's @apply(--layout-horizontal) to work on some elements but not on others. I put together...

Flex box in flex box, and positioning not works. (Flexbox in flexbox)

html,css,flex
UPDATE For those, whom not like the inline CSS, and want classes, here are another jsFiddle with classes and with stylesheet. UPDATE END I want to make a product page. It will have three columns. The first is the picture, second is some specification, third is the "into basket". All...

What clipboard format does InDesign use?

actionscript-3,flex,indesign,adobe-indesign
I'm trying to create data to paste into InDesign and I'm using the following code to copy my data to the clipboard: Clipboard.generalClipboard.setData("dms", xml.toXMLString()); But when I paste it into InDesign, it shows the code rather than the formatted content. I don't know if the ClipboardFormat is correct and I...

Flex Mobile Devlopement: Small views on Nexus 5

android,flex,flash-builder
I just started developing Android/iOS apps using Flex.. I have a question about difference reason between testing the app on a real device ( Nexus 5 ) and Flash Builder Emulator ( Samsung Galaxy Ace ) You can see the Actionbar has a good look on Samsung Galaxy Ace: And...

Is there an official AS3 API or class to check if an object has no properties?

actionscript-3,flex,as3-api
Is there is an AS3 API, a Flex class or a way than what I have listed below to test if an object is empty? This does not work on a Flex application: var o:Object = {}; var result:Boolean = isEmpty(o); // true var result2:Boolean = isEmpty(FlexGlobals.topLevelApplication); // true function...

Remote scalable graphics in Apache Flex?

flex,pdf,svg
I have a basic Flex application that shows remote images using s:Image tags. According to the documentation, s:Image is constrained to PNG, GIF and JPG filetypes. I would like to include a scalable graphics format (SVG or PDF; the graphics are generated by Python/cairo) instead. I see that I can...

call Win32 API in flex to set Window Display Affinity

winapi,flex,air
I have created a Flex Desktop Application with Adobe Air. I need to protect the application from being captured. By changing the window display affinity of the application, the application can be protected from being captured. How to use win API in flex? Is there any other way to protect...

ColdFusion + PhoneGap or Flex/Flash for Mobile Apps

flex,coldfusion,mobile-application
I've been building a website using ColdFusion and jQuery which works best on a desktop PC. Now I'm looking into taking the same basic web application and making it suitable for a smartphone. I appreciate that there are extra features on a mobile such as being able to access native...

How do I download the language packs for Squiggly?

actionscript-3,flash,flex,squiggly
I'm using Squiggly to add dynamic spell checking library code to the project and I need to add a new language. Where do I download new language packages that I might tie into the code?

DataGrid ItemRenderer

flex,datagrid,itemrenderer
Here's the thing: I've this DataGrid that holds a column with the purpose of handle some actions. So, this DataGrid have several data columns and, at the end there is this special column. At this special column named "operations" there are two icons; one of 'em shows an alarm icon...

Change Text of spark progress bar in flex

actionscript-3,flex,actionscript,progress-bar
I think this is easy but get stuck while implementing. I added progress bar in my project which will show the download process. I am going to change text of progress bar from loading 20% to Downloading 20%. I make following changes in my code as i seen somewhere. <mx:ProgressBar...

FLEX : avoid memory leaks

flex,memory-leaks
If in a component I have basic Button which can propagate MouseEvent.CLICK like this : <s:Button id="btn" click="someFunction(event)" /> Should I manually remove this event if I remove my component with parent.removeElement(myButton) function or is it automatically removed ? Thanks for clarification...

Posting And playing SWF videos in fb using Javascript SDK

wordpress,facebook,facebook-graph-api,flex,facebook-javascript-sdk
I am developing a WP plugin to post WP posts to FB. I am trying to post SWF videos generated from my site to FB using javascript SDK. The thumbnail,description link and all other things are get posted.But when I click the thumbanil it is not playing the video,instead redirecting...

Choice for multi-platform application development

actionscript-3,flex,starling-framework
I like actionscript very much and did a project with Apache Flex 4.12. Originally my mobile application was built in mxml and the performance was awful. Then I rewrite the application with single line mxml file and the rest of the project in pure as3, the performance is much better....

Difference between AMFChannel and pollingAMFChannel

flex,flex4,flex3,flex4.5
I found an Adobe document that defines the amfChannel Adobe amfChannel. Is there a big difference between amfChannel and pollingAMFChannel? FlashBuilder 4.7 does not provide any documentation.

AS3 can't find the load method on a Loader

actionscript-3,flash,flex
I'm trying to load an image from the internet with AS3 following this tutorial. When I try to compile the application I get the following error: Call a possibly undefined method load through a reference with static type Loader. my_loader.load(where, loaderContext); ^ Here is the code I'm using: package {...

automatic layout adjustment to varying browser window size

flex,layout,rows,mxml,screen-resolution
In Flex4/mxml, I have a bunch of elements like TextFields, Buttons or anything else. I want to place them horizontally next to each other. But for cases where the browser window or screen resolution is too small such that not all of them fit horizontally, I want a layout which...

how to color advanceddatagrid column background based on condition?

flex,advanceddatagrid,itemrenderers
AdvancedDataGrid does not allow me to use column level itemrenderizer nor style function using which i should fill the background color of the column on specific conditions on each row . I tried the style function where it changes the text color but not the background color for the cell...

Error: Call to a possibly undefined method getRegionNameForCountries through a reference with static type com.framework.model:CountryModel

actionscript-3,flash,flex,actionscript
Trying to figure out why I can call this function from a instantiated version of this class. The error I get is this: Error: Call to a possibly undefined method getRegionNameForCountries through a reference with static type com.framework.model:CountryModel. The error comes from this code: public static function territoriesFunction( item:Object, column:DataGridColumn...

can any body help me with binding trouble in flex?

actionscript-3,flex
i wrote the following: <mx:DataGrid id="courseslist" includeIn="Classes,Dorat,LogIn,Main,Students,Teachers" x="11" y="160" width="1142" height="240" creationComplete="courseslist_creationCompleteHandler(event)" editable="true" itemClick="courseslist_itemClickHandler(event)" showHeaders="false" textAlign="right"> <mx:columns> <mx:DataGridColumn dataField="category" width="90" editable="true" editorDataField="selectedItem" activate="datagridcolumn1_activateHandler(event)" itemEditor="{inlineEditor}">...

Get textinput number of character in Flex

actionscript-3,flex,actionscript,flex4.6
I have textinput in flex we application. <s:TextInput id="txtGuestCount" maxChars="2" editable="false"/> Where i limit maxChars to 2. It works when i remove editable="false" from textinput and type using keyboard. Problem: But same thing is not works when i do using button click like: <s:Button width="50" height="50" chromeColor="#ffffff" label="1" buttonMode="true" click="onNumberClick(event)"/>...

How can I remove duplicate names?

actionscript-3,flash,flex,actionscript,arraycollection
Consider the follwoing code: The follwoing code print processorName in this format: DC5,DR2,DR3 But when it comes to duplicates it prints as DR3DR3. I need to remove the duplicate processorName. I am not able to figure it out, how can I do this? public function processorNameFormat(item:Object, column:GridColumn):String { var processorNames:String...

How to dispatch an event with dynamic content in Flex?

actionscript-3,flex
I often have the requirement to dispatch a flash.events.Event with soem custom String text, like: protected function mouseClicked(event:Event) { //here I'd want to notify anyone interested in the button click, //and also transfer the name of the button (or whatever) that was clicked - assume some dynamic value dispatchEvent(new Event("myMouseEvent"),...

Save in flex a file get by web service

web-services,flex,filereference
I'm working with Flex 10 for web applications. I need to save a binary file which is received in Flex from a web service. To do this I need to use FileReference.save(), which must be invoked by a user event (mouse or keyboard) for security requirements of Flex. The general...

Open jquery ui dialog from flex/flash

jquery,html,flash,flex
I need to open html pop-up to show some d3.js visualization in flex application that runs in browser. I am planning to use jquery UI dialog for this purpose, but the question is how can I trigger modal box from flex application? The only solution that came to my mind...

Get Button click position on indexOf array from a component

actionscript-3,flash,flex
Thank you in advance, I'm trying get the position of a button on the array after the button was click. The button is part of a group component. the component is this: <fx:Metadata> [Event(name="eventoConcluido", type="flash.events.Event")] </fx:Metadata> <fx:Script> <![CDATA[ protected function endEventBtn(event:MouseEvent):void { var eventTerminado:Event = new Event("eventoConcluido"); dispatchEvent(eventTerminado); //this.removeAllElements(); }...

Flex DataGrid Header Column Separator

flex,datagrid,flash-builder
I'm using an mx:DataGrid (in a Halo theme) and I'm having some issues with the header column separators/vertical grid line colors. Does anyone know how to customize/change the line color? Thanks! --Moe...

Adobe Flex Project: Buttons seem to be calling wrong methods

flash,flex,button,adobe,builder
When I run this code, if I click the 'testExportToCSV' button, the application executes as expected ['save file to...' window opens]. However, once I click that button, the other two buttons then somehow trigger the same window ['save file to...'] to open as if I had clicked the 'testExportToCSV' button....

Get dispatchEvent data as a result

actionscript-3,flex,actionscript,flex4.6
Here i am working on native extension in which i send/dispatch data in the dataevent like: public static const PASSING_VIDEO_URL : String = "PASSING_URL"; dispatchEvent( new DataEvent( PASSING_URL,true,false,level) ); Now on eventlistener cd.addEventListener( CD.PASSING_URL, onURL ); protected function onURL(event:Event):void { txtUrl.text = event.data; txtUrl.text = event.text; } I got that...

ActionScript assignment operators, what does >>>= mean?

actionscript-3,flex
On the Adobe ActionScript page link below, there is a list detailing Operator Precedence. It includes the following: = *= /= %= += -= <<= >>= >>>= &= ^= |= What do the <<= >>= >>>= assignments mean? http://www.adobe.com/devnet/actionscript/learning/as3-fundamentals/operators.html#articlecontentAdobe_numberedheader_1...

Changes made to Flex Builder project not being reflected in Firefox/IE

flash,firefox,flex,flexbuilder
I've been having problems with the flash debug player in Firefox and IE recently, as it won't update when changes are made to the code. Chrome seems to be working fine for me, any changes made get reflected there, although I believe a co-worker is having the same problem I...

why and when override public function set data

flex,flex4,flex3
i had make some research over the internet about the itemRender i just found some articles that describe the itemRender like Adobe Item Render , The Best Practice with item render in flex development all these articles explain how ItemRender works ? but they did not specified why we are...

How to select text property in mx:DateField

actionscript-3,flex,mxml
I want to manually select the text inside the "textInput" box of Datefield. How can i do that? Since only TextInput components have "selectAll()" method which selects the whole string inside the insertion box. I've looked everywhere and never found. I've tried this var text_input:mx.controls.TextInput = date_field.mx_internal::getTextInput(); text_input.setSelection(0, text_input.length); text_input.setFocus();...

ipad does not show up in Adobe Flash Builder

flash,flex,air
I'm trying to build an Adobe Air app. On one of my computers, I was able to connect the ipad and deploy to it. Then I copied the *.p12 and *.mobileprovision files over to another computer that also has Flash Builder. I made sure flash builder pointed to these files....

type conversion if flex

java,actionscript-3,flex
I am using Flerry as Java-Flex bridge for my Flex Desktop Application. How to convert List in Java to ArrayCollection in Flex Flex Code:- [Bindable]public var screenList:ArrayCollection; <flerry:NativeObject id="windowControllerObj" source="ls.window.EnumAllWindowNames" singleton="true" fault="windowControllerObj_faultHandler(event)"> <flerry:NativeMethod id="getWindowNames" name="getAllWindowNames" result="windowControllerObj_resultHandler(event)" fault="getWindowNames_faultHandler(event)"/>...

How do I set the border color in a Spark TextArea?

flex,flex4
How do I set the border color in a Spark TextArea? There is no attribute style for borderColor in Spark TextArea. <s:TextArea id="textarea" borderColor="0"/> ...

Adobe Air stagewebview not using useNative browser

actionscript-3,flash,flex,air,stagewebview
Hi I am creating a desktop flex application with a stagewebview that will not use the native browser instead of the old webkit. The documentation says to specify useNative as true in the first parameter like below. Anyone have an idea? I am building on windows with Air 17 and...

Differentiate between scroll and swipe in Flex Mobile Application

android,flex,flashdevelop,gestures
Is it possible to differentiate between a Horizontal Swipe gesture and a Horizontal Scroll in Flex Mobile. I have a List (horizontal layout) with no listener attached to it, and a view, with a GestureSwipe listener attached to it, when I try to scroll the list the swipe gesture gets...

mobile friendly CSS multi column layout that doesn't suck like flex

android,html,css,flex
I implemented a flex multi column layout, got it to look great on my desktop, then looked at it on a mobile device and it was complete trash (all scruntched together, ignoring width parameters completely). Played with it for hours and everywhere I went on the internet said flex sucked...

Sonar Qube plugin problems with Flex

actionscript-3,flex,sonarqube
I'm having problems after an upgrade of my Sonar Qube :( I installed the newest version (5.0) of Sonar Qube using an existing MySQL database. The previous Sonar Qube version was 3.7.4. I'm using it to analyze a pure ActionScript project using the Flex plugin (Version 2.1). The problems to...

Itemrender of DataGroup won't release memory - flex(Adobe air)

actionscript-3,flex,memory-leaks,air,desktop-application
i have a datagroup compoenent in Adobe Air application and i have used custom itemrenderer in it, i attached source code of itemRenderer as well as i attached profiling of it, Question: When i come back from other module to the module which have this datagroup at that time it...

Flex update dataprovider after datagrid edited

flex,datagrid,itemrenderer,dataprovider
I have a datagrid in flex with an itemrenderer and a dataprovider. The problem is when I edit a datagrid, the provider don't get updated with the edited value. Here is my datagrid: <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" borderColor="#FFFFFF" cornerRadius="0"> <mx:Script> <![CDATA[ import mx.core.Application; [Bindable] private var provider:ArrayCollection...