Flex :: Using "decodeUri" Is Missing Some Characters (like '+')?
Jan 30, 2012
I'm trying to get strings from a remote server using Flex (as) and i get the strings with "+" character (instead of spaces).I am using the "decodeUri" and "decodeUriComponent", am i missing something?
I have a text file that contains variables that get pulled into my flash file dynamically. It leaves out random letters throughout the text when it is displayed in the SWF.I'm at my breaking point and I know I am probably missing something simple at this point.
SWF file does not display special characters in dynamic text let alone cyrillic font. I do have all kind of fonts in Flash and they work fine in static text.
I can write the text I want to display in xml file however upon saving it I etheir loose the special characters or they still dont display correctly in SWF. Enconding is UTF-8. Tried changing it but to no effect.
I'm trying to update my text area via ActionScript code using this: scoreLabel.text = this.score.toString(); but it's not behaving correctly. When the score is 18, the text area displays just 1, when it's 26 it won't display anything at all... As a test, I tried doing this: scoreLabel.text = "this is a test"; and now the text area is just displaying e: [URL] This isn't a font issue, as I'm using Arial. What is going on here?
I just set up my environment (Flex 4.6 SDK, Blaze DS 4.01) and I'm wondering where the needed mx.* packages might be found, since I want to import classes, such as mx.messages.Producer / Consumer, in my non-MXML-Project and instanciate them programmatically. Blaze DS API ref says, they are part of the Blaze-WAR but I just can't find them.
I have component with Trees and I'm moving elements from one to another. I store data in dataProvider as XMLList with labelFiled="name" and itemRenderer as class, which expends one (thanks to that nodes and elements have checkboxes). I enabled moving mechanism between Trees just by enabling Tree's properties (dragEnabled="true" dragMoveEnabled="true" dropEnabled="true"). Problem occurs when I try to get data from dataProvider, which has only elements. To get data I use command:
I had Flex Builder 3 installed and working properly.
I then downloaded Zend Studio 7 (Eclipse) and installed the flex 3 plugin for it. Since doing that I now have a problem with Flex Builder.
I right click on the Flex project and select "properties->build path" there are now missing options. I should be able to add project references and SWC's. These options are simply missing. I basically get a blank window instead of the options.
I have tried completely removing both Zend and Flex Builder. I re-install Flex Builder and it's still the same.
This is on a Vista Ultimate system. I have tried running the installer as Administrator.
I've been trying to find if there is a way to do a clean uninstall of Flex Builder, can't find how to anywhere.
I created a component that is multiple datagrids side by side that share the same columns (each datagrid is the same as the one before but with different data).ProblemThe header text only shows up on the last datagrid. How can I get the text to show up on all the datagrid headers?Here is how I instantiate the component.
I'd like to add copy and paste functionality to context menu in my Flex application. After creating a separate dummy project for testing, I realize that such options (cut, copy, paste, and delete) are already available in this dummy project without any coding. Both projects are compiled using Flex 4 SDK, run in the same brower (IE) and have the same version of Flash Player (10.2.153.1). However, different context menu are displayed. Here are the difference:
Orig Project: Print, Show Redraw Regions, Debugger, Settings, Global Settings, About Flash Player...
Dummy Porject: Cut, Copy, Paste, Delete, Select All, Settings, Global Settings, About Flash Player...
I have a Spark.List with several items ("folders") each containing an ArrayList of files inside, when I select one of these "folders" it should display the list of "files" on another Spark.List. Its working right now by doing this: private function onFolderChange (event:*):void { var list:List = event.currentTarget as List; if (list.selectedIndex != -1) { currentFolder = null; currentFolder = list.selectedItem; fileListDataProvider = currentFolder.files; fileList.selectedIndex = -1; }}
The problem is that when the "file" thumbnails cover more then the List viewport and a scroll is needed sometimes by changing from a "folder" to another "folder" the file List loses files. For example lets say there is a "Folder 1" with 30 "files" in it (10 visible and 20 hidden by the scroller) and "Folder 2" has 5 "files" (all visible), if I switch back and forth between "folders" sometimes it will display everything right. Sometimes it will display a scroll on "Folder 2" when there is no need and sometimes it will only display a few (5 or 10) "files" in "Folder 1" even though it has 30. Something is wrong with the fileList, its updating its items but not really updating well. I've tried setting the itemRenderer to null and reapplying, setting the dataProvider to null and reapplying, doing validateNow().
So I was working normally, and accidentally hit the profiling button after that, I later decided to export my current.air.URL...Why would the export button disappear all the sudden? I cannot find it at all. It seems rather interesting not being able to export a .air and provide an installer.
I have an enterprise Flex web application, served up over https, that runs fine on Flash player 10.0 and beyond on a desktop computer/browser.
However, when I run it from my HTC Incredible with Android 2.2 the app loads fine, but there is no on-screen keyboard and so I cannot log in. I can see the blinking cursor inside the username and password text fields. I can switch between them. I can even hit the login button and see an authentication error!
We have a Flash game which need to be loaded and played from an AIR app. using the swf loader, the game swf is loaded into the AIR app. But the static background layers of the swf are not appearing in the loaded game.
Those graphical elements which are generated via action script only are appearing. When we are playing it independently (outside the AIR app), it works fine. Is there a setting that i am missing in Flash or Flex. we are working with Flex 4.
I am having issue with my created flash, it can't handle chinese characters? is there some way i can handle this thru code? or should there be any font or language pack installed
1) Each field in the form only allows 3 characters and no special characters such as @ _ ! . , etc... 2) When the user goes to the next field in the form, the previous field appears blank but the when clicking on that again, the original text appears. 3) When submitting the form, it just keeps saying "in progress" and never shows the confirmation text nor does the email get sent. There is an HTML file included with this form but I am not sure if I need to put that in as I have embedded this form into an SWF file so I don't think I need that code but let me know if I am wrong about this. I am posting both the AS code and PHP code below..
I am working on a Flex app that has a MySQL database. Data is retrieved from the DB using PHP then I am using AMFPHP to pass the data on to FlexThe problem that I am having is that the data is being copied from Word documents which sometimes result in some of the more unusual characters are not displaying properly. For example, Word uses different characters for starting and ending double quotes instead of just " (the standard double quotes). Another example is the long dash instead of -.All of these characters result in one or more accented capital A characters appearing instead. Not only that, each time the document is saved, the characters are replaced again resulting in an ever-increasing number of these accented A's appearing.
Doing a search and replace for each troublesome character to swap it for one of the none characters seems to work but obviously this requires compiling a list of all the characters that may appear and means there is scope for this continuing as new characters are used for the first time. It also seems like a bit of a brute force way of getting round the problem rather than a proper solution.Does anyone know what causes this and have any good workarounds / fixes? I have had similar problems when using utf-8 characters in html documents that aren't set to use utf-8. Is this the same thing and if so, how do I get flex to use utf-8?
what's the easiest way to cut string in Flex ?I mean, I have a sequence of urls, I want them at most 60 characters length. If they are longer they should be cut and "..." should be added at the end.
I am simulating a multi-column combobox by introducing spaces between each column, such that all rows for the 3 columns should appear in a single line. The gap in this implementation is that due to the varying widths of characters, this spacing technique does not work. How to set the combobox characters to have the same width? The other approach is to calculate the width occupied by characters in each column and then set the start position of the next column. How to achieve this?
Any way to get the exact position for every character inside a textflow?, also I'm having trouble with the TLF documentation, is there anny documentation that shows more on how to work with it in actionscript rather than mxml, I am looking to write my own component and perhaps not use richtexteditor if I don't need to. How to get each characters position in the textflow:
private function getCharPosition():void { for (var i:int=0; i<=textController.flowComposer.numLines; i++) { var textFlowLine:TextFlowLine = textController.flowComposer.findLineAtPosition(i); var textLine:TextLine = textFlowLine.getTextLine(); trace('number of atoms in this line: ' + textline.atomCount); [Code] .....
This returns an error that's why I have try and cache, I have tried to change textLine.atomCount to -1 but that wont work either. Now I don't know what character exactly that I have the position for.
now when reaching the point element = "new content"; my programm tells me I cannot give element the value new content as this is a string and element is xml.
I am trying to implement htmlText for a text component as the returned string is in html format (with the html tags etc). If I put a text=.... i get the full text, but with the tags (which i want converted to html). So i use htmlText=.... and it formats it fine, but cuts half the text from the variable. The text im supposed to get back has tons of html tags, and maybe its cutting it somewhere because of the tag its not able to escape... How do i fix this?
I am writing a business app in Flex that uses web services to communicate with a middle tier. The web services accept and return messages in XML format. In many cases, I need to be able to allow the user to type something like the following into a field in the app, which in turn will be added as an element in an XML payload bound for a SOAP web service (without the quotes):
"account balance < 1000"
The Flex parser chokes when trying to serialize an element with this in the Text node (e.g., account balance < 1000. So I need some way to encode the "<" to "<" prior to doing the XML serialization. In addition, I would prefer a generic way to do this, such as with an attribute on the service declaration, since I have over 40 services that must support this kind of input.
I am developing a Flex based window application. In that I have used a textArea, Now when I type some characters like ctrl+b, ctrl+e or ctrl+q, it shows some square characters in text area, I think these are some unicode characters but why these are being entered.
Unlike in simple textArea control on adobe example when I presses these key combination, there is nothing being entered, so why this only with me.
I want to truncate address line 2 to 10 characters if a value greater than 10 characters is returned in the address validation response for address line 2. we also have address line 1 which is set to max of 40 characters, if address line 1 exceeds 40 characters and the result comes to address line 2,and if the length for address line 2 reaches more than 10 characters then i need to truncate that to 10 characters.
I am running into issues displaying Thai characters in Flex components that make use of the Flash Text Engine (FTE), specifically on Mac OSX 10.6.8 Snow Leopard.Here's a blurb of my compiler font managers in flex-config.xml:
<flex-config> <target-player>10.2.0</target-player> <!-- Specifies the version of the compiled SWF -->[code].....
Thai characters render correctly in mx components such as TextField so far. However, FTE components such as TextLine show those crappy-looking boxes as a substitution. My initial guess was that somehow one of the compiler font managers declared in flex-config.xml was not finding the right system font to fallback to for Thai characters. So, I ensured the system font was installed by going to System Preferences > Language and Text > Edit List. Then I changed fontFamily to Arial, Ayuthaya.Still was seeing the boxes of evil.
Next I figured that perhaps the Arial font might be assigning a box for each unicode value corresponding to a Thai character. So it was effectively overriding the Ayuthaya system font. So I changed fontFamily once more to just Ayuthaya and this worked with one issue - Ayuthaya looks inherently different from Arial for non-thai characters.is there a less invasive way to support Thai in FTE components such that the appearance of the text is closer to the Arial font? I would rather not embed a font because I'm constrained on SWF size.