Not even the sample files c:\Frogram Files\Macromedia\Flash MX 2004\en\First Run\RemotingSamples\Client\API\CustomerInfoExampleAPI.fla c:\Frogram Files\Macromedia\Flash MX 2004\en\First Run\RemotingSamples\Client\Connector\CustomerInfoExampleCon.fla will work.
Hi, I have to say that jeffcg2 is not alone here. I was also unable to get the same sample to work too. In fact, I'm unable to get almost all the samples that has to do with flash remoting to work! And for all ur info, I've just done an update recently. So, looks like Flash Remoting doesn't really works so well with Actionscript 2 after all.
look in the classes folder, and see if all the classes are there. It is possible that even after installing the remoting components for AS2.0 the classes for some weird reason don't get installed, then you need to find them in a zip folder called flashremoting_comp_sourcecode, copy them and paste the folder classes and classes. This happened to me in a flash installation. Good Luck.
The remoting classes are different. I found this posting somewhere that made things work 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. _________________--
I personally think the example files aren't a very good illustration of how to use the new components. If you have any specific questions using the new AS2 classes created for Flash Remoting, feel free to post 'em. Best, Robert
I too have a problem after trying to install the remoting components (as2.0 version). Nothing appears in the Classes directory, not hing in the Window -> Other Panels -> Common Libraries -> Remoting and nothing in the components pane......... What went wrong? Installer gave no errors.
Jeff, none of the books I have written have Flash Remoting AS2.0 examples---Macromedia only released the components in May of this year, so I doubt we'll see any books with Flash Remoting AS2.0 coverage until early next year, and that's only if it's on those books' radar. I've been using the AS2.0 classes since May, and haven't had any show-stopping problems. Please feel free to ask questions here (or even start new threads) for specific questions. Best, Robert
Robert, I followed your link to mximize and did a little modification to your fr_connector.fla file to come up with http://209.107.237.165/test/prod2hold2CON.swf I don't understand all you are doing but I'm trying. I have a specific question about the date field display and update. When I go to the Schema tab for the DataSet I set a field CDate : Date. In the formatter and encoder I chose Date > formatter options {format:"YYYY-MM-DD"} this does give a display in the grid. Leaving the default {format:"MM/DD/ YYYY HH:MM:SS"} gives garbage. Leaving it as none gives a really long date. None of the choices save to the database. I have to be able to edit the date and time of the CDate field. I am stuck here. Haven't found any answers yet.
MarcoNico, I'd appreciate it if you could let me know where to find the flashremoting_comp_sourcecode zip folder. I had the same problem - remoting classes not getting installed. It's very frustrating. Thanks a lot, Anthony
Antony, I don't believe finding that file will help. The remoting classes don't show up the way the other classes do. Are you trying to work with the sample files CustomerInfoExampleAPI and *CON? Go to: Window -> Other Panels -> Common Libraries -> Remoting Do you see the 2 RemotingClasses?
Thank you for getting back to me Jeff. I see the two remoting classes. I am quite new to Flash and have been folowing Jeanette Stallons book "Flash Pro Application Development", released before AS2 for remoting so she handles remoting the AS1 way. I think my problem with remoting stems from the problem I had going through the XML and WebService sections of the book. Flash is having problems reading file paths and hyperlinks from the Class files. When I used the connector components to specify the paths, I had no problem. Are you aware of this sort of problem? I appreciate your help. Anthony
Jeff, Thank you for pointing me to the remoting example. It works fine. My problems must lie elsewhere, i.e. with me. All part of learning something new. Anthony
Last thing Jeff, Where could I find the fr_connector.fla you referred to? Thanks,
http://conferences.schematic.com/2004/mximize/ --- Robert Reinhardt's examples. http://209.107.237.165/test/prod2hold2CON.swf I've modified Robert's Example to come up with this. I was stuck getting dates in and out of the datagrid. I found a way to get that to work now. I used the convert function from TSQL to convert the CDate to a varchar length 22 in the select statement. The Datagrid apparently doesn't do dates. So passing a string date in/out of the Datagrid is the only way. I'm working with MS SQL 2000 <cfquery name="rsPallets" datasource="mytest"> select prod2hold2id, CONVERT(VARCHAR, CDATE,22) AS CDate, Product, Quantity,WorkCenter,Pallet from dbo.Prod2Hold2 </cfquery>
After updating flashremoting_comp_as20-win-en.exe, I've got errors like C:\Documents and Settings\user1\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Include\RsDataProviderClass.as: Line 9: Statement must appear within on/onClipEvent handler _global.RsDataProviderClass = function() Could anyone point me how to fix it? Thanks! John
write that code on outside, or press f9, click outside of the design window (i mean do not select button, label, editbox etc) and f9 again. write your code here :)
You can download the source files from: http://www.macromedia.com/software/flashremoting/downloads/components/#flr_as2 Scroll down past all the language versions and you'll see: "Source Code for Macromedia Flash Remoting for Flash MX 2004 ActionScript 2". It is a zip file with all the classes in .as format. The directory structure within the zip file is mx\ so you need to unzip it into your <program directory>\First Run\Classes\ After you do that you should have a directory structure like: <program directory>\First Run\Classes\mx\remoting\ And your remoting files will be in there. Along with the remoting directory, you should also have a couple others, RPC and Util I think. After unzipping that file restart flash and you should be able to access those classes with: import mx.remoting.* I am not at home right now, so I can't verify that all this works. It is just from memory from doing it all last night. :)
Don't see what you're looking for? Try a search.
|