Vikram Ranabhatt
Vikram Ranabhatt

Reputation: 7610

flex Support in linux

I am developing p2p application using RTFMP and flex.I am doing some research on this using adobe cirrus server and developed flex client application on windows and its working correctly. Now I want to create client using flex on Linux machine.the constraint is client should run all type of Linux Red hat, Ubuntu etc.

Will flex development is supported on all for of Linux or not?

What development is required for the flex development on Linux?

Is there any IDE available for flex development?

Upvotes: 1

Views: 638

Answers (2)

Paul Sweatte
Paul Sweatte

Reputation: 24617

Emacs has an ActionScript 3 mode and a binding for the Flex debugger. A Makefile to configure mxmlc is simple enough:

MXMLC = /home/foo/flex_sdk/bin/mxmlc
MFLAGS =

TARGETS  = hello.swf

all: $(TARGETS)

clean:
        $(RM) $(TARGETS)

.SUFFIXES:      .as .swf
.as.swf:
        $(MXMLC) $(MFLAGS) $<

Here is a sample Rakefile:

task :default do
  DEV_ROOT = "/Users/base/flex_development"
  PUBLIC = "#{DEV_ROOT}/bin"
  FLEX_ROOT = "#{DEV_ROOT}/src"
  system "/Developer/SDKs/Flex/bin/mxmlc --show-actionscript-warnings=true --strict=tr
ue -file-specs #{FLEX_ROOT}/App.mxml"
  system "cp #{FLEX_ROOT}/App.swf #{PUBLIC}/App.swf"
end

and a sample Ant task:

<target name="compileMain" description="Compiles the main application files.">
    <echo>Compiling '${bin.dir}/main.swf'...</echo>
    <java jar="${FLEX_HOME}/lib/mxmlc.jar" fork="true" failonerror="true">
        <arg value="+flexlib=${FLEX_HOME}/frameworks" />
        <arg value="-file-specs='${src.dir}/main.mxml'" />
        <arg value="-output='${bin.dir}/main.swf'" />
    </java>
</target>

References

Upvotes: 0

JeffryHouser
JeffryHouser

Reputation: 39408

You can develop with Flex on Linux using the command line compiler available in the Flex SDK.

Flash Builder, Adobe's eclipse based IDE is not supported on Linux. But, you can search out alternate IDEs. FDT is one that has linux support. I thought that IntelliJ did too. The Flex support in IntelliJ was demonstrated at Max and is pretty awesome.

Upvotes: 2

Related Questions