SWFs by default can either choose to access the file system or the
remote network (e.g. requests made for data via HTTP), but not both.
Flex compilers produce swfs that elect to use the network by default.
 
Apart from that, there's no reason why you can't run a SWF from the
desktop (the .mxml -> .swf conversion via FDS Webtier compiler is a
development time convenience).
 
Some things to consider though... if you're using Flex Builder or the
mxml command line compiler you'll probably need to provide the command
line argument -services to point to the
/WEB-INF/flex/services-config.xml file so that it can compile in the
channel definitions for you (assuming you are not creating your own
ChannelSets programmatically or you are using the DataService API).
Also, you will need to edit each relevant channel-definition endpoint
defined in services-config.xml file so that a fully qualified URL is
defined - i.e. you can't rely on the {server.name}, {server.port} or
{context.root} tokens for portability. 
 
Pete

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of benjidudu
Sent: Monday, December 04, 2006 2:23 AM
To: [email protected]
Subject: [flexcoders] FDS on the desktop?



Hi,

I am doing a desktop application with an embedded swf. I'd like using
FDS but all I read is about mxml or swf files in the server along FDS.
Is it possible using FDS with swf files not on the FDS server? If yes,
how do you do that?

Thanks,

Benjamin.



 

Reply via email to