Place Call

Must Read

Just post!

The URLRequest class can be used to open the Phone application to place a call. By prepending the request with tel:, you will tell Android to launch the Phone application when the navigateToURL method is called. Figure 6-8 shows the sample application running and Figure 6-9 shows the Phone application with the phone number pre-populated:

<s:Application xmlns:fx=”″
protectedfunction sendIt_clickHandler(event:MouseEvent):void
var s:String = “”;
s += “tel:”;
s+= call.text;
navigateToURL(new URLRequest(s));
<!– Place non-visual elements (e.g., services, value objects) here –>
<s:Label text=”Phone #” top=”40″ left=”50″/>
<s:TextInput id=”call” top=”30″ left=”160″ text=”2125559999″ width=”250″/>
<s:Button id=”sendIt” label=”Send” click=”sendIt_clickHandler(event)” top=”110″

A sample Phone application

The Phone application with number pre-populated

Previous articleCreate Email
Next articleSplash Screen
- Advertisement -

Latest News

GAC Group’s Global Expansion Strategy: Key Details Revealed

On August 25th, GAC Group released its 2023 semi-annual report, showing a total operating revenue of 233.532 billion yuan...
- Advertisement -

More Articles Like This

- Advertisement -