Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8731799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:19:17+00:00 2026-06-13T09:19:17+00:00

When developing OpenLaszlo applications, it’s sometimes useful to generate the ActionScript 3 source code

  • 0

When developing OpenLaszlo applications, it’s sometimes useful to generate the ActionScript 3 source code of an application written in lzx, e.g. when you want to compile OpenLaszlo into an Adobe AIR application.

What is the simplest way to generate the ActionScript 3 source code into a predefined folder?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:19:18+00:00Added an answer on June 13, 2026 at 9:19 am

    The lzc command line tool which can be found in the $LPS_HOME/WEB-INF/lps/server/bin/ has on option for that:

    --lzxonly
      for as3 runtime, emit intermediate as files, 
      but don't call backend as3 compiler
    

    By default the OpenLaszlo compiler will generate the ActionScript 3 code into the system specific Java temp folder, but the $JAVA_OPTS environment variable can be used to change that folder.

    Here’s an example of how the command can be used in combination with $JAVA_OPTS on Linux:

    a) Create a simple LZX file, e.g.

    <canvas>  
      <button text="Hello world" />  
    </canvas>
    

    and save it as test.lzx.

    b) Set the $JAVA_OPTS variable
    The following syntax is for Linux or OS X:

    export JAVA_OPTS="-Djava.io.tmpdir=./tmp -DXmx1024M"
    

    c) Compile the LZX into ActionScript 3

    > lzc --lzxonly test.lzx --runtime=swf10
    Compiling: test.lzx to test.swf10.swf
    

    The tmp folder will contain the generated ActionScript 3 files

    tmp
    ├── lzccache
    └── lzswf9
        └── build
            └── test
                ├── app.swf
                ├── build.sh
                ├── LzApplication.as
                ├── $lzc$class_basebutton.as
                ├── $lzc$class_basecomponent.as
                ├── $lzc$class_basefocusview.as
                ├── $lzc$class_button.as
                ├── $lzc$class__componentmanager.as
                ├── $lzc$class_focusoverlay.as
                ├── $lzc$class__m2u.as
                ├── $lzc$class__m2v.as
                ├── $lzc$class__m2w.as
                ├── $lzc$class__m2x.as
                ├── $lzc$class__m2y.as
                ├── $lzc$class__m2z.as
                ├── $lzc$class__m30.as
                ├── $lzc$class__m31.as
                ├── $lzc$class__mm.as
                ├── $lzc$class__mn.as
                ├── $lzc$class__mo.as
                ├── $lzc$class__mp.as
                ├── $lzc$class_statictext.as
                ├── $lzc$class_style.as
                ├── $lzc$class_swatchview.as
                ├── LZC_COMPILER_OPTIONS
                ├── LzPreloader.as
                └── LzSpriteApplication.as
    

    The folder structure follows the following scheme:

    {JAVA_TEMP_FOLDER}/lzswf9/build/{LZX_FILENAME_WITHOUT_ENDING}, therefore in our case

    tmp/lzswf9/build/test/
    

    The main applicaton file is LzSpriteApplication.as, and you can look into the build.sh file to get an idea how the Flex SDK’s mxmlc command is used to compile the generated source code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Developing an application for Android, i want to record data that will be usefull
Developing a C# .NET 2.0 WinForm Application. Need the application to close and restart
Iam developing one application.In that iam placing the radio buttons(uiimageview) on table view and
While developing an application using gwt in ecliplse crashed. Now the server is running
When developing an RCP application against a target platform, I ( and others )
iam developing one application.In that i need to get the music files from the
Developing a multilingual application in VB.Net 2008, Im able to add resources to forms
Developing a desktop application based on Java + Swing I faced the problem of
developing an application in Access. The access file will be located on a db
Developing a network application, I have a Connection class that manages sending and receiving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.