Accessibility
 
Home / Developer Center / Mobile and Devices Developer Center /

Developer Center Article

Icon or Spacer Icon or Spacer Icon or Spacer
Phillip Torrone
 
 
phone
 

Call meƒNow!


Using Macromedia Flash for the Pocket PC to dial the Pocket PC Phone Edition
Well, the future arrived a little while ago and we now have the Pocket PC Phone edition, wait—if the future has already arrived then it's the past…no matter! In this article I'm going to talk about using the Pocket PC Edition with Macromedia Flash to actually dial the phone using…you guessed it, Macromedia Flash for the Pocket PC. To the left is a picture of my Pocket PC.

Pocket PC Phone Edition
First, let's talk about the Pocket PC Phone Edition. What is it? Well, basically it's a Pocket PC 2002 device, just like the ones some of you use right now, but it has built-in phone capabilities such as on screen dialing, web surfing, integrated contacts (tap a contact, it dials the phone or sends a sms), speed dial, caller ID, notes, speaker phone, custom ring tones (WAV files), and all the great features of a Pocket PC (multimedia, rich applications like Macromedia Flash), but it's also a phone available from a wireless provider such as T-mobile and o2.

For more information about the Pocket PC Phone Edition, visit the Microsoft Pocket PC 2002 Phone Edition page.

Macromedia Flash on the Pocket PC Phone Edition
So, that's pretty exciting, right? Well, it gets better. Since it's a Pocket PC 2002 device, it can use Macromedia Flash Player 5 for the Pocket PC (Macromedia Flash Player 6 is not supported at this time). If this is new information, now might be a good time to visit other parts of the Macromedia DevNet for mobile devices. In particular, check out the Macromedia Flash Player 5 for Pocket PC developer kit.

Also, if you have Pocket PC 2002 device, you can get the Macromedia Flash Player for Pocket PC.

 

Basically, the Macromedia Flash Player 5 for Pocket PC 2002 is an amazing rich and functional way to put content on a mobile device. From games, calculators, utilities, Today screen enhancements, data visualization applications, point of sale applications, animations, to online banking—just about anything you would use Macromedia Flash for on the desktop, the Pocket PC can provide a mobile version, often with only minor changes to the SWF files.

But let's talk about integration. The Macromedia Flash Player for Pocket PC is a plug-in for Pocket Internet Explorer, much like its desktop cousin. The Macromedia Flash Player supports many of the same internal and external browser calls like getURL and mailto: but with the Pocket PC Phone Edition there's additional support for Tel URL. What is “Tel URL”? Tel URL allows the phone's dialer application to receive a request to dial from a link in an application. The link can be in many applications on the Pocket PC such as Microsoft Word, MSN Messenger and of course Pocket Internet Explorer. This is very useful for folks who own Pocket PC Phones since anytime a phone number is used, there's a good chance that the user can tap it to dial. When a Tel URL link is clicked, the phone is not dialed automatically (that would be a security issue). Instead, a dialog is presented and the user can choose to allow the call or cancel it. So let's look at how you can use Tel URL in HTML, and then we'll show you how to use it in Macromedia Flash.

Using Tel URL
When placing a link to dial the phone in HTML using Tel URL, you use similar syntax as a regular hyperlink with one exception, you use tel: and the phone number. Consider the following example:

<a href="tel:12063722651"> call pt</a>

In the UK, you'd do almost the same thing but with the country code, as follows:

<a href="tel:447070555555 "> call person in the UK</a>

I've included an example in the tutorial ZIP file (78k).

If you're looking for more information on Tel URL, visit the MSDN Library.

In Macromedia Flash
Now, if you're a Macromedia Flash developer, the light bulbs above your heads have already gone off—you can use Tel URL in Macromedia Flash for the Pocket PC, on a Pocket PC Phone edition device! That's right, if you've ever used getURL to create e-mail links or links to web pages, you can do pretty much the same thing with a Macromedia Flash request to dial the phone number. Simply place tel: and the phone number in a button action, as follows:

on (release) {
getURL("tel:2063722651");
}

 
The Actions window with the Button script using getURL
 
So there it is, pretty simple. Here's what it looks like on the Pocket PC Phone Edition:
 
Screen one on the Pocket PC
 
Screen two on the Pocket PC
 
Screen three on the Pocket PC
 

Now if you try this on a non-Pocket PC Phone Edition, you'll get an error saying the device cannot find the associated application—so make sure to deploy this to devices that have Pocket PC Phone Edition software. On that note, phone expansion sleeves and cards are coming to many current Pocket PC devices, so check with the vendors who provide the software to ask if additional calls are needed and if their phone software supports Tel URL.

 

Potential applications
So what could you do with this? Customer support, full-featured rich phone book applications with sound and video, perhaps a secret ending to a game could unlock a phone number, the possibilities are endless…

Let me know if you think up something cool, e-mail me: phillip@flashenabled.com or call (but no solicitors please…).

 
 

About the author
Phillip Torrone is well known in the handheld industry as a visionary and pioneer, having worked on several software and hardware projects including the Newton for Apple Computer. Phillip is director of Product Development at Fallon Worldwide (www.fallon.com): one of the world's most critically acclaimed creativity companies, delivering innovative strategic business solutions for some of the world's leading brands. Fallon recently released "The Hire" a series of Internet only films on BMWfilms.com by top directors in Hollywood. In addition to being a designer, developer, and inventor, Phillip is co-author of three books on rich media and device application development and runs the popular device site site: www.flashenabled.com/mobile/.