Log in
Please log in or register.
Pages: 1 [2] 3 4
  Print  
Author Topic: TUTORIAL: Compiling and running the 'mode' demo in FlashDevelop  (Read 28417 times)
scattle
Newbie
*
Posts: 8



View Profile
« Reply #15 on: Tue, Jun 30, 2009 »

I'm pretty new here, but, I've read everyones' posts on this thread, and I did everything in the tutorial, but every time I use Test Movie, I get this at the bottom:

C:\Documents and Settings\HP_Owner\My Documents\Flixel4\src\Mode.as(Cool: col: 28 Error: The definition of base class FlxGame was not found.
public class Mode extends FlxGame
^
Build halted with errors (fcsh).
Done (1)
Logged
hanuman
Newbie
*
Posts: 23


View Profile WWW
« Reply #16 on: Fri, Jul 17, 2009 »

Hi everyb! Grin

I've started out with flixel and FlashDevelop and everyths works out, but I've got a question. I'm using FlashDevelop + FlashCS4, in FlashIDE I'm drawing assets, exporting for AS, compiling swc, then use it in FD. But when I try to do it with flixel:

this.add( new FlxBlock(0, 0, 550, 450, MenuBackgroundDesign, 0 )); // MenuBackgroundDesign - asset class name in .swc

It throes me error #1009, though with [Embed] tag, everyths works fine. Please, explain it to noob... Cool
Logged

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


hostest w/ the mostest


View Profile WWW
« Reply #17 on: Sat, Jul 18, 2009 »

Are you able to create a FlxSprite using the same name?  It's expecting a class name that represents an embedded image
Logged

hanuman
Newbie
*
Posts: 23


View Profile WWW
« Reply #18 on: Sat, Jul 18, 2009 »

Are you able to create a FlxSprite using the same name?  It's expecting a class name that represents an embedded image

Hi Adam, Thanx for reply.
No. This code throws error #1009:

this.add( new FlxSprite(MenuBackgroundDesign) );

This works fine:

this.addChild( new MenuBackgroundDesign() );

i.e. standart graphics exporing form FlashIDE to FlashDevelop doesn't work... Huh

UPDATED: Heh, I understood, that flixel only works with BitmapData-type graphic classes, but refuses to work with DisplayObject-type classes... Does it mean I can't draw graphics in FlashIDE for flixel?
« Last Edit: Sat, Jul 18, 2009 by hanuman » Logged

Alexitrón
Newbie
*
Posts: 1


View Profile
« Reply #19 on: Fri, Jul 24, 2009 »

WOOOOOOOOOOOOOOOOO ! Grin I finally got that mode.ass thing to work . Nice little game by the way . So , yeah , I guess i have to read some tutorials now .
Logged
radix
Newbie
*
Posts: 37


View Profile WWW
« Reply #20 on: Fri, Jul 24, 2009 »

You left out a "not":

Quote
NOTE: This tutorial does explain how to learn or use Actionscript, or even what Flixel is!

Logged

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


hostest w/ the mostest


View Profile WWW
« Reply #21 on: Fri, Jul 24, 2009 »

haha woops, i'm on it!
Logged

vonWolfehaus
Full Member
***
Posts: 195



View Profile WWW
« Reply #22 on: Wed, Jul 29, 2009 »

Man I'm lame (also new to FlashDevelop). I keep getting the error "blah\Mode\src\MenuState.as(7): col: 4: Error: unable to resolve '/data/cursor.png' for transcoding" for all the embeds in the file. I imagine it'll complain about the others when it gets to them too.

The project classpath is src like it should be -- main classes are in src and there's src/data for the other stuff. Any ideas?

EDIT: Hurr. All those assets weren't present in the folders, had to extract them from the flixel source and move them around, then take out all the ../../ etc from the embed references. Don't mind me folks, just your typical ADD 'tard passing through...
« Last Edit: Wed, Jul 29, 2009 by vonWolfehaus » Logged

Meet Obama every day at #flixel on irc.freenode.net.
Use your favorite IRC client or  http://webchat.freenode.net/
Crusader
Newbie
*
Posts: 22



View Profile
« Reply #23 on: Fri, Jul 31, 2009 »

Whenever I try to test movie I get no error code just at the bottom left of the screen it says build started and then build failed.
« Last Edit: Sat, Aug 29, 2009 by Ray » Logged

First Nicalis and then Kojima Productions then Capcom maybe Smiley
Crusader
Newbie
*
Posts: 22



View Profile
« Reply #24 on: Sat, Aug 29, 2009 »

I finally got the build started thanks to nitram_cero's flan tutorial
Logged

First Nicalis and then Kojima Productions then Capcom maybe Smiley
Jazmeister
Newbie
*
Posts: 8


View Profile
« Reply #25 on: Sun, Sep 13, 2009 »

I actually tried this and it just tells me I have to configure the compiler when I go to test my movie. I have no idea how or why. Hmmmm.
Logged
luc
Jr. Member
**
Posts: 87


no ablo anything except french


View Profile WWW
« Reply #26 on: Sun, Sep 13, 2009 »

you could browse this configuration tutorial to check if Flash Develop is properly set up.
« Last Edit: Sun, Sep 13, 2009 by luc » Logged
Jazmeister
Newbie
*
Posts: 8


View Profile
« Reply #27 on: Sun, Sep 13, 2009 »

Heheh, thanks, looks like I'm missing something called "All the actionscript 3 stuff ever".
Logged
shipwreck
Newbie
*
Posts: 3

Run and shoot, shoot and run.


View Profile WWW
« Reply #28 on: Wed, Sep 16, 2009 »

 Cry

Seems like it should be easy to get this going...

Anyways, I get this message: ...\mode\src\Mode.as(Cool: col: 28 Error: The definition of base class FlxGame was not found.

Suggestions?
Logged
Raider192
Newbie
*
Posts: 2


View Profile
« Reply #29 on: Thu, Sep 17, 2009 »

I had the same problem as Rinkuhero. I checked if what I had created was a project and it was, but for some reason i keep getting an error. What am i doing wrong? Help will be appreciated.
Logged
Pages: 1 [2] 3 4
  Print  
 
Jump to: