John,

I'm not certain I can help you here but I can tell you what I know.
Maybe something will be useful:

source files:
I use the Flex Builder environment, so this may not pertain to you:
Upon build Flex creates a "bin" directory where all executable files are
located. This is helpful in at least allowing you to FTP an entire
directory to your server and not have to pick and choose. In there are
the swf and html files you mentioned. I would assume the issue is some
other resource in that directory is not being included in your "Send to
a friend". So, #1: entire bin directory

As for #2 this is a tougher issue. Basically, you cannot call off server
or into a higher security setting unless you are running the application
through the flex builder or there is a crossdomain file on the server
you are calling.

To state this more clearly:
If you put your program on http://www.mybox.com and within the program
there are services trying to call any domain (URL) not in the
"www.mybox.com" domain then you will hit the sandbox security problem.
This (seemingly) also goes for running it from your own hard drive.
Though I swear I have run things from my own machine that accessed
everywhere else without it running from the Flex Builder environment, I
have also seen it fail. So the last part of  "even on your own hard
drive" part is very suspect.

The second part of the problem is calling from http into an https
environment. That is the second security catch and you will need an
extra line in your crossdomain file (secure="false" I believe) to allow
this kind of communication.

Cross domain files are simple, but they have to be on the server you are
gathering the data from which can be a problem for something like an RSS
reader since you likely won't be reading your own feeds and thus you
likely don't own the boxes.

A "simple" way around this sandbox is to write a proxy program on your
web server. It can be the program that calls the URL you want and simply
returns the data to your flash player -- thereby never having to ask
your flash program to talk outside of its own domain.

I hope any of this helps.



--- In [email protected], "John Buono" <[EMAIL PROTECTED]> wrote:
>
> This might sound to trivial, but it is frustrating.
>
> i have just gotten Flex 2.  I have gone through the tutorial in the
book.  I sucessfully built the
> RSS reader.  So far so good
>
> but when I sent the .html file and the .swf file per the documentation
to a friend, all we got
> was error messages about all the missing files.
>
> When we put up the missing files (history.html, history.js, and a
couple of others), either it
> did not work or we got a crossdoimain.xml missing error
>
> What do I need to do to deplay the .swf files i create in flex.  I
know it has to be something
> simple that I am missing.
>
> thanks
>
> John
>

Reply via email to