| Subject: | Re: Passing data to flash |
|---|---|
| From: | "Atolycus" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Thu, 22 May 2008 08:52:41 +0000 (UTC) |
| Newsgroups: | macromedia.coldfusion.flash_integration |
hope this helps.
Cheers
<------- flash ------->
function postCF():Void{
fromCF = new LoadVars();
fromCF.reply = ""; <-- in your case, CFresponse1
fromCF.PetName = "";
fromCF.onLoad = getCF;
toCF = new LoadVars();
toCF.usr = "username.text"; <---right now referring to txt box as
example.
toCF.pwd = "password.text";<---ditto ^^
toCF.sendAndLoad(URL,fromCF,"post");
}
function getCF(success){
if(fromCF.reply == ok)
--------------anything u want here-------------
else
--------------anything u want here-------------
}
<------- CFM ------->
<cfquery name="ClientLogin" datasource="DSN name setup here">
SELECT *
FROM Clients
WHERE Customer = '#form.usr#'
AND Secret = '#form.pw#'
</cfquery>
<cfif #ClientLogin.recordcount# is '1'>
<cfset returnFlash =
"&PetName=#URLEncodedFormat(ClientLogin.PetName)#&reply=ok&abc=123">
<cfelseif #ClientLogin.recordcount# is '0'>
<cfset returnFlash = "&PetName=noclient&reply=bad&abc=123">
</cfif>
<cfsetting enablecfoutputonly="Yes">
<cfoutput>
#returnToFlash#
</cfoutput>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Passing data to flash, Dave Blake |
|---|---|
| Next by Date: | Re: Pass FlashVars to ColdFusion page, Atolycus |
| Previous by Thread: | Passing data to flash, Dave Blake |
| Next by Thread: | Re: Passing data to flash, Dave Blake |
| Indexes: | [Date] [Thread] [Top] [All Lists] |