Combobox Plugin
combobox.swf / combobox.js
Version 1.0.8.14
for Flash and HTML5
- A standard Flash dropdown combobox.
- Items can be defined statically and/or dynamically.
- The position and size of it can by adjusted with the standard plugin attributes.
- The Flash CS4 source code (.fla) is available here (750kB).
- Note - the old <action name="combobox:..."> syntax is officially not longer supported
and shouldn't be used in new projects but it is still there for backward compatibility!
-
dropdownwidth
- The width of the drop-down bar in pixels, default=0 which means automatic.
-
rowcount
- The number of items without scrollbar, default=5.
-
native
- Should the native browser combobox element be used.
- Settings: "true", "false" or "auto" (default)
- With "auto" the native element will be used on Desktop and the not-native iPad-style one on iPhone and iPad.
Using the native one on iPhone/iPad would cause rendering problems and instability.
- By setting native="false" it would be possible to use the iPad-style combobox also on Desktop.
-
cbdesignscale
- Scaling of the combobox design (1 - 2).
- Defaultvalue: auto ⇒ 1 for iPad and Desktop, 2 for iPhone
- That means the comobox is by default twice as large on the iPhone (in kind of krpano coordinates) for better and easier touch usage.
-
cbfont
- Font of the combobox text.
- Defaultvalue: Arial
-
cbfontsize
- Fontsize of the combobox text.
- Defaultvalue: auto ⇒ 14 for iPad and Desktop, 16 for iPhone
-
cbfontstyle
- Fontstyle of the combobox text.
- Settings: normal, bold, italic, bolditalic
- Defaultvalue: normal
-
cbpadding
- Padding around the comobox text.
- Defaultvalue: 8
-
cbtoosmallfix
- Automatic fix for too small comobox elements.
- That means when the combobox element is very small, then a special smaller design and a smaller fontsize will be used.
- Settings: true or false
- Defaultvalue: true
-
itemfont
- Font of the combobox items.
- Defaultvalue: Arial
-
itemfontsize
- Fontsize of the combobox items.
- Defaultvalue: 16
-
itemfontstyle
- Fontstyle of the combobox items.
- Settings: normal, bold, italic, bolditalic
- Defaultvalue: normal
-
itempadding
- Padding around the comobox items.
- Defaultvalue: 10
-
name
- An unique identification name for the item.
-
caption
-
onclick
- The onclick event, will be called when selecting the item.
Local actions of the combobox plugin object.
| FOV-Type example with several combobox elements |
|
|
| Scenes with combobox (Example included in the krpano viewer download package) |
|
|
| iPhone / iPad Combobox Example |
|
|