Flash Remoting.com
Home Book Examples Blog Resources About
Search

You are using an out-of-date browser so the pages will not display properly. Please update your browser.

Random thoughts on Flash Remoting:

This is where I get to ramble when I feel like it. Kind of like a blog, but it's not a blog. This is a blog. ;-).

6 posts in November 2002.

[ALL] 1/06 | 9/05 | 8/05 | 7/05 | 10/04 | 8/04 | 7/04 | 6/04 | 4/04 | 3/04 | 2/04 | 1/04 | 12/03 | 11/03 | 10/03 | 9/03 | 8/03 | 7/03 | 6/03 | 5/03 | 4/03 | 3/03 | 1/03 | 12/02 | 11/02

1-5 | 6-6

CFLOGIN Authentication Using IIS

Saturday, November 30, 2002 5:56:56 PM

After much trial and error using IIS and ColdFusion MX, I've found a problem with the CFLOGIN authentication system. The problem is in the default IIS settings. To get the <cflogin> tags to work properly -- allowing the setCredentials() method to work in Flash Remoting -- you need to open up IIS admin interface and right-click on your Web application and choose Properties > Directory Security > Anonymous Access > Edit. Here you will have to uncheck the Integrated Windows Authentication. Using integrated authentication only allows users that are set up under Windows to access pages in a directory protected by a <cflogin> system. The <cflogin> system works perfectly with the built-in CFMX web server. Screenshot of the admin interface of IIS here.

Add comment (1)
View comments

Flash Remoting for ASP.NET -- No errors on expiration

Friday, November 29, 2002 7:52:12 PM

After working with the trial version of Flash Remoting for ASP.NET for a while from the local computer where it was installed, I was trying out a new DLL from another computer. Apparently the trial 30-day version had expired, but I didn't realize it. The Flash environment did not show any errors -- even with the debugger turned on. I finally figured out the problem when I examined the Flash logs. After installing the full version, the DLL suddenly worked. I was expecting an error message like the one that is seen when accessing a ColdFusion service from Flash, such as "licensed for development only" or something along those lines. I didn't expect the debugger to stop dead in its tracks. One more for the wish list. . . .

Add comment (1)
View comments

More on ASObject for ASP.NET

Thursday, November 28, 2002 11:37:15 AM

The myASObject.Add("myProperty","myValue") does not work when the property already exists. For that, just set the property directly:

myASObject["myProperty"] = "myValue";

Add comment (0)
View comments

ASP.NET ASObject

Tuesday, November 26, 2002 5:54:19 PM

I finally figured out a few things in the ASP.NET version of Flash Remoting. I've been trying to piece together the various implementations of object.RegisterClass() on the server side of things. The ServerSide ActionScript implementation turned out to be the easiest--you basically don't do anything. You simply pass the objects back and forth. The ASP.NET version is not documented very well, but I found that the C# ASObject inherits Hashtable. Hashtable has an Add() method, which is also shown in the example in the Flash Remoting documents. The documents did not describe how to read a property, however. In Java, you would use a get() method. To read a property in C#, I just use the property name:

DateTime myProperty = myObject["myItem"];

You have to also use the correct data types for your properties.

The Hashtable also allows you to iterate through the properties of an object:

IDictionaryEnumerator myEnum = myObject.GetEnumerator();

while (myEnum.MoveNext()) {
Console.WriteLine(myEnum.Key + " : " + myEnum.Value);
}

Some other useful methods of the Hashtable which would be available to the ASObject as well would be:

Checking the Key list:

if(myObject.ContainsKey("myKey")) {
// do something
}

Checking the Value list:

if(myObject.ContainsValue("myValue")) {
// do something
}

Add comment (0)
View comments

Director MX Announced

Monday, November 25, 2002 5:53:44 PM

Director MX was announced today. Director MX allows Flash Remoting to be used in Director applications. This could be very cool. Director is a little over my head because I'm not a designer or animator, but it means more exposure for Flash Remoting, and CF-enabling Director animations.

Add comment (0)
View comments

1-5 | 6-6