Hmm. DId you try using -use-network=false in your compiler options on
flex builder.

What I would do is, have a php or jsp that reads the swf and prints it
out to the browser . In the actionscript code I would have something
like

myLoader.load("http://localhost/test.php?getFIle=abc.swf";);

This is not a recommended approach ,But an APPROACH anyways :-)

 29, 9:23 am, Sachin <solankisac...@gmail.com> wrote:
> Hi Venkat,
>
> Unfortunately whatever you suggested is not the case with our
> application.
> The SWF files are lying outside the webserver :(  and we have to do
> live with it.
>
> Please let me know if there is some other way around the problem.
>
> Thanks for all your help,
> Sachin
>
> On Dec 26, 5:25 pm, "Venkat Viswanathan" <helloven...@gmail.com>
> wrote:
>
> > Hi Sachin,
>
> > I would suggest that this folder where the files are uploaded should be in
> > the same directory (or in a sub-directory) as your Flex application.
> > Something like if your flex app is in:
>
> > C:\webserver\flexapp\app.swf
>
> > Then your files should be uploaded to somewhere like:
>
> > C:\webserver\flexapp\uploadedfiles\
>
> > And then in the flex app, just load the files using:
>
> > uploadedfiles/file.swf
>
> > This would ensure that the files are loaded without any security issues.
>
> > Regards,
> > Venkatwww.venkatv.com
>
> > On Fri, Dec 26, 2008 at 5:18 PM, Sachin <solankisac...@gmail.com> wrote:
>
> > > Hi Venkat,
>
> > > Thanks for reply.
>
> > > In the application, the users would upload files to a location which
> > > is outside the webserver.
> > > So from the webserver, i need to upload the swf file which is located
> > > outside the webserver.
> > > The path is configurable and it would be known only at runtime.
>
> > > Please suggest what to do in this case.
>
> > > Thanks,
> > > sachin
>
> > > On Dec 26, 4:00 pm, "Venkat Viswanathan" <helloven...@gmail.com>
> > > wrote:
> > > > Hi Sachin,
>
> > > > Dont load using absolute path. Use relative path. Something like:
>
> > > > /images/files/abc.swf
>
> > > > In this case, if it doesn't load, change the Security Settings of your
> > > Flash
> > > > Player from the Settings
> > > > Manager<
> > >http://www.macromedia.com/support/documentation/en/flashplayer/help/s...>.
> > > > And if you still want to use the absolute path (which is highly
> > > > discouraged), use this:
>
> > > > file:///C:/temp/abc.swf
>
> > > > Regards,
> > > > Venkatwww.venkatv.com
>
> > > > On Fri, Dec 26, 2008 at 4:24 PM, Sachin <solankisac...@gmail.com> wrote:
>
> > > > > Hi,
>
> > > > > I am trying to load a local SWF file using SWFLoader something like :
>
> > > > > myLoader.load("c:/temp/abc.swf");
>
> > > > > but i am getting security error # 2148 for accessing local resources.
>
> > > > > Please help me to resolve this problem.
>
> > > > > Thanks,
> > > > > Sachin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to