UPDATED ver 1.3.3 (March 2012):
- added
percentagefunction which can be used with the percentage symbol (i.e 10%200) - added support for case sensitive abbreviations
- fixed a bug with “date” and “day” commands. Now you can use 4 digits year format, and also all the 2 digits years after 70, take a “19” prefix instead of “20”
- fixed some bugs of the preview file
UPDATED ver 1.2 (February 2011):
- added
daycommand which returns the current day - added
:date:DD/MM/YYcommand which returns the difference between today and the date you specify in days - added
:day:DD/MM/YYcommand which returns the day of the current date - added support for different search engines using external queries loaded from searchEngines.xml. For example use:
yt:what_do_you_want_to_search_for - fixed a bug with the “time” command
UPDATED ver 1.1 (January 2011):
- support constants (pi,e)
- you can clear the textfield using the escape key
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, constants (pi, e), 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:
- Design your search bar in Flash by creating a dynamic textField and a button
- 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 - 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!

6 Purchases
24 Comments