Log in
Please log in or register.
Pages: [1]
  Print  
Author Topic: TUTORIAL: Compiling and running the 'mode' demo in Flex Builder  (Read 8529 times)
Adam Atomic
Administrator
Hero Member
*****
Posts: 724


hostest w/ the mostest


View Profile WWW
« on: Fri, Jun 5, 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!


Ok!  So you have and enjoy using Eclipse, you've downloaded the flixel zip file, what now?  It's really really easy:




Step 1: Unzip the file into a folder




Step 2: Select File->Import.  It should pop up something like this:



Just hit continue or whatever!




Step 3: Select the flixel_v1.0 folder that was created when you unzipped the file, and hit Next or whatever.  Now you should have the 'mode' project open and available in your workspace!




You may get an error that you need to "recreate HTML templates" or something lame like that.  Just right click on the error and select the correct option, and you should be all set!


Finally, my apologies if this tutorial is a bit rushed at this time but I think it may help some people still!
« Last Edit: Fri, Jul 24, 2009 by Adam Atomic » Logged

adamrobo
Newbie
*
Posts: 10



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

Thanks, this helped out a lot.

I just wanted to let everyone that this tutorial also applies if you are using the stand-alone Flex Builder program.
Logged

triptych
Newbie
*
Posts: 6


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

I tried this in aptana, and it imported mode, but now I just have some .as files, and some folders. No HTML files, and there's nothing to "run".  I didnt see the 'recreate html files' error either.
What do I do now? Sorry, kinda lost.
Logged
Adam Atomic
Administrator
Hero Member
*****
Posts: 724


hostest w/ the mostest


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

I haven't used Aptana, just the Flex Builder plugin (I just realized that Flex Builder is not in the thread title at all).  My guess is maybe like in Flash Develop you may have to designate "Mode.as" as the thing to compile, in strict Actionscript terms the "document class" I guess?  Flex Builder will generate the HTML files that you need to preview the SWF, I dunno if Aptana does that or not?

I will fix the thread title now too Smiley
Logged

triptych
Newbie
*
Posts: 6


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

I have flex builder 3 on my mac (was just trying aptana on my pc), and I tried to import it. I got a bit further however it complains that it doesnt have mode.html, and there's no context menu to "rebuild html files." Can you post a copy of that mode.html or is there someone on flex builder 3 on mac that might be having the same issue?

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


hostest w/ the mostest


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

The only place I've found to call that recreate command is by right clicking the actual error in the problems pane.  But its not just a single HTML file that you need, the template directory that it generates has like defaults SWFs and javascript files and crap, its annoyingly bulky (otherwise I definitely would have included it)
Logged

triptych
Newbie
*
Posts: 6


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

Yeah, the only place I get to "see" the error is if I try to create a release build, and there I see this:

http://skitch.com/andrewwooldridge/burec/export-release-build

The "error" is just text. Right-clicking just selects the text Smiley

However I'm able to manually view the resulting swf if I just point to it in the browser. It's not a show stopper, just kinda annoying.

Excited to start playing with this.


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


hostest w/ the mostest


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

Yea that's the error you SHOULD be getting in debug mode, where you can click on it in the problems tab.  Make sure you've selected a file inside the Mode project somewhere, otherwise debug mode can act weird
Logged

nigel
Newbie
*
Posts: 1


View Profile
« Reply #8 on: Fri, Jun 19, 2009 »

Hi.  I'm using Flex Builder 3.

I can get the Mode project to import no problem - I just follow the steps up above and it works.

I was wondering if there was any way of adding the Flixel core files as a library in Flex Builder.  Instead of having to copy the /com/ folder into every project, can I embed Flixel as a reference-able resource?
Logged
Adam Atomic
Administrator
Hero Member
*****
Posts: 724


hostest w/ the mostest


View Profile WWW
« Reply #9 on: Fri, Jun 19, 2009 »

i have no idea  Smiley
Logged

ShooterMG
Jr. Member
**
Posts: 69



View Profile
« Reply #10 on: Thu, Aug 27, 2009 »

Little bit late, but yes you can. In Flex Builder, right-click (or control-click in OSX) your project, then select Properties. From here, select the 'Build Path' option on the left, and on the right, select the 'Source Path' tab (not the 'Library Path' tab), then from there select the 'flixel' folder of the Flixel source files. Viola! Your project now has access to Flixel classes. No need to copy Flixel into every project.
« Last Edit: Thu, Aug 27, 2009 by ShooterMG » Logged
Pages: [1]
  Print  
 
Jump to: