MX transitions
-
I posted to delicious.com
Tutorial: Sexy transitions with Flex 3 (as used in the MAX widget) | Serge Jespers
http://www.webkitchen.be/2009/08/28/sexy-transitions-with-flex-3-as-used-in-the-max-widget/
August 28 2009, 6:26am | Comments »
-
I posted to delicious.com
Flash garbage collection
http://www.nbilyk.com/flash-garbage-collection
import flash.utils.Dictionary;
- Tags:
- Flex
- as3
- garbageCollection
August 21 2009, 6:56am | Comments »
-
I posted to delicious.com
Flex for PHP developers : Mihai CORLAN
http://corlan.org/flex-for-php-developers/
- Tags:
- Flex
- Adobe
- as3
- programming
- php
August 19 2009, 7:21am | Comments »
-
I posted to delicious.com
Installing AS3 and Flex Bundle for Textmate « Matthew Sloan Wallace
http://mswallace.com/2007/07/30/installing-as3-and-flex-bundle-for-textmate/
August 9 2009, 1:10pm | Comments »
-
I posted to delicious.com
Quick Singleton Class in Flex Using Dictionary
http://myflex.org/demos/singleton/singleton/singleton.html
Quick Singleton Class in Flex Using Dictionary
August 6 2009, 7:25am | Comments »
-
I posted to delicious.com
Adobe Flash Platform Blog
http://blogs.adobe.com/flashplatform/
August 4 2009, 4:55pm | Comments »
-
I posted to i-create.org
ZendAMF and the Twitter API
http://i-create.org/2009/08/03/zendamf-and-the-twitter-api/
Have you ever had the urge to roll your own twitter? Well I have and I have tried a number of methods to come to the conclusion I needed to write everything from scratch. So I did and I wouldn’t say that I wasn’t without help. I did study Lee Brimelow’s gotoandlearn.com ZendAMF tutorial. So I went about downloading and install zend on my server and I found it was extremely easy to use. One of the many things that attracted me to the Zend framework were the prebuilt services. The zendframe work is a mature framework that has a great deal to offer developers so I will briefly show you a simple amf flash gateway built with zend to fetch the twitter service. Also please note you will have to create your own classes if you want to extend this but it should be pretty easy to do considering..
So first off download the zendframework. Configure your zendAMF endpoint. Create your own ZendAMF endpoint:
?View Code PHP<?php error_reporting(E_ALL|E_STRICT); ini_set("display_errors", "on"); ini_set("include_path", ini_get("include_path") . ":/home/toYourZend/FrameWorkHome/frameworks/zendFramework/library/"); require_once('Zend/Amf/Server.php'); require_once('TwitService.php'); $server = new Zend_Amf_Server(); //adding our class to Zend AMF Server $server->setClass("TwitService"); echo ( $server -> handle() ); ?>
Now configure your zend Twitter Service Create Your Twitter Service Class:
?View Code PHP<?php error_reporting(E_ALL|E_STRICT); ini_set("display_errors", "on"); ini_set("include_path", ini_get("include_path") . ":/home/toYourZend/FrameWorkHome/frameworks/zendFramework/library/"); require_once ('Zend/Service/Twitter.php'); require_once('VOgetFriendsTimeline.php'); //connection info class TwitService { public $tmp; public $twitter; public $response; public function __construct() { } public function getfriendsTimeline() { $twitter = new Zend_Service_Twitter('YourUserName', 'YourPassword'); $response = $twitter->status->friendsTimeline(); $tmp = new VOgetFriendsTimeline(); for ($i = 0; $i <= 18; $i++){ // array_push($tmp->userTwit, $response->status[$i]); array_push($tmp->userTwit, (string)$response->status[$i]->user->screen_name); array_push($tmp->statusPic, (string)$response->status[$i]->user->profile_image_url); array_push($tmp->locTwit, (string)$response->status[$i]->user->location); array_push($tmp->friendsTimeline, (string)$response->status[$i]->text); } return $tmp; } public function UserPostUpdate($tweet){ $twitter = new Zend_Service_Twitter('YourUserName', 'YourPassword'); $response = $twitter->status->update($tweet);
} }Now configure your flash variable object that is exposed by the service.
?View Code PHP<?php class VOgetFriendsTimeline { public $user_twit; public $pass_twit; public $locTwit = array(); public $friendsTimeline = array(); public $statusPic = array(); public $userTwit = array(); public $text; public function __construct() { } }
Finally configure your flex project to consume the service. Flash Twitter and Google Map Integration
?View Code ACTIONSCRIPT<?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="600" height="300" xmlns:maps="com.google.maps." initialize="init()"> <mx:VBox width="100%" height="100%"> <mx:HBox width="100%" height="0" visible="false"> <mx:TextInput id="address" text="Sydney AU" dropShadowColor="0x000000" visible="false" /> </mx:HBox> <maps:Map id="map" key="yourAPI Key" mapevent_mapready="onMapReady(event)" width="100%" height="100%"/> </mx:VBox> <mx:Script> <![CDATA[ import com.SampleTitleWindow; import flash.events.Event; import mx.events.MenuEvent; import mx.collections.; import mx.managers.PopUpManager; import mx.controls.Alert; import nl.demonsters.debugger.MonsterDebugger; import flash.net.*; import com.google.maps.services.ClientGeocoderOptions; import com.google.maps.LatLng; import com.google.maps.Map; import com.google.maps.MapEvent; import com.google.maps.MapMouseEvent; import com.google.maps.MapType; import com.google.maps.services.ClientGeocoder; import com.google.maps.services.GeocodingEvent; import com.google.maps.overlays.Marker; import com.google.maps.overlays.MarkerOptions; import com.google.maps.InfoWindowOptions; import mx.controls.Alert; import com.google.maps.controls.ZoomControl; public var nc:NetConnection = new NetConnection(); public var resp:Responder = new Responder(onResult, onError); public var resp1:Responder = new Responder(onError); public var obj:Object = { }; public var tweetLocN:int = new int(); public var geoLocationTwit:Array = new Array(); public function init() { nc.objectEncoding = ObjectEncoding.AMF3; nc.connect("http://yoursite.com/toYour/zendEndpointAMF/index.php"); nc.call("TwitService.getfriendsTimeline",resp); } public function onResult(e:Object) { var arr:Array = []; for (var i:int = 0; i < e.friendsTimeline.length; i++ ) { if (e.locTwit[i] != "" ) { trace(e.locTwit[i]+"----------------Pushed!!!!!!!!!!!!!!!!!!!!"); try { address.text = e.locTwit[i]; doGeocodeTwit(e.locTwit[i], e.userTwit[i],e.friendsTimeline[i] ); } catch (epicFail:Error) { } trace("EpicFail Caught"); } trace(e.locTwit[i]+"Result Fired++++++++++"); tweetLocN = geoLocationTwit.length; arr.push(obj); } trace(obj.loc+"Result END++++++++++"); //datagrid.dataProvider = arr; } public function onError(e:Object) { trace("And the Error is !!!!"); trace(e); }
private function onMapReady(event:Event):void { map.enableScrollWheelZoom(); map.enableContinuousZoom(); map.addControl(new ZoomControl()); } private function doGeocodeTwit(event:String, userTwitter:String, userTweets:String):void { // Geocoding example trace(event+"String is+++++++++++++++++"); var geocoder1:ClientGeocoder = new ClientGeocoder(); geocoder1.addEventListener( GeocodingEvent.GEOCODING_SUCCESS, function(event:GeocodingEvent):void { var placemarks:Array = event.response.placemarks; trace(placemarks+"+++++++===== Ran PlaceMark"); if (placemarks.length > 0) { map.setCenter(placemarks[0].point); var marker:Marker = new Marker(placemarks[0].point); marker.addEventListener(MapMouseEvent.CLICK, function (event:MapMouseEvent):void { var mainTweet:String = new String(userTwitter + " - User - Tweet:" + userTweets); marker.openInfoWindow(new InfoWindowOptions({content: mainTweet})); }); map.addOverlay(marker); } }); geocoder1.addEventListener( GeocodingEvent.GEOCODING_FAILURE, function(event:GeocodingEvent):void { //Alert.show("Geocoding failed"); trace(event); trace(event.status); }); geocoder1.geocode(address.text); } ]]> </mx:Script> </mx:Canvas>Code Thats it! View the live example here! Other Cool Twitter Mashup links can be found:
Twitter MashUp Links
Don’t forget to check out Lee Brimelow’s GotoandLearn AMF video. Zend framework Zend Services Bookmark and Share More »Powered by Bookmarkify™
- Tags:
- ActionScript
- Flash
- Flex
- i-create
- MashUp
- socialnetworking
- php
- zendframework
- amf
- zendamf
August 3 2009, 3:08pm | Comments »
-
I posted to delicious.com
Wiki | CodeIgniter
http://codeigniter.com/wiki/AMF_Flash_Remoting_with_Zend_and_CI/
- Tags:
- Flex
- as3
- zendframework
- amf
- remoting
July 28 2009, 11:12am | Comments »
-
I posted to delicious.com
Flex and PHP: remoting with Zend AMF : Mihai CORLAN
http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/
July 28 2009, 8:19am | Comments »
-
I posted to delicious.com
Zend_Amf with full Zend Framework at Space of Flex/AIR technologies
http://www.riaspace.net/2009/01/zend_amf-with-full-zend-framework/
<mx:RemoteObject id="zendRemoteObject" destination="zend" source="MyAmfService" endpoint="http://localhost/messagebroker/amf" result="Alert.show(event.result.myProperty)"/>
- Tags:
- Flex
- as3
- php
- zendframework
- amfphp
July 26 2009, 7:46am | Comments »
-
I posted to delicious.com
FlexMonkey :: Flex UI Testing Tool » FlexMonkey 1.0 Released
http://flexmonkey.org/wordpress/2009/07/14/flexmonkey-1-0-released/
July 14 2009, 10:59am | Comments »
-
I posted to delicious.com
Intro to Flash Camouflage | InsideRIA
http://www.insideria.com/2009/07/intro-to-flash-camouflage.html
Flex Skinning
July 13 2009, 8:45am | Comments »
-
I posted to delicious.com
Axiis - An Introduction and Tutorial | InsideRIA
http://www.insideria.com/2009/07/axiis---an-introduction-and-tu.html
- Tags:
- Flex
- as3
- visualization
July 6 2009, 7:23am | Comments »
-
I posted to delicious.com
Building a Simple Chat App With Adobe Flash Collaboration Services | InsideRIA
http://www.insideria.com/2009/06/building-a-simple-chat-app-wit.html
June 29 2009, 12:05pm | Comments »
-
I posted to delicious.com
Flint Particle System: Getting Started
http://flintparticles.org/getting-started
- Tags:
- Flash
- Flex
- as3
- particle-engine
June 26 2009, 1:42pm | Comments »
-
I posted to delicious.com
Using Pixel Bender to do heavy lifting calculations, makes Flash Player multi-thread. | Deep Dive Into Flash
- Tags:
- Flex
- as3
- math
- PixelBender
June 24 2009, 7:45am | Comments »
-
I posted to delicious.com
Build a Multi-Purpose Contact Form With Flex - Flashtuts+
http://flash.tutsplus.com/tutorials/flex/build-a-multi-purpose-contact-form-with-flex/
June 22 2009, 6:35pm | Comments »
-
I posted to delicious.com
Flex Doc Team: New Doc on Creating Flex Gumbo Components in ActionScript
http://blogs.adobe.com/flexdoc/2009/06/new_doc_on_creating_flex_gumbo.html
- Tags:
- Flex
- as3
- components
June 22 2009, 6:27am | Comments »
-
I posted to delicious.com
Skinning Flex with Degrafa and FXG » James Whittaker
http://jameswhittaker.com/journal/skinning-flex-with-degrafa-and-fxg/
June 22 2009, 6:26am | Comments »
-
I posted to delicious.com
Ryan Campbell » Blog Archive » Here’s 5 3D Layouts for Flex 4
http://www.bobjim.com/2009/06/16/heres-5-3d-layouts-for-flex-4/
June 17 2009, 8:52am | Comments »
