Posts

Showing posts with the label Source

Upload Video to Facebook Using Actionscrpt 3.0

For the last one week am searching for uploading video to Facebook using Graph Api from Flash. First challenge is to find something which will help to capture video from webcamera and convert it to ByteArray. The problem is Actionscript doesn't had any utlity to save video from webcamera. It uses Flash media server to save video. But i need something which not uses any server side acript. After searching several hours in google i found a link. http://www.zeropointnine.com/blog/updated-flv-encoder-alchem/ In this utility it uses snapshots from the webcamera which will encode it . Though it had some drawbacks and limitations, it serves my requirement for small videos. I used it for creating videos. Next i need to upload video to facebook. This is the api used to connect facebook using Actionscript. http://code.google.com/p/facebook-actionscript-api/ This API uses a different function for uploading videos to facebook . Facebook.uploadVideo(). The reason for different...

Font embedding in Flash cs5

Image
When i switched to Flash CS 5 am always confused with font embedding in Dynamic Textfield. It's different from CS4 and also not simple. So i am trying to list out the methods i used to embed fonts in flash CS Method One It's used to embed fonts for single or similar type of textfields. If the textfields were using same font and format this is effective. To do so first select the TextField and goto the properties panel. select the embed button . It will open embed window. select the glyphs needed. In this method any additional code is not needed. Method Two If you tried to embed same font with different textformat using the above method , most probably the format will not be applied. To solve this the subset of the fonts should be embedded and need format textfield using TextFormat. The code looks like this: var format:TextFormat = new TextFormat(); format.font = "Helvetica"; format.bold = true; var format3:TextFormat = new TextForm...

Customizable XML based Flash image scroller

I missed this blog for more than  2-3 months. It's been a long time since i have wrote something usefull . So i created a image scroller using XML .This scroller uses TweenLite for tweening and it's simple to customise. You can add image with any size and can customize the number of images shown. I have shared the source code here. Requirements 1. Flash CS5 http://www.adobe.com/products/flash/ 2. TweenLite AS3.0 http://blog.greensock.com/tweenlite/ It's possible to change the attributes through xml if you wanted . Read the params from xml and add to the local variable inside the function onXmlLoadComplete . //Total number of images : private var total:Number = 0; //Current item to be displayed; private var currentId:Number = 0; //The number of items to be shown ata a time: private var itemsToShow:Number = 4;

Flash FLVPlayer in ActionScript 3.0

Actionscript 3.0 , oh my god am scared of it . Whenever i know about actionscript 3.0 am confused with it.I have exposure only in AS 2.0 . I searched google for a year and could not get rid of this fear. I read several books but none help me to understand the AS 2.0 . I have a good exposure in JAVA . But the thing is i can't differentiate OOPs with timeline based one. Then i got this book. Learning ActionScript 3.0 by Rich Shupe and Zevan Rosser It's wonderful and awesome . When started reading this book my curiosity cross the limits and started to experiment with AS 3.0. As my main area is video , i experiment it with a flv player . It may have problems and ubiquitous as it is my first experiment with AS 3.0. Anyway am sharing my source code and expecting some comments over it. Requirements 1. Flash CS4 http://www.adobe.com/products/flash/ 2. Learning ActionScript 3.0 http://www.learningactionscript3.com/