Coder Social home page Coder Social logo

Comments (4)

webmatrixxxl avatar webmatrixxxl commented on June 4, 2024

ok... the problem is not fzip.swc
I tried ./mxmlc -library-path+=lib ../projects/as3-xlsx-reader-master/src/LoadXLSXExample.as
with fzip.swc in it but still blank page..

from as3-xlsx-reader.

childoftv avatar childoftv commented on June 4, 2024

Hi there!

The only output is given via trace so you should try this:

http://stackoverflow.com/questions/17629025/running-swf-from-the-command-line-and-getting-trace-output-to-the-console

and you should see:

"[SWF] LoadXLSXExample.swf - 28,836 bytes after decompression
Attempting to load Example Spreadsheet.xlsx
'Example Spreadsheet.xlsx' unzipped and loaded: 11 files are inside the xlsx
getCell:A3 3 A
Cell A3=Hello Excel
[Unload SWF] LoadXLSXExample.swf
"

Some output in the swf itself would be good so I'll add that shortly along with a few tweaks to bring this project up to 2016

from as3-xlsx-reader.

childoftv avatar childoftv commented on June 4, 2024

I was able to confirm this but ran into an issue with the security sandbox:

(fdb) run /Users/ben/code/scratch/LoadXLSXExample.swf
Attempting to launch and connect to Player using URL
/Users/ben/code/scratch/LoadXLSXExample.swf
Player connected; session starting.
Set breakpoints and then type 'continue' to resume the session.
[SWF] Users:ben:code:scratch:LoadXLSXExample.swf - 28,836 bytes after decompression
(fdb) continue
[trace] Attempting to load Example Spreadsheet.xlsx
[trace] *** Security Sandbox Violation ***
[trace] Connection to file:///Users/ben/code/scratch/Example Spreadsheet.xlsx halted - not permitted from file:///Users/ben/code/scratch/LoadXLSXExample.swf
[Fault] exception, information=SecurityError: Error #2148: SWF file file:///Users/ben/code/scratch/LoadXLSXExample.swf cannot access local resource file:///Users/ben/code/scratch/Example Spreadsheet.xlsx. Only local-with-filesystem and trusted local SWF files may access local resources.
Execution halted in 'LoadXLSXExample.swf' at 0xffffffff (-1)

This was fixed by compiling the swf with -use-network=false to allow for the local sandbox

(fdb) run file:///Users/ben/code/scratch/LoadXLSXExample.swf
Attempting to launch and connect to Player using URL
file:///Users/ben/code/scratch/LoadXLSXExample.swf
Player connected; session starting.
Set breakpoints and then type 'continue' to resume the session.
[SWF] Users:ben:code:scratch:LoadXLSXExample.swf - 28,836 bytes after decompression
(fdb) continue
[trace] Attempting to load Example Spreadsheet.xlsx
[trace] 'Example Spreadsheet.xlsx' unzipped and loaded: 11 files are inside the xlsx
[trace] getCell:A3 3 A
[trace] Cell A3=Hello Excel

from as3-xlsx-reader.

webmatrixxxl avatar webmatrixxxl commented on June 4, 2024

Great! Thank you.

from as3-xlsx-reader.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.