Author Topic: HELP!!!! Can't figure out the source of this error!!!  (Read 687 times)

kennyalancramer

  • Newbie
  • *
  • Posts: 5
HELP!!!! Can't figure out the source of this error!!!
« on: June 25, 2009, 07:04:56 pm »
I have megazine in a MovieClip container in Flash...  Everything seemed to work until I finished up my site and added the navigation.  Now things work until I switch from one section of the website to another section and back a few times...  Then suddenly I get this error!  I have no clue how to fix it.  I can upload my source files if that would help.  I am desperate here as I need to get this site up ASAP to apply for a job.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at DragHandler/registerListeners()[/Users/kennycramer/Desktop/Website 6-24-09/Entire Site/de/mightypirates/megazine/DragHandler.as:332]
   at DragHandler/setPages()[/Users/kennycramer/Desktop/Website 6-24-09/Entire Site/de/mightypirates/megazine/DragHandler.as:266]
   at de.mightypirates.megazine::MegaZine/initPageLoad()[/Users/kennycramer/Desktop/Website 6-24-09/Entire Site/de/mightypirates/megazine/MegaZine.as:1661]
   at de.mightypirates.megazine::MegaZine/onLibraryError()[/Users/kennycramer/Desktop/Website 6-24-09/Entire Site/de/mightypirates/megazine/MegaZine.as:1649]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at de.mightypirates.megazine.gui::Library/onError()[/Users/kennycramer/Desktop/Website 6-24-09/Entire Site/de/mightypirates/megazine/gui/Library.as:218]


Here is my site:  http://www.kennyalancramer.com  Let me know if you want to see FLA and other source files...  THANK YOU!!!!  Please help!
« Last Edit: June 26, 2009, 05:57:54 am by kennyalancramer »

kennyalancramer

  • Newbie
  • *
  • Posts: 5
Re: HELP!!!! Can't figure out the source of this error!!!
« Reply #1 on: June 26, 2009, 03:57:59 pm »
This is really odd...  it seems that even when I am viewing my webpage online (as opposed to viewing it from my hard drive) that I get exactly the same error message.  I had expected to get the error message, but I did not expect that I would see he "/Users/kennycramer/Desktop/Website 6-24-09/Entire Site/de/mightypirates/megazine/..." thing in brackets after the listing under the TypeError warning message.  I have looked through the files and can't see what would cause it to be looking for a location in those folders... Any thoughts??? 

This is how I am loading Megazine into a movieclip container:

Quote
import de.mightypirates.megazine.MegaZine;

var mz:MegaZine = new MegaZine("pages.xml","interface.swf");
addChild(mz);

One thing that seems odd though... I don't think that the "interface.swf" file really does anything right now.  I downloaded the source code to do what I am doing (placing Megazine inside a FLA project file), but the source code did not have a interface.swf.  It had a interface.fla and I exported that as a swf.  Is that what I am supposed to do?  Also where do I place the audio files???  Maybe I should place these files in the library?  Right now I can move the "interface.swf" file and my megazine still seems to work.  Any thoughts??  Please help... I am getting desperate.

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: HELP!!!! Can't figure out the source of this error!!!
« Reply #2 on: July 06, 2009, 05:32:22 pm »
First one sounds like a problem when the engine is still loading while being removed from the stage again. I may have fixed that in the new release, you might want to try that. ;)

The interface.swf contains everything gui, i.e. the navbar, the custom cursors, the zoom mode gui/buttons and so on. So you will probably always want to have it there, but the book still runs without it (just with reduced functionality). And yes, that's what the interface.fla is supposed to do - generating the swf.

Sounds... wherever you need them. If you want to use the snd element you'll have to place them in some folder, though, as that element can't access sound elements in the library (or to be correct: isn't built to do so).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.