HOME    ABOUT GSDH    CONTACT US NOW  
Werbeagentur

Archive for 25 April 2008

25 April 2008 | Category: GSDH work, Misc, flash / actionscript

For my last Project i had to send some variables from my Flash-app via AS3 to a PHP script, this script handles the next Steps of processing. (Unfortunately) I had to search for a solution which not produces a PopUp Window (critical because of the PopUp-blockers) for a long time. The AS3 function flash.net.sendToUrl() produces mystical error messages at compile-time.

However, i stared to use the load() method from the URLLoader Class as seen in the below-mentioned snippet. With this method you can send data to PHP scripts and the user doesnt recognize it. But be aware: the data will be send via HTTP-GET, that means that you shouldnt use it to send critical data (such as passworts, credit-card details). Within the PHP script you can get the Data with the $_GET[] array (in the snippet the vars myname and email).

Another advantage is that you can get result-variables from your PHP script (e.g. status-messages). For this you have to add an EventListener to the URLLoader-Object, you can access the data through the Event-Object in the EventHandler.

Code-Snippet:

function sendData():void{
var myrequest:URLRequest = new URLRequest("send.php"); //create a URLRequest Object and
var variables:URLVariables = new URLVariables;         //the name of the PHP-script
var myPhpLoader:URLLoader = new URLLoader();
variables.myname = outro.name.text; //content of a textfield
variables.email = outro.email_adresse.text; //content of a textfield
myrequest.data = variables;
myrequest.method = URLRequestMethod.GET; //via HTTP-GET
myPhpLoader.load(myrequest); //send
}
No comments
21 April 2008 | Category: GSDH work, flash / actionscript, web

TweenFilterLite (AS3 Version) - Easily Tween Filters & Image Effects

I found a new Tweenig Class called “TweenFilterLite” as i searched for a way to animate TextField.
Till now i used the Tweener Class which can be found at the GoogleCode page. But this class can only animate Sprites, if you want to animate a TextField, the app crashes at runtime.

The concept of TweenFilterLite is different. With this class you can animate any kind of displayable objects. And so the main advantage (in my opinion) is that you can animate every child of DisplayObject without nesting it in a Sprite or a MovieClip etc.

A another advantage is that you can place several animation types (blur, fade, glow etc) in a queue and the class runs it one after the other. That means that you dont have to write onComplete functions for every animation (reduces code size and improves readability).

The Class has a very good documentation and, of course, is easy to understand. For further information (code examples, source, doc, small howTo) take look at the website: http://blog.greensock.com/tweenfilterliteas3/

Have a try!

1 comment
19 April 2008 | Category: flash / actionscript, not GSDH work, web

alternativaplatform.jpg

Check out this Flash / 3D rendering engine by alternativa platform in Russia - awesome! Almost feels like playing Doom back in the days…

turn_right1.gif More examples here.

turn_right1.gif First seen on mr. doob’s blog.

No comments
2 April 2008 | Category: design, flash / actionscript, links, web

I found this ActionScript 3 libraries for interactive visualizations on the web and are busy trying to combine it with a Papervision 3D app for Kneipp.

flare visualization toolkit

turn_right1.gif Flare Website

Quote: “Flare is a collection of ActionScript 3 classes for building a wide variety of interactive visualizations. For example, flare can be used to build basic charts, complex animations, network diagrams, treemaps, and more. Flare is written in the ActionScript 3 programming language and can be used to build visualizations that run on the web in the Adobe Flash Player. Flare applications can be built using the free Adobe Flex SDK or Adobe’s Flex Builder IDE. Flare is based on prefuse, a full-featured visualization toolkit written in Java. Flare is open source software licensed under the terms of the BSD license, and can be freely used for both commercial and non-commercial purposes.Take a look at their initial flare demo reel to see some of the visualizations that flare makes it easy to build.

To get up and running with flare, take a look at the Flare Tutorial and the API documentation.”

turn_right1.gif Also check this Prefuse showreel!

No comments