Category Archives: actionscript-3

MD5 Verification Error on Flex SDK installation

Somehow, I keep on getting this error

Installer version 3.2.0 (windows) Using Locale: en_US Fetched the SDK download mirror URL from the CGI. SDK version Apache Flex SDK 4.14.1 AIR version 16.0 Flash Player version 16.0 Creating Apache Flex home Creating temporary directory Downloading Apache Flex SDK from: http://mirror.rise.ph/apache/flex/4.14.1/binaries/apache-flex-sdk-4.14.1-bin.zip Verifying Apache Flex SDK MD5 Signature The Apache Flex SDK MD5 Signature of the downloaded files does not match the reference value. The file is invalid, installation is aborted. Installation aborted

AS3 URLRequest POST sometimes gets turned into a GET request

Our users can uploads files to our sever using URLRequest POST method from Flash AS3 to PHP then to our web server. We have recently discovered in our LOG files that some browsers change the POST request into a GET request rendering the upload of a file useless.

We're not sure what is going on here. Here is the code we use: AS3

var request:URLRequest = new URLRequest;
        request.requestHeaders.push(new URLRequestHeader("pragma", "no-cache"));
        request = new URLRequest ("http://www.domain.com/uploads/uploader.php");
        request.data = variables;
        request.method = URLRequestMethod.POST;

PHP

<?php
$filename = $_FILES['Filedata']['name'];
if($_POST['count'] == 0){
    move_uploaded_file($_FILES['Filedata']['tmp_name'], 'temp/'.$_POST['folderString'].'/dateiVorne/'.$filename);
}
if($_POST['count'] == 1){
    move_uploaded_file($_FILES['Filedata']['tmp_name'], 'temp/'.$_POST['folderString'].'/dateiHinten/'.$filename);
}
?>

.htaccess

# Redirect non-www urls to www
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

Would contributing to Apache Flex Compiler improve Adobe Flex Compiler?

Adobe has done some confusing things with Flash/Flex, one of them being donating some part of it to Apache Foundation, creating the Apache Flex (mirror?) project. The latest Flash AS3 compiler being codenamed "Falcon", is supposed to build better and faster code. Falcon is OSS on github under the Apache Flex project. Would contributing to this repo help the main Adobe Flex build? Is there even an Adobe Flex compiler (mxmlc.exe) or is it just Apache Flex from here onwards?

On the Flex roadmap Adobe states that :

Falcon compiler contribution to Apache

Falcon 1.0 is the next generation compiler for ActionScript and is currently in development. Upon completion of the ActionScript portion of the compiler, Adobe will contribute Falcon 1.0 to the Apache Flex Project, which we expect will be in Q4 2012.

apache httpd send uncompressed .tar.gz

Was trying to come up with an update systeme in AS3 Wich download file such as 1.1.0.patch wich are in fac tar.gz archives.

For the most part it works, except sometimes ( this is the main probleme i dunno when or what change trigger this) appache serve an uncompressed tar file.

Does it on the soft, chrome, firefox and even on wireshark so im sure it's httpd problem not an AS one.

Archives contains maynly sources in AS and swc, binaries, xml and such.

Effect of Flash Player Version on Flex SDK when Mavenizing the SDK

When "mavenizing" a Flex SDK (convert the Flex SDK to Maven artifacts) you need to indicate the Flash Player version. Does it mean that I can only create Flex swf web (not air) applications which run on that version of the Flash Player or can I still target earlier versions?

I was wondering if I can simply select the most recent Flash Player version or if I should keep in mind that some of the users are still using an older version.

Apache FlexJS download failed

When trying to setup Apache FlexJS, I attempted to follow the setup instructions using Apache Flex Installer 3.0 on https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash+Builder. However, when choosing the Apache FlexJS Nightly option in the installer, Flash Version 14.0, and AIR version 14.0, it does not successfully install. It gets to about 50% downloaded and then it says the Google Closure Library Download Failed. Does anyone know why??? I am testing out FlexJS for converting ActionScript code to JavaScript/HTML5. Thank you!