Flex - Prevent Ie From Decoding A Utf-8 Url In Flash?
May 16, 2011
I'm finding that in flash (10.x at least) and ie (7, 8, 9) that if I try to load an image url that contains escaped utf-8 characters (p%C3%83%C2%A5) that the characters get decoded before it makes the url request, even if I double or triple encode them. Is there any way to prevent this so the url (with escapes) the way I want it is actually what is requested?
The problem its causing is we give a http status of 301 on utf-8 decoded url requests to the encoded url which flash then tries to request (but ie decodes it again) and I get stuck in an infinite loop because of the 301 + ie auto-decoding.
EDIT, adding code sample:
var url:URLRequest = new URLRequest('http://mydomain.com/p%C3%A5.jpg');
var loader:Loader = new Loader();
loader.load(url);
Now I want the request to go over the line as [URL] (and it does in other browsers), but in IE it goes over the line as [URL]
EDIT: replacing % with %25 (double encoding the %) but that didn't work, it just caused this request to go over the wire: [URL]
View 1 Replies
Similar Posts:
Jul 6, 2010
I've developed web services in C++ and have implemented the ability to provide a base 64 encoded string to send files with other meta data. While I have successfully decoded the string when the encoded data is a text file, images and other binary files are not decoding correctly. Can you point me to a C++ library or implementation of base64 decode that works with Adobe Flex Base64encoder? What RFC does the Flex encode/decode implement?
View 1 Replies
Sep 30, 2010
Is there any barcode decoding scripts out there in AS3?
View 2 Replies
Apr 28, 2011
I am able to pull JSON data from PHP into my Flex application just fine with the following bit of code:
[Code]...
View 2 Replies
Feb 2, 2011
I think I have a basic understanding of using bytearray and saving data to a local fileI've been able to save the data (strings) and bring them back.To start off, I have been teaching myself AS3. I have no knowledge of PHP or where to start with that. It has been said many times that you cannot make a txt file from within flash. Unfortunately this is what I need to do.I put together a map labelling app to use at work here. (it loads in a floor plan, then you can add 'nodes' that track info on each office - employee, ext, office #, data line jack, etc.) I would like to use this data in an access database that I have already running.in short, I would like to output my data from the mapper to CSV. On putting the data into a bytearray I am comfortable with marking the commas as well as line ends, but the data is not txt... is there a way to convert it
View 7 Replies
Oct 11, 2010
How do I prevent a user from dropping an item outsider a folder? My dataProvider is only 1-level deep.It seems that with a DragEvent handler or DragDrop handler I can find the data of the item I'm dragging, but not where I'm dropping ( so I can prevent it ).
View 1 Replies
Nov 22, 2010
I have a canvas onto which I draw shapes like rectangle etc. When I move the shape using my custom mouse down/mouse move handler, the shape can go outside the parent bounds.
I am checking if the child is outside the parent's bound to snap it back:
var bounds:Rectangle = this.getBounds(this.parent);
var p:Point;
if (bounds.x <0) {
[Code]...
The snapInside method gets called when I go outside the left or top boundary. But when the child is dragged outside the right or bottom boundary, I find Flex/Flash runtime automatically expands the parent's height and width. So say the parent size was initially 800x600, if child Y bounds exceed 800 by say 20 pixel, I find the this.parent.height automatically resized by flex to 820!!
How do I prevent the parent from resizing when child goes outside the original bounds of the parent ?
View 1 Replies
Nov 3, 2009
If you have two text areas with different styles (fontFamily, weight, color etc) and you copy text from one to the other it also copies the style from the originating text area. Is there any slick way to prevent that?
Here is a sample of code that will illustrate the problem. Type some text in the top box and some text in the bottom, then copy some characters from the top box to the bottom. I'm not using htmltext.[code]...
View 2 Replies
Aug 4, 2010
I hope I would not waste your time too much. I am going to publish my Adobe Flex library to sell in commercial, but I don't need anyone can open my SWC file and study the code in there. I see Adobe Flex library can prevent this activity. How could I do this too?
View 1 Replies
Nov 24, 2009
My custom item editor opens a titlewindow (too much stuff to show in an inline editor) which obviously steal the focus, so I get a itemeditend event and the datagrid destroy the editor at the wrong (for me) time. I think to have to keep the itemeditor alive until the titlewindow job is done, but how? DataGridEvent reason is "other" and livedocs said preventDefault() can't help.
View 1 Replies
Mar 25, 2010
Is there a way to prevent a component from rendering in Flex (to save memory or processing power)?[code]...
View 3 Replies
Oct 8, 2009
I'm looking simply approach to prevent scale thumb within flex scrollbar'According to our wireframes we should display scrollbar without up-down arrows and cycle (without scale) as a thumb;
View 1 Replies
Oct 11, 2009
Below is the code for a simple Flex actionscript project. A sprite is partially covering a hyperlink. What's happening is that when you hover over the sprite, if you're also hovering over the hyperlink, the hyperlink is activated. I want to prevent that. I want the hyperlink to be activated only when the mouse hovers over it -- but not when the mouse hovers over the sprite which covers it.
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.TextEvent;
import flash.text.Font;
[Code] .....
View 3 Replies
Oct 16, 2009
I think there is a simple solution to this question, just not simple enough for me to find it.Question:How do you constrain a TitleWindow in Flex 3 from being dragged off the screen/stage? Is there a way to restrict the TitleWindow to the viewing area? Example: Let's say I have an application that take 100% of the screen. Next, I create a TitleWindow via the PopUpManager. I can then proceed to click and hold (drag) that window off the screen, then release the mouse button. That window is now lost off-screen somewhere. Is there a way to keep the window from being dragged beyond the viewing area?
View 6 Replies
Oct 19, 2009
I was wondering, if I have two list boxes, and I want to drag and drop between both of them, how do I prevent the user from dragging onto the same list (thus duplicating the item? I cannot have a situation where that is the case
View 5 Replies
Nov 4, 2009
I've hit a very strange issue in adobe flex and I'm not sure how to solve it. I have a popup box that is called on creationComplete before startup of my main application. The popup simply asks for an email address and then the application is enabled showing the email address in a label component.
However, when I try to access the email address from the label component called UserID.text in the application, it is always null even though it is visually present in the label box...It seems like it loses state somehow...so HOW in earth can I keep it from losing state? I need to access the label or some variable throughout the use of the application and everything I try always ends up in a null variable?The main part of the application that sets the label is here:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:controls="com.iwobanas.controls.*" xmlns:local="*" creationComplete="showWindow(true)">
private function showWindow(modal:Boolean):void
[code]....
View 1 Replies
Nov 9, 2009
I've implemented a PDF generation function in my flex app using alivePDF, and I'm wondering if the process I've used to get the file to the user creates an XSS vulnerability.This is the process I'm currently using:Create the PDF in the flex application.Send the binary PDF file to the server using a POST, along with the filename to deliver it as.An ASP.NET script on the server checks the filename to make sure it's valid, and then sends it back to the user as an HTTP attachment.
View 2 Replies
Jan 10, 2010
I am using Google AppEngine, in conjunction with PyAMF to provide RemoteObject support. In my Flex code I make several RemoteObject method calls at once which tends to batch the AMF Messages into a single HTTP request. Most of the time this is fine but AppEngine applies some strict per request limits (in this case I am hitting a DeadlineExceededError - max 30 seconds). A number of service methods are expected to take upwards of 10 seconds and if these are batched by the RemoteObject into 1 HTTP you see where this is going. Now you could say refactor your service calls and that is also going on but not really the question being asked here. Is there a way to prevent Flex RemoteObject from batching AMF requests for situations like this? I have done a fair amount of Googling on the subject and come up with bupkis. It seems to me that I would need to implement a custom version of mx.messaging.channels.AMFChannel or something of that nature, which seems waay too hardcore for a feature like this
View 3 Replies
Jan 14, 2010
I have a flex tree with dragMoveEnabled = true. I want to find out, when an item is dragged into itself or it's children. I'd like to use DragManager.showFeedback(DragManager.NONE) in the tree's onDragOver handler, but can't find out how get this to work. I'm using an ArrayCollection of nested objects as dataSource for the tree.
View 2 Replies
Jun 27, 2010
I have a flex editable datagrid mx:DataGrid and when I press TAB key, it changes to another cell when I am editing a cell.
I don't want it to change to another cell when I press TAB. How can I stop this behavior?
View 1 Replies
Sep 14, 2010
From what I can gather, the resize property of a Flex application is set in the XML config file[code]...
However, if I set this attribute to true, is there a way to turn this off dynamically at runtime? For example, my application has two view modes - mini and maxi. I would like to prevent the end user from being able to resize the application when in mini mode. I tried prevent the resize using the following code but it does not seem to work[code]...
View 5 Replies
Mar 16, 2011
I have a tree in Flex Application and one of the items is selected.
When a user clicks another item, I would like to make a check and possibly prevent the change of selection.
I tried catching click event and calling stopPropagation, and also itemClick with stopPropogation but both do not prevent selectedItem from changing.[code]...
View 2 Replies
Mar 29, 2011
I have some values stores in my model. I need to create a copy of those values, make some changes, and then output those changes without affecting the model values.
var my_source:Array = model.something.source
var output:Array = new Array();
for each (var vo:my_vo in my_source) {
[code].....
View 2 Replies
Apr 3, 2011
I need to disable pasting text in a textinout (flex3) : CTRL+V
View 2 Replies
May 27, 2009
I have a TextInput object that highlights when it is focused...I would like it not to highlight when it is focused. way to stop it?
View 2 Replies
Jul 3, 2010
I'm interested in learning how to decode and playback audio in ActionScript 3. I understand how to write bytes to a Sound object using the SAMPLE_DATA event, so that's not really a problem. What I want to understand is how I could implement alternate audio formats for native playback inside of Flash Player. I guess what I'm asking is: how do I take something in X format and "convert/decode" it to WAV format and write the bytes to a Sound object, playing back the audio? I'm interested in writing a decoder for FLAC audio and possibly OGG audio, as these seem to be some of the most widely used open source audio formats
View 2 Replies
Apr 12, 2012
I have two Datagrid in flex. I am binding data from Datagrid1 to Datagrid2 like
(Datagrid2.dataProvider=Datagrid1.dataProvider as ArrayCollection;)
If I delete Datagrid2 data then automatically another Datagrid1 deleted .
So I don't want delete data in Datagrid1 . how can i do that , But I have other option for delete data to Datagrid1?
View 2 Replies
Jul 1, 2009
I'm writing a flex application that polls an xml file on the server to check for updated data every few seconds, and I'm having trouble preventing it from caching the data and failing to respond to it being updated.
I've attempted to set headers using the IIS control panel to use the following, without any luck:
CacheControl: no-cache
Pragma: no-cache
I've also attempted adding a random HTTP GET parameter to the end of the request URL, but that seems like it's stripped off by the HttpService class before the request is made. Here's the code to implement it:
http.url = "test.xml?time=" + new Date().getMilliseconds();
And here's the debug log that makes me think it failed:
(mx.messaging.messages::HTTPRequestMessage)#0
body = (Object)#1
clientId = (null)
[Code].....
View 2 Replies
Oct 20, 2009
I have a line chart that sometimes contains a number of data points. I have solved how to prevent the horizontal axis from displaying too many labels using custom label functions and data functions. My problem is forcing the AxisRenderer not to scale down my labels.
I'm using the labelRotation property so the canDropLabels and canStagger properties are not an option.
View 2 Replies
Jan 6, 2010
I have some DataGrid with editable rows, which has also an option to add new row 'dynamically'. I mean, last row has some default data (e.g. "CLICK HERE TO ADD NEW ROW") and when user clicks on it, he can edit that value and new row will be eventually inserted.
However, I also have a column in same DataGrid which doesn't come from DataGrid's DataProvider. That column is used to delete specific row and it should only display clickable image with associated mouse click action (within custom itemRenderer).
[Code]...
View 1 Replies