On 10/29/01, <[EMAIL PROTECTED]> penned:
>I looked there, but none of the samples sufficiently explain the process or
>methodology behind how this process works. They offer ready made examples,
>but now the expo. on how it works. Any addl. pointers would be appreciated.
It's pretty easy once you do it. And also confusing as heck to figure
out before you do. LOL
I'm new at this, so hopefully this is right. I'm only trying to help
because I spent hours trying to figure it out myself and never did
until I got some help from the guys at flashcfm.com.
Say you have 2 text boxes, FirstName, LastName in your movie.
On the text panel, click the text options tab and choose Dynamic Text
from the pull down. Enter FirstName and LastName, respectively, into
the variables field.
Make a keyframe in another layer at or before the frames with text
boxes, make that frame extend to the end of your movie (or past where
you need the variables) and enter this in the frame actions panel
(choose expert mode so you can type it directly in:
loadVariablesnum ("myvariables.cfm", 0);
myvariables.cfm will be in the same folder as the flash movie. There
can't be any white space in the myvariables.cfm output. I made my
template like this. Even with the cfsetting and
cfprocessingdirective, I still found myself with white space. I put a
character after every cf tag and that got rid of it. Note the "0"
after the cfquery tag and closing cfoutput tag.
<cfsetting showdebugoutput="no" enablecfoutputonly="yes"
catchexceptionsbypattern="no"><CFPROCESSINGDIRECTIVE
SUPPRESSWHITESPACE="yes">
<CFQUERY DATASOURCE="#request.DSN#" NAME="getname">
SELECT MyFirstName,MyLastName
FROM Names
WHERE NameID = 10
</CFQUERY>0
<cfoutput>&FirstName=#URLEncodedFormat(getname.MyFirstName)#&LastName=#URLEncodedFormat(getname.MyLastName)#</cfoutput>0
</CFPROCESSINGDIRECTIVE>
Now, here's where I really got stumped. Suppose you need to get a
certain name, with:
WHERE NameID = #url.myID#
Pass that variable to the template calling the movie, and call your
movie by adding to the two places that you enter the movie:
<PARAM NAME=movie VALUE="BDCT.swf?myID=<CFOUTPUT>#URL.myID#</CFOUTPUT>">
and
<EMBED src="BDCT.swf?myID=<CFOUTPUT>#URL.myID#</CFOUTPUT>
That will pass the ID into the movie. Now we have to pass the ID to
myvariables.cfm.
loadVariablesnum ("myvariables.cfm?myID=" + _root.myID, 0);
Hope all that helps and didn't confuse you even more. LOL
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists