Custom Flash Google Voice Widget

Today I created my first Google voice widget in flash. Which also happens to be my first flash project and i know its poorly made and probably just plain bad. But I will share it with the word to prove that I could do it!!!!

I am looking into working with a friend in making a fully customizable version in flash cs3/4 or in Flex. Or you can create your own using the code I provided before.

I know its crude but I will be learning flash little by little.


var variables:URLVariables = new URLVariables();
 variables.callerNumber = "1" + pNum;
 variables.buttonId = "(id in the flashvars in the Google Version of the Google Voice Widget)";
 variables.showCallerNumber = "1";
 variables.name = fName;

 var request:URLRequest = new URLRequest("https://clients4.google.com/voice/embed/webButtonConnect"); //Insert your own URL here.
 request.method = URLRequestMethod.POST;
 request.data = variables;
 var loader:URLLoader = new URLLoader();
 loader.dataFormat = URLLoaderDataFormat.VARIABLES;
 //loader.addEventListener(Event.COMPLETE, completeHandler);
 try{
 loader.load(request);
 }
 catch (error:Error) {
 trace("Unable to load URL");

}
This entry was posted in AS3, Example, Flash. Bookmark the permalink.

10 Responses to Custom Flash Google Voice Widget

  1. Paul Kern says:

    I created a Google Site just to host my Google Voice icon, but now like you, I would like to use a different/more professional interface (people say the Google graphic looks like an advertisement/etc.).

    I would like to do this in Flash as you have, and as I look at how to get started with Flash and work with your example, I am finding a lot of material oriented towards graphics instead of data/form entry, and other tools like ColdFusion/etc. Since you’ve just done your first project, could you provide a short getting started list?

    Thanks!

    Paul

  2. Lonnie Sohm says:

    2 questions:

    What address would I add at the end of line 7? My domain? Is it needed?

    Line 12 is comented out. When I test and uncomment, the movie file goes crazy. What is this line for, if anything, and does it need to be formatted in a specific way?

    Thanks!

  3. Snipsta says:

    the only line that needs to be worked on is line 3 you must fill in the button id. that is all there is to making this script work.

  4. Andrew says:

    Can you provide the FLA? I used to do a ton of flash in actionscript 2.0 but I don’t know 3.0 yet.

  5. Bob says:

    great flash widget!

    however, do you have any documentation on how to set up the stage in flash for this to function correctly?
    or can you provide a .fla source?
    all i need it to know what to link my fiends and buttons to.

    Thanks.

  6. Brett says:

    Great work, would love to see the .FLA file as well. Thanks.

  7. Sam says:

    I’ve been trying to get this to work in my own version of a widget and for the life of me I can’t get it to. I have the code right, have the right checks in for form validation, but it just won’t send! Any advice? Or the .fla so I can see where I’m going wrong?

  8. David says:

    This is pretty cool. I got it to work on my computer, but when I upload it, it no longer works. Did you experience this at all? Any idea why that might happen?

  9. Ezra says:

    This is great, I’d like to get this flash version, is it for sale?

    Thanks

  10. phatkwok says:

    works great! i tried to decode the thing my self but i’m not good at as2? man that thing gets you running all over the place.

    ignore comment in line seven… its supposed to send the vars to gv other wise its just not gonna work.

    the only thing to set up is the phone#(pNum) and name (fName). set the instance name on the stage or textvar to (pNum) and (fName).

    thanks!

    another thing i dont see any thing wrong with the code. the only thing i’m gonna do is make a class for it. so i wouldnt have to rewrite it in the future.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>