frankfenghua / monarch-flex

Automatically exported from code.google.com/p/monarch-flex
1 stars 0 forks source link

Load images locally #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
All runtime loaded images are currently from our server.  This is putting
needless burden on the server.  Instead, use local paths to the user's own
computer. Solution from forum:

"
I came across the same issue. I guess you are running the SWF in the
standalone Flash Player, not withing an HTML page?
Seems to be a security measure whereby the SWF is not allowed to access
files outside of its directory. Simple solution that worked for me: place
the SWF in a HTML page and run that.
"

Original issue reported on code.google.com by tokyotech on 15 Apr 2009 at 8:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
From http://digitalmedia.oreilly.com/helpcenter/flex3cookbook/chapter8.html:

"Any SWF file can access only one type of external resource, either local or 
over a
network; it cannot access both types. You determine the type of access allowed 
by the
SWF file by using the use-network flag when you compile your application. When 
the
use-network flag is set to false, you can access resources in the local file 
system,
but not over the network. The default value is true, which allows you to access
resources over the network, but not in the local file system."

If you are concerned about the burden being placed on the server you should
concentrate your efforts on how graph data is requested and queried for. Help 
images
will likely be cached by Apache or the server OS whereas the graph data seems 
to be a
much more significant performance issue, both for the server and client. I don't
think this is an issue. The security model says you can either access purely 
local or
purely remote resources dynamically so there's not much we can do here because 
we
need to access remote images for the communities.

Original comment by andrewps...@gmail.com on 16 Apr 2009 at 1:37

GoogleCodeExporter commented 8 years ago
we will use all external images because Flex sucks.

Original comment by tokyotech on 17 Apr 2009 at 3:50