Re: [Flashcoders] Error 1009

2010-02-26 Thread Victor Subervi
On Thu, Feb 25, 2010 at 4:13 PM, Keith Reinfeld keithreinf...@comcast.netwrote: What should I be looking for? This is too strange for words. I started commenting out code to see if I could fix whatever it was that was broken. I figured I'd done just that. Then I started uncommenting the code

Re: [Flashcoders] Error 1009

2010-02-26 Thread David Benman
In general, when you really, really think your code is ok (which is probably a lot less often than you initially think), there might be issues with running the code that might cause an error. Some other things you can try: 1. Make sure all your AS files have been saved so you are actually

Re: [Flashcoders] Error 1009

2010-02-26 Thread Victor Subervi
On Fri, Feb 26, 2010 at 9:31 AM, David Benman d...@dbenman.com wrote: In general, when you really, really think your code is ok (which is probably a lot less often than you initially think), there might be issues with running the code that might cause an error. Some other things you can try:

Re: [Flashcoders] Error 1009

2010-02-25 Thread David Benman
Open your script in Flash and you can place debug break points to stop code execution at specific points. If you have no clue where the error occurs especially since Flash's output window errors can be vague, then if you run in debug mode, again ctrl-shift-enter, the debugger will stop at

Re: [Flashcoders] Error 1009

2010-02-25 Thread Victor Subervi
On Thu, Feb 25, 2010 at 10:46 AM, Keith Reinfeld keithreinf...@comcast.netwrote: Yes, except instead of referencing a problem with the preloader, it references a problem with the *.as that will load after the preloader. I think you need to examine '*.as' then. Yeah, that's what I

RE: [Flashcoders] Error 1009

2010-02-25 Thread Keith Reinfeld
: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Victor Subervi Sent: Wednesday, February 24, 2010 9:38 AM To: Deepanjan Das Cc: Flash Coders List Subject: Re: [Flashcoders] Error 1009 On Wed, Feb 24, 2010 at 10:35 AM, Deepanjan Das

Re: [Flashcoders] Error 1009

2010-02-25 Thread Victor Subervi
On Thu, Feb 25, 2010 at 8:52 AM, David Benman d...@dbenman.com wrote: Open your script in Flash and you can place debug break points to stop code execution at specific points. If you have no clue where the error occurs especially since Flash's output window errors can be vague, then if you run

RE: [Flashcoders] Error 1009

2010-02-25 Thread Keith Reinfeld
...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Victor Subervi Sent: Thursday, February 25, 2010 1:37 PM To: Flash Coders List Subject: Re: [Flashcoders] Error 1009 On Thu, Feb 25, 2010 at 10:46 AM, Keith Reinfeld keithreinf...@comcast.netwrote: Yes

Re: [Flashcoders] Error 1009

2010-02-25 Thread Henrik Andersson
Victor Subervi wrote: On Thu, Feb 25, 2010 at 8:52 AM, David Benmand...@dbenman.com wrote: Open your script in Flash and you can place debug break points to stop code execution at specific points. If you have no clue where the error occurs especially since Flash's output window errors can be

Re: [Flashcoders] Error 1009

2010-02-24 Thread Victor Subervi
On Tue, Feb 23, 2010 at 11:02 PM, Deepanjan Das deepanjan@gmail.comwrote: Hey, I have not seen your debugger error. So how do I debug? I downloaded what I thought was the debugger and it was just another copy of Flash! but I feel its the stage that is getting null value. Please trace

Re: [Flashcoders] Error 1009

2010-02-24 Thread Deepanjan Das
Hi Victor, Did u trace within Preloader Class? DD On Wed, Feb 24, 2010 at 7:48 PM, Victor Subervi victorsube...@gmail.comwrote: On Tue, Feb 23, 2010 at 11:02 PM, Deepanjan Das deepanjan@gmail.comwrote: Hey, I have not seen your debugger error. So how do I debug? I downloaded what I

Re: [Flashcoders] Error 1009

