Google Chrome now has extensions, and GG now want to have create some Google Chrome extensions ^^
By referring to the Getting Started tutorial and samples on Google Code Labs, I've created my first Google Chrome "Hello, World!" extension. It was much easier than expected.
Steps:
1) Create a folder called mygc_ext01.
2) Create a text file called manifest.json inside mygc_ext01 folder, contains code:
{
"name": "My First Extension",
"version": "1.0",
"description": "The first extension that I made.",
"browser_action": {
"default_icon": "icon.png"
},
"permissions": [
"http://api.flickr.com/"
]
}
3) Prepare an PNG icon called icon.png put into the same folder.
I've tested it with .ico file in my Windows 7, it works.
If we use a .ico icon, we should also change the value for default_icon to our .ico filename (e.g. filename.ico).
4)Now load the extension into Google Chrome.
Click on Tools
menu and choose Extensions.
Enable Developer Mode.
Click Load unpacked extension...
Browse for the mygc_ext01 folder, and press OK.
My icon successfully displayed as an extension button on Google Chrome
.
5) Edit manifest.json, add popup parameter below default_icon
...
"browser_action": {
"default_icon": "icon.png",
"popup": "mypage.html"
},
...
6) Create a new file called "mypage.html" put into the same folder.
Display something in the html page body.
7) On Google Chrome Extensions Developer Mode, press the Reload link behind My First Extension. And now if I click on my extension button, mypage.html will be displayed in a popup.
I'm planning to create some Google Chrome extension, but for now still need to sort my bunch of idea.
Below is an working example mygc_ext01 where mypage.html contains code to retrieve and display some picture from flickr.
Download:
Google Chrome extension sample code
Reference:
http://code.google.com/chrome/extensions/getstarted.html
Due to an unknown reason, the latest version of GG Commands MXP file takes 4 months to online.
I've got some negative comments regarding this problem.
Sorry for any inconvenience caused. It was unintended.
Below is the submission log:
22/05/2009
Submitted the MXP file to Adobe Exchange. Status: Pending Admin Review.
30/06/2009
More than 6 weeks MXP submitted, still pending admin review, contacted Adobe.
23/07/2009
Adobe Exchange feedback that previous submitted MXP file was unsuccessfully uploaded.
Uploaded the MXP again. Status: In QA Process.
20/09/2009
It has been almost 2 months the new MXP file in QA Process, but it is still not approved. Contacted Adobe again.
22/09/2009
The GG Commands v2 MXP file has finally been approved by Adobe Exchange, and released.
The newest MXP file is now can be downloaded from Adobe Exchange.
For those who has downloaded it previously, please download it again. GG Command v2
GG Commands is a free JSFL commands extension package, it makes jobs easier in Flash. After you download and install the GG Commands v2, you can access it from Commands menu.
The current version includes 7 useful commands below:
- Distribute to Keyframes
- Duplicate Selection
- Frames Selection Report
- Insert Multiple
- Resize Text
- Scale to Stage
- Slice Bitmap Instance
After you download and install the GG Commands v2, you can access it from Commands menu (screenshot).
Distribute to Keyframes
- Distributes selected text fields and symbol instances to keyframes.
Duplicate Selection
- Duplicate selected elements with specified quantity, scale, and rotation.
Frames Selection Report
- Generates report for number of selected frames in timeline
Insert Multiple
- Insert multiple frames, keyframes, blank keyframes, or layers.
Resize Text
- Resize selected text field to user defined width and height.
Scale To Stage
- Scale selected shape/instance to the stage size, or with margin.
Slice Bitmap Instance
- Slice selected bitmap instance to rows and columns.
Warning: Slice Bitmap Instance command still has a unstablity problem causing the Flash IDE to quit or not responding. Please remember to save your document before slice.
GG Chinese Text Converter is a free flash AS2 Chinese Simplified/Traditional text converter component.
GG Chinese Text Converter can converts text from Chinese Simplified to Chinese Traditional, or Chinese Traditional to Chinese Simplified.
s2t() & t2s() functions
trad_txt.text = componentInstance.s2t(simp_txt.text);
simp_txt.text = componentInstance.t2s(trad_txt.text);
e.g.:
my_btn.onPress = function() {
trad_txt.text = my_cconv.s2t(simp_txt.text);
};
GG WebSwfExts is a set of flash component for web based swfs. Version 1.0.0 includes 3 useful components below:
- GG bgColor v1
- GG jsWindow v2
- GG mailto v1
GG bgColor v1
A flash actionscript component integrates DOM document object bgColor property. Allows HTML body background color to be changed by using actionscript command.
Editable Parameters:
| N/A | N/A |
Examples:
[01][02] click to open
GG jsWindow v2
A flash actionscript component integrates JavaScript popup window function, launch JavaScript popup window in Flash, with fully customizable window properties, include toolbar, location, directories, status, menubar, scrollbars, resizable, copyhistory, width, and height.
componentInstance.openWindow(url, windowName);
e.g.:
my_btn.onPress = function() {
my_popup.openWindow("http://www.ggshow.com", "my_window");
};
componentInstance.closeWindow(windowName);
e.g.:
my_btn.onPress = function() {
my_popup.closeWindow("my_window");
};
Editable Parameters:
| toolbar | Determines whether to include the standard Back, Forward, Home toolbar. |
| location | Determines whether to show the current URL location. |
| directories | Determines whether to show "What's New" "What's Cool," or other buttons. |
| status | Determines whether to have a status bar at the bottom of the window. |
| menubar | Determines whether to include a menu bar at the top of the window. |
| scrollbars | Determines whether to create scroll bars if the document exceeds the window size. |
| resizable | Determines whether the user may resize the window. |
| copyhistory | Determines whether this new window should inherit the current window's session history. |
| width | Defines how wide the window should be, measured in pixels. |
| height | Defines how tall the window should be, measured in pixels. |
GG mailto v1
Customizable mailto function in flash, launch users' email client with complete parameters includes to, cc, bcc, subject, and body.
Editable Parameters:
| to | Receipients' email address(es), separated by using semicolon (;). *required |
| cc | cc *optional |
| bcc | bcc *optional |
| subject | email subject *optional |
| body | email message body, use %0A as line break. *optional |
:: Next Page >>
GG Components, GG Tools, GG Book pf2, GG Commands, GG FLV Player Panel (FLVpp), GG Key Info Panel (KIP), GG jsWindow...
:: Next Page >>
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Valid XHTML ||
Valid CSS ||
Valid RSS ||
Valid Atom
Copyright © 2006-2009 GGSHOW. All Rights Reserved.
GGSHOW.COM | GGSHOW.NET
eBoaY | tuBabe | syndicater | Nobody's Website | NeverTheLink | NiShiZuiHaoDeNiZhiDaoMa | WorldCoin