Binpress components2013-01-22T17:10:56+00:00Zend_Feed_Writerhttp://www.binpress.comBinpresscontact@binpress.comhttp://www.binpress.com2013-01-22T17:10:56+00:002013-01-22T17:10:56+00:00http://www.binpress.com/app/uiwebview-videoplayer-native-extension-for-ios-air-mobile/1272Leng Sheng Hongnoreply@binpress.comhttp://www.binpress.comdev/profile/16751An iOS native extension for Adobe AIR that provides a native video player and customizable web view. No more hacking StageWebView with unsatisfying results.Adobe AIR comes with a simple StageWebView class in its framework, allowing you to embed HTML in your mobile app. However, it has limited support for manipulating HTML in the app with AS3.StageWebView limitations that UIWebView solves:StageWebView cannot capture a bitmap of the full page contents.StageWebView does not allow you to communicate with the embedded HTML using Javascript.Javascript in StageWebView cannot call any AS3 functions, meaning there’s no communication between AS3 and JS in StageWebViewYou cannot manipulate the DOM in the HTML loaded in StageWebViewYou cannot auto play or control a video in HTML5 through StageWebView.StageWebView cannot be transparent.StageWebView can't be visually customized - hide scrollbars, shadow, background color, etc.A lot of hacking is required with StageWebView to get any kind of results, and it's still very limited in its capabilities overall -
making your life very hard if you have any of the above listed requirements in your app.With UIWebView native extension, all you need to do is link the ANE file in Flash builder/Flash Pro CS6 and start developing.You can call JS function from as3 or vice-versa, modify the DOM elements once the HTML is loaded, and even catch the URI scheme in the page so you can do actions such as mailto, skype, FTP and more. You are also able to create multiple instances of UIWebView and add it on stage without any glitches.The package also includes a VideoPlayer class that you can embed and load videos that plays in the native iOS video player, allowing you to run the video full screen, auto play it, show/hide video UI controls, communicate with the player and get video events from the video player itself.This ANE currently supports iOS 5.0 to iOS 6.0x. Example projects on UIWebView and VideoPlayer classes are included to get you started. API documentation for the native extension is available at http://darkredz.com/ane/UIWebView/apidoc/
You will receive free updates on the ANE for a year.2011-06-07T10:08:38+00:002011-06-07T10:08:38+00:00http://www.binpress.com/app/log/464Prezirenoreply@binpress.comhttp://www.binpress.comdev/profile/1056A framework that allows you to have a local or online logging system.An easy to use but effective logger class. Documentation with free samples are inside the zipped file that's under ASDocs/index.html.2011-06-01T14:42:05+00:002011-06-01T14:42:05+00:00http://www.binpress.com/app/flv-parser/445Ivo Yankulovskinoreply@binpress.comhttp://www.binpress.comdev/profile/221Read, Write, Parse, Stream and manipulate meta tags in FLV Containers on the flyThe FLV Parser makes use of the NetStream.appendBytesAction and NetStream.appendBytes methods to pass the parsed FLV tags from the ByteStream.When a NetStream object enters "Data Generation Mode" you can write your own video / audio / meta tags to the stream.The FLV class makes it possible by providing several methods for manipulating meta tags:UpdateBuffer(buffer:IDataInput)
WriteHeader(flags:int=0)
WriteMetaTag(object:Object, event:String='onMetaData')
WriteTag(type:int, body:ByteArray, timestamp:uint=0, timestampExt:uint=0, streamId:uint=0)
Seek(time:Number)
GetTagsOnTime(time:Number) : Array
MergeFLV() : ByteArray
In addition the FLV class takes care of all the usual NetStatus events, so you can use the constructed NetStream object as any other.2011-05-22T11:11:03+00:002011-05-22T11:11:03+00:00http://www.binpress.com/app/actionscript-3-tools/415No company registerednoreply@binpress.comhttp://www.binpress.comdev/profile/845Useful simple functions for everyday flashersUseful simple functions for everyday flashers that can save tons of time for actionscript developers.2011-05-22T06:44:03+00:002011-05-22T06:44:03+00:00http://www.binpress.com/app/pool-game-engine/413No company registerednoreply@binpress.comhttp://www.binpress.comdev/profile/845A pool engine to build pool games on. Modular, structured code that can be easily extended and modified.The pool engine is an external swf file that you can import into a host swf and with use of the events, you can create the additional pool game logic and even a multiplayer online pool game.2011-05-20T10:58:49+00:002011-05-20T10:58:49+00:00http://www.binpress.com/app/imagezoom/410No company registerednoreply@binpress.comhttp://www.binpress.comdev/profile/845A component that lets you magnify external images.The component lets you load external images that can be magnified with a built in magnifier.2011-05-19T09:43:48+00:002011-05-19T09:43:48+00:00http://www.binpress.com/app/asynchronous-json-decoder/407Ivo Yankulovskinoreply@binpress.comhttp://www.binpress.comdev/profile/221Extremely lightweight JSON decoder with all the features you can possible want.A fully featured but lightweight JSON decoder component. Decodes a JSON string into an object using the following features:Extremely lightweight with blazing performanceAsync decoding with various settings like max processing time, max time for the whole decodingAuto reprocessing, time to delay before the next async callTakes advantage of the global scope property to evaluate the values of the json structure during decoding (In Development)Decodes strings and keys enclosed with " or ' (can decode keys without any quotes)Block and inline comments are available with export option during the decoding processExports tags from the value field (supports custom tag names by calling mapped methods)Script Tag Evaluation Plugin is included in this package with the open source Hurlant Evaluation LibraryExamples are included2011-04-29T14:38:37+00:002011-04-29T14:38:37+00:00http://www.binpress.com/app/password-generator/328Zoofa-Designnoreply@binpress.comhttp://www.binpress.comdev/profile/1067Generate a random password with only two lines of code.To generate a password, add these two lines of code in your project:var generator:Generator = new Generator(10);
addChild(generator);
This code will generate a password from letters and digits, with a total length of 10.
If you want a password with letters only, do it like this:var generator:Generator = new Generator(10, false);
addChild(generator);
I created a demo, so you can see what you can do with this package.2011-04-28T17:53:20+00:002011-04-28T17:53:20+00:00http://www.binpress.com/app/mathutilities/323Zoofa-Designnoreply@binpress.comhttp://www.binpress.comdev/profile/1067A small math-class which can convert degrees to radials and vice versa. It also can calculate the distance between two objects.First link the "libs"-folder as swc-folder to your project and add the "math"-package.
(In the libs-folder you'll find a file named greensock.swc, this file can be downloaded for free on http://www.greensock.com/tweenlite/)To convert degrees to radials, do it like this:trace("45degrees = " + MathUtilities.degreesToRadius(45) + "rad");
To convert radials to degrees, do it like this:trace("1rad = " + MathUtilities.radiusToDegrees(1) + "degrees");
Here's an example of how to create moving circles and calculate the distance between them with this package (view demo to see how it works):package{
import math.Circle;
import math.MathUtilities;
import com.greensock.TweenLite;
import com.greensock.TweenMax;
import flash.display.Sprite;
public class Main extends Sprite{
private var circle1:Circle;
private var circle2:Circle;
public function Main(){
drawCircles();
}
public function drawCircles():void{
circle1 = new Circle( 50, 0xff0000 );
circle2 = new Circle( 10, 0x00ffff );
circle1.x = 0;
circle2.x = stage.stageWidth;
circle1.y = circle2.y = 100;
TweenLite.to( circle1, 5, {x:stage.stageWidth, onUpdate:checkDistance} );
TweenLite.to( circle2, 5, {x:0, onUpdate:checkDistance} );
addChild( circle1 );
addChild( circle2 );
}
public function checkDistance():void{
var distance:Number = MathUtilities.checkDistance( circle1, circle2);
var hitzone:Number = (circle1.width + circle2.width) /2;
if( (distance - hitzone) <=0 ){
trace("HIT");
TweenMax.killAll();
}
trace(distance - hitzone);
}
}
}
2011-04-28T16:10:51+00:002011-04-28T16:10:51+00:00http://www.binpress.com/app/tweetcatcher/322Zoofa-Designnoreply@binpress.comhttp://www.binpress.comdev/profile/1067Get tweets from Twitter by a specific tag.By adding this package and 2 lines of code to your project, you can display tag-specified tweets in your application.2011-04-23T15:40:23+00:002011-04-23T15:40:23+00:00http://www.binpress.com/app/bassta-actionscript3-framework-for-multilingual-websites/290Chrysto Panayotovnoreply@binpress.comhttp://www.binpress.comdev/profile/946An ActionScript3 framework for building multi-lingual websites, uses an easy Symfony style SWFAddress integrationBassta is an AS3 framework based on the Framy framework.The purpose is to speed-up the creation of multi-lingual websites, and to easily integrate with SWFAddress. The framework works with SWFAddress and TweenLite and provides several useful features:The Routes - add Symfony style routing. Route looks like
/page/:subpage/:param/ , you can get the 'subpage' and 'param' variables from the URI anywhere in your coceMulti-lingual support - instead of string, jast pass XMLList. example:<name lang="bg">Христо Димчев</name><name lang="en">Chrysto Dimchev</name>Widget Structure -> hook widgets with URL, control their position, the in/out animationBundled components - TextFields, Sprites, Labels
5 Automaticly resizes to browserUnique positioning system: x,y,width and height take not only number, but strings, percents and functions. For example: x = function():Number{return stage.stageWidth-50}, or y="center" centers the widgetDebug Panel - browser logging, dynamic variables, change SWFAddress path in the Flash IDE And many more. I'm working on the documentation right now, the example website is built with the older version of the framework, but the current version has the same features.