all groups > macromedia flash flash remoting > january 2004 >
You're in the

macromedia flash flash remoting

group:

how to send user's input in CF page to flash movie?



how to send user's input in CF page to flash movie? xh_yue
1/22/2004 5:41:44 PM
macromedia flash flash remoting: Hi, guys,
In my coldfusion page i ask user to enter their id and check Access DB to verify its existance, then I want to pass that id in my flash movie and display it. How can i do it?

Here's my CFC file:

<cfcomponent>

<cffunction name="sendID" access="remote">
<cfreturn <h>1500</h>>
</cffunction>

</cfcomponent>

I can only pass a real number(1500) into my movie here. But it's not what i want.

Thank you

J.Y

Re: how to send user's input in CF page to flash movie? bluestix
2/9/2004 10:55:03 PM
Are you using CFMX6.1
Are you using the cflogin structure
If so you could pass variables to flash with the object tag in html


<param name="movie" value="MailForm.swf" <cfoutput>
FlashVars="ID=#GetAuthUser()#
</cfoutput>
<param name=quality value=high
<cfoutput><param name=FlashVars="ID=#GetAuthUser()#"cfoutput
<embed src="YourMovie.swf" <cfoutput>FlashVars="ID=#GetAuthUser()#"
</cfoutput> embed
</object




If your not using the cflogin stucture replace #GetAuthUser# with
#YourLoginVariable


AddThis Social Bookmark Button