Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Reading a cookie....
From: Sean Renet
Date: Tue, 5 Dec 2000 14:33:29 GMT

I have a flash file that reads a coldfusion template and loads urltoken as a
variable:
----CFM TEMPLATE-----
<cfinclude template="app_globals.cfm">
<cfsetting showdebugoutput="no">
<cfsetting enablecfoutputonly="yes">
<cfcontent type="text/plain">
<cfoutput>cfid=#trim(cfid)#</cfoutput><cfoutput>&cftoken=#trim(cftoken)#</cf
output><cfoutput>&eof=1</cfoutput>

(app_globals.cfm includes the cfapplication which is....
<cfapplication name="myapp" clientmanagement="Yes" setclientcookies="yes"
sessionmanagement="Yes" clientstorage="myappdb">)


---ACTIONSCRIPT-----
Frame 1
eof = "0";
loadVariablesNum ("act_cftoken.cfm", 0, "POST");
gotoAndPlay ("Scene 1", "check");

Frame 2
if (eof = 1) {
gotoAndStop ("Scene 1", "default");
} else {
gotoAndPlay ("check");
}

and then the default scene starts the movie which is a simple menu.


So, this is all well and good on PC's using IE or Netscape. However, MAC IE
and Netscape cannot read coldfusion's urltoken for some reason so in the
cfapplication I set a cookie.

My question is 2 part

First of all since I am setting a cookie anyway should I just read the
cookie instead of reading a template. Secondly, what happens then on MAC IE
and Netscape when cookies are not enabled?

Is there a better way to do this?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]