Author Topic: Seifer Tim's Tutorial Par 2 flash error [Solved]  (Read 2662 times)

Freakmiko

  • Guest
Hi guys,

I'm new to Flash and just wanted to try out your cool engine ;)
But I have a problem, I followed Seifer Tim's tutorial until the PlayState.as was ready to build.
Flash throws out some errors...
Code: [Select]
VerifyError: Error #1014: Klasse mx.core::ByteArrayAsset wurde nicht gefunden.

at flash.display::MovieClip/nextFrame()
at org.flixel::FlxPreloader/onEnterFrame()[C:\Users\Michael\Documents\Tutorial\src\org\flixel\FlxPreloader.as:153]
and after that
Code: [Select]
ReferenceError: Error #1065: Variable PlayState_DataMap ist nicht definiert.

at flash.display::MovieClip/nextFrame()
at org.flixel::FlxPreloader/onEnterFrame()[C:\Users\Michael\Documents\Tutorial\src\org\flixel\FlxPreloader.as:153]
And then when I press X it says
Code: [Select]
ReferenceError: Error #1065: Variable com.Tutorial::PlayState_DataMap ist nicht definiert.
at com.Tutorial::PlayState()[C:\Users\Michael\Documents\Tutorial\src\com\Tutorial\PlayState.as:13]
at com.Tutorial::MenuState/onFade()[C:\Users\Michael\Documents\Tutorial\src\com\Tutorial\MenuState.as:39]
at org.flixel.data::FlxFade/update()[C:\Users\Michael\Documents\Tutorial\src\org\flixel\data\FlxFade.as:67]
at org.flixel::FlxGame/update()[C:\Users\Michael\Documents\Tutorial\src\org\flixel\FlxGame.as:340]
I could'nt figure out what I did wrong, but maybe thats because I use a newer Version than whats used in the tutorial.
If you need more of my code just say it.

Solution:

I have compiled my codes using flex_sdk_3.5.0.12683_mpl.zip, from this link. try it..

http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3

Cheers!

« Last Edit: Sat, Apr 3, 2010 by Freakmiko »

pisceseyes

  • Member
  • **
  • Posts: 12
  • Karma: +0/-0
    • View Profile
    • Pisces Eyes' Home Page
Re: Seifer Tim's Tutorial Par 2 flash error
« Reply #1 on: Sat, Apr 3, 2010 »
Hi Freakmiko,

Did you purposely renamed the file FlxPreloader.as?

If so, you also need to change this:
[Frame(factoryClass="Preloader")] into [Frame(factoryClass="FlxPreloader")]

You should follow exactly the file naming as stated on the tutorial to make it easy for the first time.

If you want your own file naming preference, you may need to modify some part of the codes on that tutorial as well to match with the file name you are using.

Check out my codes here, I've  already ported it to v2.23.
http://pisceseyes.110mb.com/blogs/100401-my-first-flash-game-from-seifer-tims-tutorial-flixel-basic-game-tutorial

Cheers!

Freakmiko

  • Guest
Re: Seifer Tim's Tutorial Par 2 flash error
« Reply #2 on: Sat, Apr 3, 2010 »
Hmm, I looked at my files. All of them named properly.

I just tried to compile your code, but that gave me the same errors as before. I think it has got something to do with the Flex SDK 4 ...

pisceseyes

  • Member
  • **
  • Posts: 12
  • Karma: +0/-0
    • View Profile
    • Pisces Eyes' Home Page
Re: Seifer Tim's Tutorial Par 2 flash error
« Reply #3 on: Sat, Apr 3, 2010 »

I have compiled my codes using flex_sdk_3.5.0.12683_mpl.zip, from this link. try it..

http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3

Cheers!

Freakmiko

  • Guest
Re: Seifer Tim's Tutorial Par 2 flash error
« Reply #4 on: Sat, Apr 3, 2010 »
Seems to work now, thanks ^^

GaijinYakuza

  • Guest
Re: Seifer Tim's Tutorial Par 2 flash error [Solved]
« Reply #5 on: Sun, Apr 4, 2010 »
I'm getting the same issue, but compiling with flex 3.5 doesn't work. I get 'embedAsCFF' not supported by "flex2.compiler.mediaFontTranscoder' errors on compile. Compiling with flex 4 is fine, but flash player throws the same errors as at the top of this thread.

TheHanna

  • Member
  • **
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Seifer Tim's Tutorial Par 2 flash error [Solved]
« Reply #6 on: Wed, Apr 28, 2010 »
GaijinYakuza: You can fix this error by opening FlxGame.as under org/flixel and commenting out line 34:

Code: [Select]
//[Embed(source="data/nokiafc22.ttf",fontFamily="system",embedAsCFF="false")] protected var junk:String;
and uncommenting line 37:

Code: [Select]
[Embed(source="data/nokiafc22.ttf",fontFamily="system")] protected var junk:String;
This removes the embedAsCFF=false that is causing the error. This should allow you to compile the game successfully using Flex SDK 3.5.
« Last Edit: Wed, Apr 28, 2010 by TheHanna »

datorum

  • Active Member
  • ***
  • Posts: 165
  • Karma: +0/-0
    • View Profile
Re: Seifer Tim's Tutorial Par 2 flash error [Solved]
« Reply #7 on: Sat, Jun 26, 2010 »
any solutions for using flex 4? Why is there a need to downgrade anyway or where is the problem? (I am spent hours fixing this problem, but no real solution so far :(

Brogrammer

  • Guest
Re: Seifer Tim's Tutorial Par 2 flash error [Solved]
« Reply #8 on: Tue, Jun 29, 2010 »
It is unable to transcode and unable to resolve these three things
Code: [Select]
[Embed(source="data/nokiafc22.ttf",fontFamily="system")] protected var junk:String;

[Embed(source="data/beep.mp3")] protected var SndBeep:Class;
[Embed(source="data/flixel.mp3")] protected var SndFlixel:Class;

These are located in the FlxGame.as and I'm not sure how to fix the errors. Much help would be appreciated!

Brogrammer

  • Guest
Re: Seifer Tim's Tutorial Par 2 flash error [Solved]
« Reply #9 on: Wed, Jun 30, 2010 »
Okay, so I fixed my above problem. Now I need help with the following
Code: [Select]
override public function hitBottom(Contact:FlxObject, Velocity:Number):void
        {
_can_jump = true;
super.hitBottom(Contact, Velocity);
        }
       
        override public function hurt(Damage:Number):void
        {
            _hurt_counter = 1;
            super.hurt(Damage);
        }   

Every time I Compile it keeps coming up with an error saying "method marked override must override another method" Help in this would be appreciated!

datorum

  • Active Member
  • ***
  • Posts: 165
  • Karma: +0/-0
    • View Profile
Re: Seifer Tim's Tutorial Par 2 flash error [Solved]
« Reply #10 on: Thu, Jul 1, 2010 »

Every time I Compile it keeps coming up with an error saying "method marked override must override another method" Help in this would be appreciated!
hehe I know that one :)
simple, you use another version of flixel than the other developer.
it appears you use a version where hitBottom - or whatever method is the problem - is not part (or has another name) of FlxSprite.
Two solutions:
-remove the override before the method declaration (recommended)
-get the version of flixel the other person used