Log in
Please log in or register.
Pages: [1]
  Print  
Author Topic: TUTORIAL: Compiling and Running the 'mode' from the command line on Linux  (Read 10151 times)
failrate
Jr. Member
**
Posts: 52



View Profile WWW
« on: Sat, Jun 6, 2009 »

NOTE: This tutorial does not explain how to learn or use Actionscript, or even what Flixel is!  If you want to know more about these things or other topics, please check out the general help thread.  Thanks!


Building and running Flex projects is very easy, even without an IDE:

1. Make sure to download and install the Flex SDK.  http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk
2. Make sure to download and install a Flash standalone player http://download.macromedia.com/pub/flashplayer/updaters/9/flash_player_9_linux_dev.tar.gz and/or http://download.macromedia.com/pub/flashplayer/updaters/10/flash_player_10_linux_dev.tar.gz
3. Download and unzip the flixel_v1.0.zip
4. Include the path to your mxmlc binary.  `export PATH=$PATH:/path/to/your/mxmlc`
5. Also include the path to your flashplayer. `export PATH=$PATH:/path/to/your/flashplayer`
6. Move to the flixel_v1.0 directory. `cd /path/to/flixel_v1.0`
7. Compile the Mode demo game. `mxmlc Mode.as`
8. It should compile without any errors.
9. Run the demo game in standalone. `flashplayer Mode.swf`

I've tried to be as thorough as possible.  I'm assuming some experience with Linux, but if there are any questions, please ask.

Thank you.
« Last Edit: Fri, Sep 18, 2009 by failrate » Logged
Adam Atomic
Administrator
Hero Member
*****
Posts: 724


hostest w/ the mostest


View Profile WWW
« Reply #1 on: Sat, Jun 6, 2009 »

Thanks dude!  I added it to the official help thread Cheesy
Logged

triptych
Newbie
*
Posts: 6


View Profile
« Reply #2 on: Sat, Jun 6, 2009 »

Note you dont have to be in Linux for this to work... both windows and mac can do command line too.
Logged
failrate
Jr. Member
**
Posts: 52



View Profile WWW
« Reply #3 on: Sun, Jun 7, 2009 »

Different commands for setting the PATH environment variable, on Windows, though.  Although, it might be the same on MacOSX.  I just don't have either of those environments available for testing.
Logged
radix
Newbie
*
Posts: 37


View Profile WWW
« Reply #4 on: Tue, Jun 9, 2009 »


For what it's worth, it's not *really* required to use a standalone flash player. You can just load the .swf file in firefox or whatever and it should work fine.

Thanks for the instructions, failrate! Adam, maybe you could change the front flixel page to include "Linux" underneath mxmlc in addition to "mac + windows"? I was kind of turned off at first because I didn't think flixel would work on Linux.
Logged

Adam Atomic
Administrator
Hero Member
*****
Posts: 724


hostest w/ the mostest


View Profile WWW
« Reply #5 on: Tue, Jun 9, 2009 »

done Smiley
Logged

radix
Newbie
*
Posts: 37


View Profile WWW
« Reply #6 on: Tue, Jun 9, 2009 »

done Smiley

Awesome!
Logged

failrate
Jr. Member
**
Posts: 52



View Profile WWW
« Reply #7 on: Wed, Jun 10, 2009 »

For what it's worth, it's not *really* required to use a standalone flash player. You can just load the .swf file in firefox or whatever and it should work fine.

True, but I prefer it for two reasons:
1) I can work completely from the command line (I don't need to manually switch to Firefox when compilation has finished).
2) I can test Flash Player 9 and Flash Player 10 compatibility without changing my Firefox plugin.

Another possible benefit that I don't exploit is the debugging facilities of the debug versions of the standalone players.
Logged
gspawn
Newbie
*
Posts: 4


View Profile
« Reply #8 on: Tue, Aug 4, 2009 »

I can't seem to find a version of Flex Builder for Linux at the link provided. Is Linux no longer supported?
Logged
Adam Atomic
Administrator
Hero Member
*****
Posts: 724


hostest w/ the mostest


View Profile WWW
« Reply #9 on: Tue, Aug 4, 2009 »

There hasn't ever been a linux version that I know of...this thread is regarding using the Flex SDK from the commandline
Logged

gspawn
Newbie
*
Posts: 4


View Profile
« Reply #10 on: Wed, Aug 5, 2009 »

Ok, noobish question then. If I need the Flex SDK to be able to compile stuff under Linux, should I download the Mac version or the Windows version from the site?
Logged
Adam Atomic
Administrator
Hero Member
*****
Posts: 724


hostest w/ the mostest


View Profile WWW
« Reply #11 on: Wed, Aug 5, 2009 »

the flex SDK does not have mac or windows or linux versions, there is just the flex SDK, for "all platforms"
Logged

gspawn
Newbie
*
Posts: 4


View Profile
« Reply #12 on: Wed, Aug 5, 2009 »

That's what I would have thought, but when I click the link in the tutorial to download it, I get 4 download options:

MacOS, English
Windows, English
Eclipse Plugin, MacOS, English
Eclipse Plugin, Windows, English

So you can see why there's some confusion here. If it's platform independant, should I just grab the windows one?
Logged
dan
Newbie
*
Posts: 31



View Profile WWW
« Reply #13 on: Wed, Aug 5, 2009 »

gspawn, you're getting confused between the Flex SDK and Flex Builder.

You want the download here for the SDK: http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk

Flex Builder on Linux was never officially released. It was only ever released as an alpha product that was a plugin for Eclipse that was feature incomplete and it has not been updated for about a year now. Outlook is not good for Flex Builder on Linux. Sad  However, the SDK still works fine on all platforms including Linux. You can find the Linux version of Flex Builder here if you really want to try it, I haven't bothered: http://labs.adobe.com/downloads/flexbuilder_linux.html

I have been using Geany as my IDE for Flex on Linux.
Logged

gspawn
Newbie
*
Posts: 4


View Profile
« Reply #14 on: Wed, Aug 5, 2009 »

Excellent! Thanks for clearing that up. I knew there was something I was missing. Smiley
Logged
Pages: [1]
  Print  
 
Jump to: