Display my twitter in Flash
hello,
i want display tweets in flash using as3. there tutorial teach me how that. please ?!
regards,
this excerpt published book wrote, http://www.amazon.com/flash-game-development-social-mobile/dp/1435460200/ref=sr_1_1?ie=utf 8&qid=1373033301&sr=8-1&keywords=gladstien
two main steps needed use requests requires authentication. first, must register game twitter. second, must either implement oauth protocol or use library tweetr implements protocol.
game registration
to use requests require authentication (and supported), must first register game twitter @ https://dev.twitter.com/apps/new. (see fig11-12.)
***insert fig11-12.tif***
fill out form, agree rules, prove human being filling out captcha form , click create twitter application button. should see fig11-13.
***insert fig11-13.tif***
copy consumer key , consumer secret. need both make authenticated requests on behalf of users. these numbers used twitter identify game when user gives game permission make requests on behalf.
click settings tab (see fig11-14) , add icon or change settings, if needed. in particular, note application type settings. if need more read-access, tick read , write or read, write , access direct messages.
***insert fig11-14.tif***
click update twitter application's settings if made changes or additions.
tweetr
tweetr free open-source actionscript library implements oauth protocol , allows game make twitter requests require authentication. setting game use tweetr multi-step process.
all needed files in support files/chapter 11/twitter/authentication. ensure have latest files go http://wiki.swfjunkie.com/tweetr.
- download , extract swcs.zip
- download , extract oauth_template.zip
- download , extract docs.zip
- download , extract proxy.zip
- add tweetrweb swc library path extracted swc.zip.
- go http://code.google.com/p/as3crypto/downloads/list , download as3crypto.swc
- add as3crypto.swc library path. (see fig11-15.)
- find js folder extracted in step 2 , upload server.
- find proxy folder (that contains index.php, install.php , tweetr.php) extracted in step 4 , upload website.
- open website's install.php file in browser , follow steps create needed files. here walk-through: http://wiki.swfjunkie.com/tweetr:howtos:installing-the-proxy
- create verified.html page , upload server:
- create twitter.html, swf's embedding html page, , upload server:
- upload swfobject folder support files/chapter 11/twitter/authentication
***insert fig11-15.tif***
More discussions in ActionScript 3
adobe
Comments
Post a Comment