Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

Embed FlexMonkeyEnv.xml at lib #5

Closed
GoogleCodeExporter opened this issue Apr 27, 2015 · 1 comment
Closed

Embed FlexMonkeyEnv.xml at lib #5

GoogleCodeExporter opened this issue Apr 27, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

When I forget to copy FlexMonkeyEnv.xml to same place where my swf is I got 
those messages:

ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false 
eventPhase=2 text="Error #2032: Stream Error. URL: 
file:///D|/temp/MonkeyExample/target/FlexMonkeyEnv.xml"]

Unable to load FlexMonkeyEnv.xml from current directory: Error #2148: SWF 
file 
file:///D|/temp/MonkeyExample/target/quick%2Dtutorial%2D0.1%2DSNAPSHOT.swf 
cannot access local resource 
file:///D|/temp/MonkeyExample/target/FlexMonkeyEnv.xml. Only local-with-
filesystem and trusted local SWF files may access local resources.

This is ok, but is avoidable embedding this xml.
Take a look here:
http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/


VELO

Original issue reported on code.google.com by velo...@gmail.com on 23 Sep 2008 at 1:36

@GoogleCodeExporter
Copy link
Author

Implemented as follows:

    [Embed(source="FlexMonkeyEnv.xml", mimeType="application/octet-stream")]  
    protected const FlexMonkeyEnv:Class;
    ...
    var byteArray:ByteArray = new FlexMonkeyEnv() as ByteArray;
    var env:String = new String(byteArray.readUTFBytes(byteArray.length));
    setTestingEnvironment(env);

Thanks Velo.


Original comment by stuinbou...@gmail.com on 23 Sep 2008 at 5:31

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant