Description:
PowerField is a “tuned” search field. Except from the default search capabilities, Powerfield can also solve mathematical equations, convert between different units and currencies and used as a launcher too!
Main idea:
Search is something which we can not live without ant this is the main reason why every web-page, blog, service and program has a text field for this purpose!
As everything evolves, this textfield has to evolve too. Why do I have to leave a webpage in order to calculate a total or in order to make a currency conversion?
Why I can’t do those easy but valuable operations in the same textfield I use for searching? The answer to this question is PowerField!
Tips:
1)You can not use Powerfield on your local machine! You must be online in order to be able to use it because of Adobe’s security policies!
2)PowerField needs 3 xml files in order to work properly : config.xml, links.xml and currencies.xml. All of these files are included in the current file!
Pros:
Powerfield can be used as:
a Calculator,
a Unit Converter,
a Currency Converter,
a Launcher,
and of course as a searchbar.
Calculator:
Supported functions: +, -, /, *, sqrt, sqr, ^, log, sin, cos, tan, parentheses.
Unit converter:
Categories:
Length: kilometers, meters, centimeters, millimeters, micrometers, decimeters, chains, feet, furlongs, hands, inches, leauges, lines, links, miles, nautical miles, rods, yards.
Area: square meters, square millimeters, square centimeters, square decimeters, square kilometers, ares, hectares, square inches, square feet, square yards, square miles, acre.
Volume: cubic meters, liters, centiliters, milliliters, cubic feet, cubic yards, barrels, gallons, quarts, pints.
Weight: kilograms, short tons, tons, pounds, ounces, grams, milligrams, carats, stones.
Energy: kilojoules, joules, kilograms-meter, watt hours, kilowatt hours, erg, calories, kilocalories
Pressure: bars, pascals, hectopascals, kilopascals, megapascals, technical atmospheres, atmospheres, torrs, milimeters of mercury, inches of mercury, pound-force per square inch, newtons per square millimeter, kilograms per square meter.
Speed: miles per hour, miles per second, yards per second, feet per second, kilometers per hour, kilometers per second, meters per second, knots, mach.
Time: years, months, weeks, days, hours, minutes, seconds, milliseconds.
Unit converter also supports those abbreviations: mm, cm, dm, m, km, ft, in, n.m, n.m., ac, cc, kg, l, ml, cl, lb, pt, yd, gr, t, ton, oz, mph, mi/h, mi/s, yps, yd/s, fps, ft/s, mps, kph, kmh, kmph, km/h, km/s, m/s, kn, ma, j, kj, wh, kwh, kgm, cal, kcal, pa, hpa, kpa, mpa, at, atm, mmhg, psi, min, sec, ms
Currency Converter:
Exchange rates are loaded from European Central Bank and are updated every day.
Supported Currencies: USD , JPY, BGN , CZK, DKK , EEK, GBP , HUF, LTL , LVL, PLN , RON, SEK , CHF, NOK , HRK, RUB , TRY, AUD , BRL, CAD , CNY, HKD , IDR, INR , KRW, MXN , MYR, NZD , PHP, SGD , THB, ZAR .
Launcher:
You can edit the exrernal links.xml and add as much links as you want! By default you can use yt, fb, gmail, google and digg.
Search Engine:
You can use whatever search engine you want by changing google’s search query in the config.xml(searchEngineUrl tag) file to the one you want. For example for Bing use: http://www.bing.com/search?q=
You can even make google search only in a specific webpage or blog by using the searchOnlyThisUrl tag in config.xml
How to use:
1)Design your search bar in Flash by creating a dynamic textField and a button
2)Convert this textField to PowerField using this simple line of code:
var myPowerField:PowerField=new PowerField(dynamic_txt_instance_name,button_instance_name);
Note: You need to import com.cyprog.utilities.PowerField and copy the com folder in the directory with your .swf file
3)Customize config.xml in order to change the default search Engine and how the results will pop up.
or you can use the included main.swf which is a PowerField ready to go!
Download PowerField (Other)