0
votes

I'm having this error , the swf compiled with flex builder

ReferenceError: Error #1065: Variable Profiler is not defined.
at global$init()
at core::Emulator()[C:\Users\AJ\Documents\Flex Builder 3\Snes\src\core\Emulator.as:67]
at Snes/onRomLoaded()[C:\Users\AJ\Documents\Flex Builder 3\Snes\src\Snes.as:90]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

any help would be great.

Emulator.as file : http://txtup.net/8CP6r

Snes.as file : http://txtup.net/b9WW

1
Please post your code. - bwroga
the code is here: txtup.co/qojL7 - Dora
It's nice that you added the code, however, that's not too helpful. The reason is that the error above says the problem is on line #67 of your Emulator class. But now we have to count to line 67 in the code that you linked to. I have trouble counting past 10 :) Can you look in your IDE on line 67, then edit your question and add that line? If using Flash Builder you can press CMD-L or CTRL-L and enter 67 to jump to that line. I tried searching for the variable "Profiler" in your code, but couldn't even find the word anywhere. So perhaps it's best you show us what line 67 looks like. Cheers! - Sunil D.
this is line 67: cLoader = new CLibInit(); - Dora
Please check the post again i just posted the 2 files having the errors with line numbers. - Dora

1 Answers

0
votes

I was reading your code, can you paste following lines and check if your "cLoader" variable is getting initialize properly? or it would be great if you can provide source for "CLibInit" class as well.

cLoader = new CLibInit();
if(cLoader){
  cLoader.supplyFile( "romfile", rom );                         
  cLib = cLoader.init();            
  cLib.setup();
}