Note that there are some explanatory texts on larger screens.

plurals
  1. POFailed to create Console with embed VFS due to "Call to a possibly undefined method"
    primarykey
    data
    text
    <p>First I've created an embedded Virtual File System, as described <a href="http://www.adobe.com/devnet-docs/flascc/docs/Reference.html#section_vfs" rel="nofollow">here</a>.</p> <p>It generates this AS code:</p> <pre><code>package C_Run {} package com.adobe.flascc.vfs { import com.adobe.flascc.vfs.*; import com.adobe.flascc.BinaryData public class myvfs extends InMemoryBackingStore { public function myvfs() { addDirectory("/data") addFile("/data/localization.en.afgpack", new C_Run.ALC_FS_6D79766673202F646174612F6C6F63616C697A6174696F6E2E656E2E6166677061636B) addFile("/data/dataAudio.afgpack", new C_Run.ALC_FS_6D79766673202F646174612F64617461417564696F2E6166677061636B) addFile("/data/data.afgpack", new C_Run.ALC_FS_6D79766673202F646174612F646174612E6166677061636B) } } } </code></pre> <p>It is compiled into <code>myvfs.abc</code>. Then I'm trying to create custom console with this VFS. I've imported <code>myvfs</code> in <code>Console.as</code>:</p> <pre><code>import com.adobe.flascc.vfs.myvfs; </code></pre> <p>And created vfs object:</p> <pre><code>var my_vfs_embedded:InMemoryBackingStore = new myvfs(); </code></pre> <p>So, the problem is that compiling <code>Console.abc</code> sometimes fails with error "<code>Call to a possibly undefined method myvfs</code>" and sometimes builds successfully with the same code. How can this be?</p> <p><code>Console.abc</code> is built by this command:</p> <pre><code>cd ./../../Engine/library/baselib/sources/flash &amp;&amp; \ java -jar $(FLASCC_FOR_EXT)/usr/lib/asc2.jar -merge -md -AS3 -strict -optimize \ -import $(FLASCC_FOR_EXT)/usr/lib/builtin.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/playerglobal.abc \ -import $(GLS3D_ABS)/install/usr/lib/libGL.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/ISpecialFile.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/IBackingStore.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/IVFS.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/InMemoryBackingStore.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/AlcVFSZip.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/CModule.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/C_Run.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/BinaryData.abc \ -import $(FLASCC_FOR_EXT)/usr/lib/PlayerKernel.abc \ -import $(BUILD_FULL_PATH)/myvfs.abc \ Console.as -outdir $(BUILD_FULL_PATH) -out Console </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload