Don't use getURL, use loadVars instead.

You don't want to reload the page but instead make a request from the Flash
movie and use the returned data.

Does that sound right?

Adrian

-----Original Message-----
From: a or [mailto:[EMAIL PROTECTED]
Sent: 14 May 2008 12:36
To: CF-Newbie
Subject: Re: Pass FlashVars values to ColdFusion file


Hi Adrian,

That works a treat but I now have the problem of getting back to the
original coldfusion page after the date has been sent to page.cfm and the
xml produced.

It needs to work it the following manner

index.cfm (select date and post back to index.cfm)

date is passed into movie.swf using flash vars

getURL now passes this date to page.cfm where a query is run on the database
and xml is produced (response header content type = text/xml)...Thanks for
that again!...

I now need to get back to index.cfm and load the xml output from page.cfm
back into movie.swf

phew!

again, any ideas would be greatly appreciated,

alan


>If your Flash file is calling this .cfm page that generates XML, then tap
>the vars onto the end of the URL.
>
>getURL("page.cfm?var1=1&var2=2");
>
>Or whatever your call looks like.
>
>Adrian
>http://www.adrianlynch.co.uk/
>
>Hi,
>
>Is there a way to pass FlashVars values from a .swf file to a ColdFusion
>page ?
>
>I've got a page with a calendar, I select a date and post it to itself.
>I then pass it into the .swf using FlashVars.
>
>I now need to pass the date to another coldfusion page which creates xml
>output based on this date which will then be loaded back into the .swf,
>populating it with the newly created xml.
>
>Is this possible or what would be the best say to approach this.
>
>Many thanks in advance
>
>alan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3628
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to