Posted on September 17th, 2010 by egiles
In Adobe Flash / Flex, sometimes in a DataGrid or AdvancedDataGrid, when checking multiple checkboxes a previously checked CheckBox will drop the check mark. This is really annoying and can cause errors. It’s a documented bug in Flash player that Adobe hasn’t gotten around to fixing. You can however fix it yourself by supplying a [...]
Filed under: Technology | 29 Comments »
Posted on August 30th, 2010 by egiles
For the following Flex / ColdFusion fault string:
faultString = “Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly.”
faultCode = “Server.Processing.DuplicateSessionDetected”
Make sure that session cookies are enabled on the server and that the flex2gateway URL is not rewritten or modified by [...]
Filed under: Technology | No Comments »
Posted on August 30th, 2010 by egiles
For Flex working with ColdFusion to fix an error like one of the following:
“Error #2048: Security sandbox violation”
OR
faultCode:Client.Error.MessageSend
faultString:’Send Failed’
faultDetail:’Channel.Security.Error error Error #2048: Security sandbox violation:
file:// …….. .swf cannot load data from http://localhost/flex2gateway
OR
Fault faultString=”Send failed”
faultCode=”Client.Error.MessageSend”
faultDetail=”Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: ‘http://…’”
Check your crossdomain.xml file.
Filed under: Technology | 45 Comments »
Posted on August 30th, 2010 by egiles
When attempting to access a URL via the URLLoader, eg:
var loader:URLLoader = new URLLoader(“some url or uri”);
You get an error:
Flex / Flash Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: …
I modified the code referenced from:
http://www.actionscript.org/forums/showthread.php3?t=170067
To create an URLErrorHandler that will attach to a URLLoader. So, to easily attach default error handlers to the [...]
Filed under: Technology | No Comments »
Posted on August 30th, 2010 by egiles
Rewrite all non-secure URLs aside from flex gateways for ColdFusion to a secure https server. Here’s a sample Apache configuration:
<VirtualHost *:80>
RewriteEngine On
# Don’t inherit the mod_rewrite options - don’t mess up flex data.
# Allow all for the document root, but then will redirect all
# non-flex based data (flex2gateway, crossdomain.xml, etc) to
# https server which will [...]
Filed under: Technology | 21 Comments »
Posted on August 27th, 2010 by egiles
Since \n doesn’t work, you have to specify the newline code in an escaped manner.
<mx:TextArea text=”Saving.
Please wait.” textAlign=”center” />
Filed under: Technology | 31 Comments »
Posted on August 27th, 2010 by egiles
I got this error when in Flex Builder / Eclipse and using SVN.
I had done a commit, then SVN thought it needed to commit the base directory which had no revisions. I committed it, then came back and added log comment later on. When I went to view the revision tree, SVN gave the message [...]
Filed under: Technology | 23 Comments »
Posted on August 23rd, 2010 by egiles
Create an ActionScript function to reload a page that can be called from Adobe Flex / Flash. This uses javascript to call a page reload.
private function reloadPage(event:Event):void
{
var ref:URLRequest = new URLRequest(”javascript:location.reload(true)”);
navigateToURL(ref, “_self”);
}
Filed under: Technology | 23 Comments »
Posted on August 23rd, 2010 by egiles
In saving to an Excel (xls) file from Adobe Flex / Flash using ActionScript code, make sure to include
import com.as3xls.xls.ExcelFile;
import com.as3xls.xls.Sheet;
Then, make sure to require Flash Player 10.0.0 or higher or the application will not build in Flex Builder 4. Project->Properties->Flex Compiler -> Check Require Flash Player version: 10 0 0.
Wire your event listener appropriately.
var [...]
Filed under: Technology | 32 Comments »
Posted on August 23rd, 2010 by egiles
This is a great example of a file uploader for Adobe Flex. It’s in com.everythingflex.components.Uploader.mxml.
<?xml version=”1.0″ encoding=”utf-8″?>
<!– Authored by Rich Tretola (rich@richtretola.com) EverythingFlex.com
Feel free to use within your appplications. Track changes at EverythingFlex.com
Sample Syntax:
<eFlexComponents:Uploader uploadButtonLabel=”Browse for New Image”
uploadToURL=”http://www.yourdomain.com/uploads/uploader.cfm”
imagesFilter=”*.jpg;*.gif;*.png”
displayNewImage=”true”
displayImagePath=”http://www.yourdomain.coms/uploads”
maxUploadSize=”100000″/>
–>
<mx:Canvas xmlns:mx=”http://www.adobe.com/2006/mxml” width=”100%” height=”100%”>
<mx:Script>
<![CDATA[
import mx.controls.Label;
import mx.controls.Alert;
import flash.net.FileFilter;
import flash.net.FileReference;
import flash.net.URLRequest;
private var uploadURL:URLRequest;
private var file:FileReference;
[Bindable]
public var uploadButtonLabel:String = “Browse for [...]
Filed under: Technology | 18 Comments »