Archive for the ‘Flex’ Category

Article: Flex Communication with ASP.NET WebService

I just posted my new CodeProject article Flex Communication with ASP.NET WebService. This article demonstrates how to communicate our ordinary ASP.NET WebService with Adobe’s Flex.
Read here: http://www.codeproject.com/KB/aspnet/FlexASPWebService.aspx
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

Invoke a ASP.NET WebService from Flex

Here, I used a basic WebService created with ASP.NET. Below is a basic hello world functionality we get when creating a new WebService with Visual Studio.

using System.Web.Services;
 
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
 
public class Service : System.Web.Services.WebService
{
public Service () {
 
}
 
[WebMethod]
public string [...]

Comments (1)

Article: Flex HTTPService with ASP.NET

My new article Flex HTTPService with ASP.NET posted to CodeProject.
Read it now
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

Using HTTPService of Flex to get data from ASP.NET

Here goes the sample code:
ASP.NET – Default.aspx:

<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
 
<script runat="server">
 
protected void Page_Load(object sender, EventArgs e)
{
SqlDataAdapter da = new SqlDataAdapter("select id, name, email from test",
"Data Source=localhost;Initial Catalog=test;User Id=;Password=;");
[...]

Leave a Comment

Publish and receive webcam with flex on Flash Media Server

This is a working sample I made for education purpose.

This script enables your webcam
Show in a box the local webcam copy
Publish to FMS (Flash Media Server)
Receive from FMS
Display the received (streamed) video in another Box.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="init()">
<mx:Script>
 
import mx.controls.Label;
[...]

Leave a Comment

Enable WebCam using flex

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
 
<mx:Script>
private function startcam():void {
var camera:Camera = Camera.getCamera();
[...]

Leave a Comment

Enable webcam using ActionScript2

var testcam = Camera.get();
testvideo.attachVideo(testcam);

VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment