Google Play Limit 50Mb를 초과하는 Flash CS6 및 Adobe AIR를 사용하여 만든 앱이 있습니다. 그래서 나는 as3을 사용하여 추출해야하는 swf 파일이있는 .obb 파일 인 확장 파일을 사용하고 있습니다. 확장 파일은/Android/obb/my_package_name/폴더로 다운로드되며 아래 코드에서 찾을 수 있습니다. 그러나 obb 파일에서 파일을 추출하는 동안 멈추었습니다. FZIP 클래스를 사용하면 도움이되지 않았습니다 (.zip 파일은 추출하지만 .obb는 추출하지 않음). 다음은 압축 파일입니다 .obbas3에서 .obb 파일을 추출하십시오.
가file = File.userDirectory.resolvePath(path + "/" + filename);
if (file.exists)
{
loadSwf();
}
function loadSwf():void
{
fileStream = new FileStream();
fileStream.open(file, FileMode.READ);
bytes = new ByteArray();
fileStream.readBytes(bytes);
trace(bytes);
fileStream.close();
var cont:LoaderContext = new LoaderContext();
cont.allowCodeImport = true;
applicationLoader = new Loader();
applicationLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleAppLoaded);
applicationLoader.loadBytes(bytes, cont);
}
function handleAppLoaded(e:Event):void
{
addChild(applicationLoader);
/* Now how to extract the swf's from within the obb */
}
어떤 종류의 파일 형식이'* .obb'입니까? 내 생각 엔 지원되는 확장 기능 인 경우 이러한 obb에서 SWF를 내보내는 방법이 있어야한다고 생각하지만 필자는 전혀 모른다. – Vesper
OBB 파일 확장자는 스마트 폰 및 태블릿 용 Google Android 운영체제와 연결됩니다. – Bhaijaan