I have started exploring Flash Remoting using Flash MX 2004 Pro and ColdFusion MX 6.1. Wouldn't you know it, even "Hello World" samples do not work. Here is the error I can't explain. The code sample in the manual has this in the beginning: import mx.remoting.Service; import mx.remoting.PendingCall; import mx.remoting.RecordSet; import mx.remoting.DataGlue; import mx.rpc.RelayResponder; import mx.rpc.FaultEvent; import mx.rpc.ResultEvent; When running their simple Hello World app, I get: The class 'mx.rpc.RelayResponder' could not be loaded. All the other classes are just fine. I even checked the $(LocalData) dir for the class, but do not see it anywhere. In fact, I don't even see the other class files that work. :) I guess I don't quite understand class packages in Flash just yet. Any ideas why the mx.rpc.RelayResponder class would be the only one not loaded/found? Dahgu...
I found out that the class file, mx.rpc.RelayResponder, is actually missing. Here is the class folder, which contains some of the necessary classes: Folder = Classes\aso\mx\rpc mx.rpc.Fault.aso mx.rpc.FaultEvent.aso mx.rpc.Responder.aso mx.rpc.ResultEvent.aso Where is mx.rpc.RelayResponder.aso? I have re-installed "Macromedia Flash Remoting for Flash MX 2004 ActionScript 2.0", but the class is still missing. Any ideas?
I couldn't find any files either but I found this in another posting that stopped the error for me. _______________ Did you drag instances of the remoting classes on to your movie stage? In Flash, navigate to: Window -> Other Panels -> Common Libraries -> Remoting Drag both of the library items on to your stage and try testing your movie again. _________________--
From what I understand, the Flash Remoting 2.0 classes are all compiled into the two objects in the library under remoting. That's why you have to have them in the library of your movie. It's looking for the classes there not on your system. I've been working with a similar model for a project I'm on. This is problematic because how do you include these classes into an external class doc of your own?
[quoted text, click to view] rhodesbe wrote: > From what I understand, the Flash Remoting 2.0 classes are all compiled into > the two objects in the library under remoting. That's why you have to have > them in the library of your movie. It's looking for the classes there not on > your system. I've been working with a similar model for a project I'm on. This > is problematic because how do you include these classes into an external class > doc of your own? >
Does this mean that you can't make a remoting call a method of one of your custom classes? It looks that way to me. That means that all of
Found this info that I thought might be helpful.
about the fix suggested by jeffcg2: what if there is nothing in that library?
I came upon this discussion today and relized there was no solution posted. You need to download the source files in order to create a custom class but they are readily available from macromedia. Just make sure to download the AS2.0 remoting components source files instead of the installer.
Originally posted by: jeffcg2 I couldn't find any files either but I found this in another posting that stopped the error for me. _______________ Did you drag instances of the remoting classes on to your movie stage? In Flash, navigate to: Window -> Other Panels -> Common Libraries -> Remoting Drag both of the library items on to your stage and try testing your movie again. _________________-- This is really amazing to see how things work here. I have seen a similar posting that tells to drag the classes on to stage and then delete them, "Class not loaded" kinda errors are automatically removed. I guess Macromedia Developers should think again about the shi* they have created. Also notice how bad User Interface and Action Script Editor they have. There are a few things i would like the forum users to notice (I am using Flash MX 2004 v7.0): 1. Couldn't they have something nicer like VB IDE? 2. Do i have to buy a third party Action Script Editor after paying these idiots for the shi* piece of software they created? 3. Why I can't double click on a Button and directly write click event of the button? In most of the cases, button is used to respond for click events. 4. I can't retain the maximize and minimize setting of child windows, when i click to Test Movie and return back to AS editing. To summarize : VERY BAD IDE, very annoying and weird errors and are solved IN A WEIRD FASHION. No doubt Microsoft is the best who cares about Easy UI. Dear friends, if you agree, please reply so that they know and do think about providing a patch.
I do not agree with you. I like Flash IDE, as well as the ActionScript editor which provides everything I need to write AS (besides tooltip support for some Flash Pro classes) 2. Do i have to buy a third party Action Script Editor after paying these idiots for the shi* piece of software they created? If you don't want to use the Flash ActionScript Editor you can use a lot of open source programs out there, e.g. Eclipse or Sepy, or go a write your AS with notepad. 3. Why I can't double click on a Button and directly write click event of the button? In most of the cases, button is used to respond for click events. Select the button, write on(event){ } in the actions window. 2 steps. What do you want more? No doubt Microsoft is the best who cares about Easy UI. Guess we all have our own thought about Microsoft's programs (and most of Team Macromedia isn't using Macs because of no reason), but if you want a easy, weak UI with a program (and a really bad help assistant, "It seems you want to write a letter") that crashes a lot, you should definitely go and get a Micro$oft product.
You can use what you want, but I don't believe that you understand the developement process in general. And a lack of experience with any IDE will frustrate anyone. MicroSoft makes some very good software, which has frustrated millions. So don't pretend that any company makes idiot proof tools. ( Ah, the implications... )
Don't see what you're looking for? Try a search.
|