Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
david_sternberg #1
Flashing Remoting Help
Will someone please provide some links that show exactly how to access a
coldfusion component using the most up to date methods. I am using Flash
Professional 8. All the docs I find are for Flash 2004 MX which don't jive
completely with what I am using. Also examples using #include "NetServices.as"
are not what I am looking for. An example I am looking for is how do populate
a dropdown menu flash component with dynamic data from a simple query to a
database form a .cfc file. I just need a proof of concept to my manager so I
can proceed with flash development. I really have to be spoon fed to understand
this.
Thanks
Dave
david_sternberg Guest
-
Flash is flashing
I have the exact same problem. Internet Explorer 6, Windows 2000 SP 4. I upgraded the drivers for my Radeon 9800 PRO to the latest catalysts. I do... -
flashing between movies
Recently when compling a projector file, it started flashing when moving from one move to another. the cd is made of various director file run... -
Quicktime flashing in MX
I have a single sprite (the first frame of the following quicktime) that "grows" in and then the quicktime plays directly after it. When the... -
flashing backgrounds
I have created a site containing 3 frames: side, top and main. The background colour for all 3 is set to #333333. As the side loads, there is an... -
Information Box keeps flashing...
music Adjust your mouse speed. -
david_sternberg #2
Re: Flashing Remoting Help
Let me explain about the #include "NetServices.as"
Every time I try using these examples I always get a error saying:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Error opening include
file NetServices.as: File not found.
#include "NetServices.as"
I have the flash 8 action script bible and it's chapter 36 on data integration
uses imports but the example is with .php. I need a good example of the most up
to date way to do what I need.
Dave
david_sternberg Guest
-
Azadi #3
Re: Flashing Remoting Help
see if this helps:
[url]http://www.flash-remoting.com/examples/MultipleCombo/[/url]
--
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
[url]http://www.sabai-dee.com[/url]
Azadi Guest
-
Mark Forsberg #4
Re: Flashing Remoting Help
Here you go.
[url]http://www.asfusion.com/blog/entry/introduction-to-flash-remoting[/url]
I believe that the first method that they show is how you would do in Flash 8.
You must use the second method to remote in CF and Flashforms.
Good luck.
Mark
Mark Forsberg Guest
-
Mark Forsberg #5
Re: Flashing Remoting Help
David,
I just thought about this code. This is the "modern" way, at least to my
understanding. You might also want to try the Flash forum. They have a section
on remoting as well.
//Import Stuff
import mx.remoting.*;
import mx.rpc.*;
import mx.services.Log;
//Data type the components
var name_txt:mx.controls.TextArea;
var myGrid_dg:mx.controls.DataGrid;
//Remoting Stuff
mx.remoting.debug.NetDebug.initialize();
var myLogger:Log = new Log( Log.DEBUG, "logger1" );
//override the default log handler
myLogger.onLog = function(message:String):Void{
trace("myLogger: " + message);
}
//Create the service
myService = new
Service("http://localhost/flashservices/gateway",myLogger,"Phonebook.CFC.phoneDa
ta",null,null);
//Hander for results
function onGetData(msg:ResultEvent){
mx.remoting.debug.NetDebug.trace({level:"Debug",me ssage:"onGetData" });
myGrid_dg.dataProvider = msg;
}
//Handler for errors
function onDataFault(rs: FaultEvent){
mx.remoting.debug.NetDebug.trace({level:"None", message:"Oops!: " +
fault.fault.faultstring });
}
var pc:PendingCall = myService.getNetworkUsers;
pc.responder = new RelayResponder(this._parent, "onGetData", "onDataFault");
//Create Button to close swf
var oNameListener: Object = new Object();
oNameListener.click = function(){
//trace('Mark');
getURL("javascript:window.opener=self;window.close ()");
}
close_btn.addEventListener("click",oNameListener);
Mark Forsberg Guest



Reply With Quote

