Skip to content

sugamasao/BrowserUtility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AS3 to Browser Utility Class.

this Class is ExternalInterface wrapper Interface.

Example. Flash Page access example.com and use Browser IE8

BrowserUtility.location.href // http://example.com
BrowserUtility.browser.isIE  // true or false
BrowserUtility.browser.version  // 8

provided class .

  • com.github.sugamasao.browser_utility.BrowserUtility (static class)

  • com.github.sugamasao.browser_utility.Browser

  • com.github.sugamasao.browser_utility.Location

Japanese page

Description

  • BrowserUtility is Browser and Location Class Creation. from use to ExternalInterface,

  • Browser Class is check Browser brand and version.

  • Location Class is Like JavaScript ‘window.location’.

Look for ASDoc.

Synopsis

use code

use BrowserUtility.location or BrowserUtility.browser.

BrowserUtility.location.href // http://example.com
BrowserUtility.browser.isIE  // true or false
BrowserUtility.browser.version  // 8

want browser or location date refresh. use to refreshxxx method.

BrowserUtility.refresshLocation.href // once agein ExternalInterface to window.location data.
BrowserUtility.refreshBrowser.isIE  // once agein ExternalInterface to navigator.userAgent data.

Browser

  • browser.isIE // true/false

  • browser.version // 8

Look for ASDoc.

Location

  • location.href // example.com

  • location.hash // #hogehoge

Look for ASDoc.

Features/Problems

  • Building OS MacOSX

  • Building Compiler FlexSDK 3.4

  • check browser is Firefox3.6 and safari4.1

caution

this Program use ExternalInterface. See supported Browser

CHANGE LOG

  • v1.3.1 add UA Test Case. IE Tests.

  • v1.3 implement toString.

  • v1.2 get Browser Version logic modified. and add by isUnknown flag and userAgent getter.

  • v1.1 add test case. and add check logic.

  • v1.0 first release.

Author

sugamasao <sugamasao@gmail.com>

License

MIT License

About

AS3 browser utility. provide use ExternalInterface Utility methods

Resources

Stars

Watchers

Forks

Packages

No packages published