Twitter + Papervision3D (using Tweetr)
Thanks to Tweetr, using Twitter with Flash is extremely simple. This example shows the last tweet with the word “pv3d” in it. So feel free to post to twitter to see your tweet appear
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | package { import com.swfjunkie.tweetr.Tweetr; import com.swfjunkie.tweetr.data.objects.SearchResultData; import com.swfjunkie.tweetr.events.TweetEvent; import flash.events.Event; import flash.filters.GlowFilter; import org.papervision3d.materials.special.Letter3DMaterial; import org.papervision3d.typography.Text3D; import org.papervision3d.typography.fonts.HelveticaBold; import org.papervision3d.view.BasicView; [SWF(width="900", height="480", backgroundColor="#000000", frameRate="31")] public class TweetrDemo extends BasicView { private var text3d:Text3D; private var yaw:Number = 0; public function TweetrDemo() { super(900, 480); opaqueBackground = 0x000000; var tweetr:Tweetr = new Tweetr(); tweetr.search("pv3d"); // tweetr.serviceHost = "http://pv3d.org/twitter/proxy"; tweetr.addEventListener(TweetEvent.COMPLETE, tweetr_completeHandler); tweetr.addEventListener(TweetEvent.FAILED, tweetr_failedHandler); } private function tweetr_completeHandler(event:TweetEvent):void { var searchResultData:SearchResultData = event.responseArray[0] as SearchResultData; var letterMaterial:Letter3DMaterial = new Letter3DMaterial(0xcc0000); letterMaterial.doubleSided = true; text3d = new Text3D(searchResultData.text, new HelveticaBold(), letterMaterial); scene.addChild(text3d); startRendering(); viewport.filters = [new GlowFilter(0xffffff, 1, 3, 3, 10, 2)]; } private function tweetr_failedHandler(event:TweetEvent):void { //fail } override protected function onRenderTick(event:Event=null):void { text3d.rotationX++; camera.orbit(90, yaw++, true, text3d); super.onRenderTick(event); } } } |
-
commercial loans
-
Noel
-
Splengy
-
John Lindquist
-
Alexander Pelzl
-
Splengy
-
dezolo
-
PeZ
Search
Recommended Books
Speaking at FITC Toronto
Recent Posts
- Moving to johnlindquist.com
- AsyncCommand with Robotlegs, Signals, Flight, MinimalComps
- Search Widget – Robotlegs, Signals, Flight, Minimal Comps, Yahoo Astra
- FDT Super Awesome March Deal
- haXe Tutorial
- AS3 Signals Tutorial
- Preferred Video Tutorial Resolution?
- TweenMax – Tweening a timeline (Advanced Tweening)
- Robotlegs + Flight + Union Platform
- Back in the saddle
- Eclipse Theme Designer Preview
- RobotLegs Hello World Video Tutorial
- 10 Things Every Senior Flash Developer Should Know
- Efflex – 3D Effects for Flex
- MorphController – Mighty Morphing Papervision3D
Recent Comments
- شقق للبيع في الاردن on Moving to johnlindquist.com
- Annakhan006 on Augmented Reality – Recursive Webcam
- Yarout on Augmented Reality – Recursive Webcam
- Vivon on about
- Josh @ Wall Stickers on Moving to johnlindquist.com
- list of lpn courses on SpringCamera3D and Driving a Car
- rn to bsn in montgomery al on archive
- PowerPoint Recovery on Eclipse Theme Designer Preview
- cheat mw3 on Test if a plane is within the view of the camera (aka testing if culled)
- Goa Hotels on Looking around the inside of a Sphere
Categories
Archives
Preferred Video Tutorial Resolution
- 1024x768 (53%, 85 Votes)
- 1280x1024 (15%, 24 Votes)
- 1920x1080 (15%, 24 Votes)
- 800x600 (13%, 20 Votes)
- 480x320 (4%, 6 Votes)
- 640x480 (0%, 2 Votes)
Total Voters: 160


