It's an AIR app that loads from any location on your harddrive. This is how
I'm doing it:
context.allowLoadBytesCodeExecution = true;
context.applicationDomain = new ApplicationDomain();
context.checkPolicyFile = false;
public function loadPathSwf(url:String):void
{
swfData = new ByteArray();
fileStream = new FileStream();
fileStream.open(new File(url),FileMode.READ);
fileStream.readBytes(swfData, swfData.length);
fileStream.close();
swfLoader.loadBytes(swfData, context);
}
I can access the loaded swf's code etc, and I have it in it's own
applicationDomain, but the loaded SWF tries to load it's own content
relative to where it resides and it obviously fails.
On Mon, Jul 21, 2008 at 11:38 AM, Eric Priou <[EMAIL PROTECTED]> wrote:
>
> Le 21 juil. 08 à 18:07, John Grden a écrit :
>
> > Hey all, I'm able to load an external swf by selecting it's path on
> > the harddrive etc. The problem is that any relative path's that
> > loaded SWF might use to load it's own content are broken and seem to
> > be based on the main app's location.
> >
> > anybody know how can I fix this?
> Hi,
>
> How do you try to load content ?
> - from an html page
> - from the standalone player
> - local / serverside ?
>
> There are lots different way to access content :
> - all URLs are relative to the html page that embed the swf
> - in the standalone the URL are relative to the swf.
> - beware though that the swf is publish with loacl or server security
> sandbox, depending of your type of deployment.
>
> HTH
> ---
> Eric Priou
> aka erixtekila
> Articles : http://www.v-i-a.net/inprogress
> Oregano : http://www.v-i-a.net/inprogress/doku.php/oregano
> Oregano forum : http://www.v-i-a.net/forum/
>
>
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
--
[ JPG ]
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org