2010-02-24 Thread Victor Subervi
On Wed, Feb 24, 2010 at 10:22 AM, Deepanjan Das deepanjan@gmail.comwrote: Hi Victor, Did u trace within Preloader Class? yes. V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Error 1009

2010-02-24 Thread Deepanjan Das
Are you getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Preloader/init() at Preloader() at test_fla::MainTimeline/frame1() DD On Wed, Feb 24, 2010 at 7:59 PM, Victor Subervi victorsube...@gmail.comwrote: On Wed, Feb 24,

RE: [Flashcoders] Error 1009

2010-02-24 Thread Keith Reinfeld
Your code references the stage (to position your textfield) so you need to listen for the ADDED_TO_STAGE event to prevent the null reference. Example: package{ import flash.events.Event; import flash.display.MovieClip; public class Preloader extends MovieClip{

Re: [Flashcoders] Error 1009

2010-02-24 Thread Victor Subervi
On Wed, Feb 24, 2010 at 10:35 AM, Deepanjan Das deepanjan@gmail.comwrote: Are you getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Preloader/init() at Preloader() at test_fla::MainTimeline/frame1() Yes, except

Re: [Flashcoders] Error 1009

2010-02-24 Thread Victor Subervi
On Wed, Feb 24, 2010 at 11:01 AM, Keith Reinfeld keithreinf...@comcast.netwrote: Your code references the stage (to position your textfield) so you need to listen for the ADDED_TO_STAGE event to prevent the null reference. Example: package{ import flash.events.Event; import

Re: [Flashcoders] Error 1009

2010-02-24 Thread Jared
Also, if you go to publish settings enable debugging or whatever, you can see the line number of the errors. Sent from my iPhone On Feb 24, 2010, at 8:38 AM, Victor Subervi victorsube...@gmail.com wrote: On Wed, Feb 24, 2010 at 11:01 AM, Keith Reinfeld keithreinf...@comcast.netwrote:

Re: [Flashcoders] Error 1009

2010-02-24 Thread Henrik Andersson
Victor Subervi wrote: On Tue, Feb 23, 2010 at 11:02 PM, Deepanjan Dasdeepanjan@gmail.comwrote: Hey, I have not seen your debugger error. So how do I debug? I downloaded what I thought was the debugger and it was just another copy of Flash! Flash IS the debugger. Just hit

[Flashcoders] Error 1009

2010-02-23 Thread Victor Subervi
Hi; I have a preloader that (obviously) calls another swf onload. This other swf loads by itself with no problem; however, it calls another script and apparently this is what's throwing the error. Curtis Morley says I should add that other script to the first frame of a timeline and set the alpha

Re: [Flashcoders] Error 1009

2010-02-23 Thread Henrik Andersson
Victor Subervi wrote: Hi; I have a preloader that (obviously) calls another swf onload. This other swf loads by itself with no problem; however, it calls another script and apparently this is what's throwing the error. What error? Use the debugger and find out!

Re: [Flashcoders] Error 1009

2010-02-23 Thread Glen Pike
Are you listening for Event.INIT or Event.COMPLETE for your preloader? You should possibly use the former to make sure all your child clips are instanciated before you run AS3 code that accesses these child clips. Victor Subervi wrote: Hi; I have a preloader that (obviously) calls another

Re: [Flashcoders] Error 1009

2010-02-23 Thread Victor Subervi
On Tue, Feb 23, 2010 at 12:04 PM, Glen Pike g...@engineeredarts.co.ukwrote: Are you listening for Event.INIT or Event.COMPLETE for your preloader? You should possibly use the former to make sure all your child clips are instanciated before you run AS3 code that accesses these child clips.

Re: [Flashcoders] Error 1009

2010-02-23 Thread Henrik Andersson
Victor Subervi wrote: For Hendrik, I am currently downloading the debugger. It's big! Eh? The content debugging player is only marginally bigger than the normal player. It is smaller than some movies. Then again, you need a debugger for the player to connect to. It is integrated in all

Re: [Flashcoders] Error 1009

2010-02-23 Thread Deepanjan Das
Hey, I have not seen your debugger error. but I feel its the stage that is getting null value. Please trace stage to find out. Let me know. Cheers Deepanjan Das On Tue, Feb 23, 2010 at 11:45 PM, Victor Subervi victorsube...@gmail.comwrote: On Tue, Feb 23, 2010 at 12:04 PM, Glen Pike

[Flashcoders] Error #1009 shows randomly

2009-06-30 Thread Isaac Alves
Hello fellows, I've bought at Flash Den a code of an Infinite Level Menu (from MBMedia) and I'm pulling my hair out. It throws that well known error as the text of the button doesn't show when it should: “TypeError: Error #1009: cannot access a property or method of a null object reference. at

Re: [Flashcoders] Error #1009 shows randomly

2009-06-30 Thread Sidney de Koning
Hi Isaac, As far as i can see it that you took off the P when going through the code, since it gives an error that it canot find local.display:rimaryButton on frame 7. Try looking there, maybee you changed the linkage identifier or the classname. HTH, Sidney de Koning On Jun 30, 2009,

Re: [Flashcoders] Error #1009 and gotoAndStop()

2008-07-14 Thread Geografiek
Hi, Shouldn't that be _label.text = label;? HTH Willem Op 12-jul-2008, om 14:00 heeft Pavel Krůšek het volgende geschreven: Hi List, i have MovieClip with some keyframes, on each keyframe is dynamic TextField with different properties (font, color etc.). In constructor - class

Re: [Flashcoders] Error #1009 and gotoAndStop()

2008-07-14 Thread Matheus Gorino
Some possible ways to solve this issue: 1. Use the addFrameScript to add your code in the correct frame; 2. Create and ENTER_FRAME listener to wait the availability of the TextField and then execute the code; I also created a simple GoToFrame class that sends a MovieClip to some frame and waits

[Flashcoders] Error #1009 and gotoAndStop()

2008-07-12 Thread Pavel Krůšek
Hi List, i have MovieClip with some keyframes, on each keyframe is dynamic TextField with different properties (font, color etc.). In constructor - class NavigationItem.as I'm trying to jump to frame and fill TextField with some text: gotoAndStop( _level ); _label.text = label;

Re: [Flashcoders] Error #1009 and gotoAndStop()

2008-07-12 Thread Steven Sacks
Creat a function that does the setting on the TextField and call it from that frame. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
Hi (posted in flashnewbies but the list is not very active and i need to solve this problemas soon as possible) i have a problem while creating a as3 short animation: When i test the movie(all done with as3) i get this: TypeError: Error #1009: Cannot access a property or method of a null

Re: [Flashcoders] Error #1009

2008-03-17 Thread jonathan howe
Missing () after Mountain instantiation, first of all... var mountain:Mountain = new Mountain(); On Mon, Mar 17, 2008 at 3:36 PM, Pedro Kostelec [EMAIL PROTECTED] wrote: Hi (posted in flashnewbies but the list is not very active and i need to solve this problemas soon as possible) i

Re: [Flashcoders] Error #1009

2008-03-17 Thread Sidney de Koning
Have you tried importing the Mountain Class? Cheers, Sid On Mar 17, 2008, at 4:28 PM, Pedro Kostelec wrote: I added the () to it but still doesn't work: package { import flash.display.Sprite; import flash.events.Event; import flash.filters.*; public class

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
I added the () to it but still doesn't work: package { import flash.display.Sprite; import flash.events.Event; import flash.filters.*; public class RisingCroix extends Sprite { private var croix:Croix; private var croix2L:Croix2;

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
NO , ihaven't. I am only in a learning process of as3, so if you can help me importing a class On Mon, Mar 17, 2008 at 4:35 PM, Sidney de Koning [EMAIL PROTECTED] wrote: Have you tried importing the Mountain Class? Cheers, Sid On Mar 17, 2008, at 4:28 PM, Pedro Kostelec wrote: I

Re: [Flashcoders] Error #1009

2008-03-17 Thread Cory Petosky
Jonathan, that's actually legal in ActionScript. Ugly and misleading, but legal. Pedro, change Mountain2 to this: import flash.events.Event; import flash.display.Sprite; public class Mountain extends Sprite { private var color1:uint=0x003300; private

Re: [Flashcoders] Error #1009

2008-03-17 Thread Sidney de Koning
Just rewrite this: package { import flash.display.Sprite; import flash.events.Event; import flash.filters.*; public class RisingCroix extends Sprite { private var croix:Croix; to this: package { import flash.display.Sprite; import

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
I doesn't. I posted the iles on the net. Can you please throw a look at? http://www.box.net/shared/wettvhs84s Thanks On Mon, Mar 17, 2008 at 4:50 PM, Cory Petosky [EMAIL PROTECTED] wrote: Jonathan, that's actually legal in ActionScript. Ugly and misleading, but legal. Pedro, change

Re: [Flashcoders] Error #1009

2008-03-17 Thread Jason Van Cleave
you can't reference the stage in the Mountain class until it is added to the Display List. try this package { import flash.display.Sprite; import flash.events.Event; public class Mountain extends Sprite { private var x0:Number; private var y0:Number;

Re: [Flashcoders] Error #1009

2008-03-17 Thread jonathan howe
Hi, Cory, That is really interesting. I played with it a little and I got this Warning: Warning: 3553: Function value used where type void was expected. Possibly the parentheses () are missing after this function reference. and of course it threw an actual error when I set up the function with

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
Joson, i tried yours too. I had to add var x0:Number and so on... (The var was missing) But it hasn't worked neither. Well i get no more error but the sprite isn't drawn On Mon, Mar 17, 2008 at 5:14 PM, Jason Van Cleave [EMAIL PROTECTED] wrote: you can't reference the stage in the Mountain

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
I tried import Mountain; and import com.Mountain but it hasn't worked. Always get the same error I supose there is no path if the files are in the same folder,no? On Mon, Mar 17, 2008 at 5:15 PM, Sidney de Koning [EMAIL PROTECTED] wrote: Just rewrite this: package { import

Re: [Flashcoders] Error #1009

2008-03-17 Thread Sidney de Koning
I think that in AS3, there is only one file that can exsist in the 'root' of the package, the only entry point you have for a application. The rest has to live in packages. Most of the time you call this class 'Main'. And use it as your document class or instanciate it on the timeline,

Re: [Flashcoders] Error #1009

2008-03-17 Thread Sidney de Koning
Start tracing out the variables, because there is a variable undefined or null and you try to perform an operation on it. Since its undefined or null the operation halts. It can also be that your function init2 does not return void but returns a sprite. On Mar 17, 2008, at 5:47 PM, Pedro

Re: [Flashcoders] Error #1009

2008-03-17 Thread Jason Van Cleave
some typos in there (coding in gmail) public function onStageAdded(e:Event):void { x0 =0; y0 =stage.stageHeight -150; x1=stage.stageWidth/2; y1=100; x2 =stage.stageWidth; y2 =stage.stageHeight -150; init(); } On Mon, Mar 17, 2008 at 12:14 PM, Jason Van Cleave

Re: [Flashcoders] Error #1009

2008-03-17 Thread Steven Sacks
It is exceedingly rare that the compiler is telling you something is wrong that isn't. If you're getting an error thrown, like it or not, you made a mistake somewhere. Flash does what you tell it to do. Unfortunately, it's not always easy to figure out where the error is coming from if you

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
Jason IT WORKED Thanks to you and to all that took the time reply. // root folder: Main (- class files) package: com.something.Mountain (- class files) package: com.something.RisingCroix (- class files) // ISOrry don't really get it. Is com actually a file? On Mon, Mar 17, 2008 at 5:18 PM,