-
I posted to delicious.com
iPad Detection Using JavaScript or PHP
http://davidwalsh.name/detect-ipad
- Tags:
- Apple
- development
- javascript
- php
May 7 2010, 11:41am | Comments »
-
I posted to delicious.com
Flash Builder 4 and PHP Data/Services for beginners
http://www.flashrealtime.com/flash-builder-4-and-php-data-services/
- Tags:
- Flash
- Flex
- as3
- programming
- tutorial
- webservices
- php
- data
March 8 2010, 8:53pm | Comments »
-
I posted to delicious.com
Communicating with #Flex and #PHP over Sockets
http://ria.dzone.com/articles/php-and-flex-sockets
February 25 2010, 10:12pm | Comments »
-
I posted to delicious.com
save to web \ Hacks \ #Processing 1.0
http://processing.org/hacks/hacks:savetoweb
PHP
- Tags:
- processing
- php
January 17 2010, 7:54am | Comments »
-
I posted to delicious.com
Okada Design Blog » Blog Archive » Zend Framework on Codeigniter: Youtube
http://www.okadadesign.no/blog/?p=452
- Tags:
- php
- zendframework
November 22 2009, 7:55pm | Comments »
-
I posted to delicious.com
jsc (c# to javascript)
c# to javascript, php, actionscript, open source
- Tags:
- as3
- C#
- programming
- php
October 20 2009, 10:30am | 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 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
WebR3
- Tags:
- ActionScript
- as3
- php
- haxe
August 2 2009, 11:31am | 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
It is what it is » Blog Archive » JSON support for WordPress
http://blog.julienviet.com/2008/08/14/json-support-for-wordpress/
July 22 2009, 6:02pm | Comments »
-
I posted to delicious.com
bbPress » About
- Tags:
- opensource
- php
- cms
July 18 2009, 10:38pm | Comments »
-
I posted to delicious.com
http://www.up2udesign.nl/weblog/wp-content/uploads/2008/12/flexphp.txt
http://www.up2udesign.nl/weblog/wp-content/uploads/2008/12/flexphp.txt
Communicate to AS3 Compiler w/ PHP
July 7 2009, 7:36pm | Comments »
-
I posted to delicious.com
Browser.php - Detecting a user’s browser from PHP | Chris Schuld's Blog
http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/
PHP5 browser detection class
May 28 2009, 6:49pm | Comments »
