ActionScript 3.0 :: Debugging Err1010 - Term Is Undefined?
Sep 5, 2010
I've been trying my hand at web applications for almost a year now and I've found this to be a really tough bug sometimes. Like a needle in a haystack. I use MonsterDebugger but it doesn't trace these kinds of error messages.
I have a function to create a datagridlist(myDataGridList) and user will be able to filter out the data when listener detect changes in an input textfield(txt_SEARCH_INPUT). But I always get this error when I type a letter in txt_SEARCH_INPUT.
So, I'm making a little gallery inside a movieclip so that I latter can put it in my website that is made in flash.
I made a folder (Portfolio), inside this folder I have 2 layer(actions, content). Inside actions I have only "stop();" and the content layer have the movieclip (gallery_mc). Inside this movieclip I made some buttons and have converted them to a movieclip too. Then I have 8 folders, each folder named differently (fotos, wallpapers, logos...) inside those I have 2 layer too, content and actions. Then I made 8 frame labels for each button and at last the layer called Actions that have all important code.
i am running into the error: "#1010: A term in undefined and has no properties."this is refering to the line:
trace ("btnLMain.langBoxS.name: " + btnLMain.langBoxS.name); but i dont understand how this could be as i have each of the above defined as shown here: var langBox:Shape = new Shape();
I was debugging my action and for some reason i keep getting that miniUrl is undefined when i clearly have made a variable for it can someone tell me why i keep getting this error and have do i fix it?
ActionScript Code: import caurina.transitions.*; var thumb_mc:thumbMC; var mini_mc:miniMC;
TypeError: Error #1010: A term undefined and does not feature. at index_fla::MainTimeline/onLoaded() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
ActionScript Code: var xmlPort:XML = new XML(); var xmlURL:String = "/portfolio.xml"; var xmlReq:URLRequest = new URLRequest(xmlURL); var xmlLoader:URLLoader = new URLLoader(xmlReq); [Code] .....
i have been taking lee brimelow's tut on scrolling images. the code works fine in a stand alone file, but not when i try to add it to an existing .fla file. i am getting the dreaded TypeError: Error #1010: A term is undefined and has no properties. at index_fla::scrollBox_8/frame1()
HERE IS THE CODE:
import caurina.transitions.*; var yOffset:Number; var yMin:Number = 0; var yMax:Number = sb.track.height - sb.thumb.height;
newb here trying to get my first fully functional flash site up and running. I've gotten almost everything done but suddenly when I debug my FLA I get an error:"TypeError: Error #1010: A term is undefined and has no properties.at rightsideoptics_fla::MainTimeline/frame1()"
I haven't deleted anything that I can tell, all of my MC's and BTNs are in place. I have all my functions defined before I'm calling them. Any ideas on what I'm doing wrong? I've dug through all the forums I can find but this error seems very generic so it doesn't help me diagnose my problem.
I created a about_mc, which works like a button. The button is placed on stage1. When I click it, I want it to call another movie from the library and play it. So code inside the about_mc button on frame 1: var dynAbout = textAbout(); addChild(dynAbout); It works fine up to here.
Now I would like to access the dynAbout, so I will add name to it: dynAbout.name="dynNameAbout";
Then accessing it like that: MovieClip(parent.root).dynNameAbout.x=300;
When I test it, I get the textAbout() movie added to the scene1 and its playing, but it pops up with an error: TypeError: Error #1010: A term is undefined and has no properties. at About/aboutDOWN()
I am developing a webpage in AS3 and I made a simple example for you to understand: [URL]. The pink is a movieclip button and the blue a movieclip with a tween when I push the button I want to move the tween but instead I get the error: TypeError: Error #1010: A term is undefined and has no properties. at error_fla::Symbol2_2/onclick()
in my movie i have to call frame 2 of foto_galleria movie that is on the root of the movie and it has the correct instance name foto_galleria.
I Always get Error #1010: A term is undefined and has no properties. when i click on the image that call the frame...
The movie clip that makes the call is in root -> Infinite Gallery -> Gallery Images and has a name of My Image 4, if you open it you can see that actionscript below in a layer and the bitmap that should be pressed in the other layer.
TypeError: Error #1010: A term is undefined and has no properties. at videoplayerpositions_fla::MainTimeline/getMetaInformation() at videoplayerpositions_fla::MainTimeline/sbit() at videoplayerpositions_fla::MainTimeline/stopDragging()
when i run my flash file (test it) in the output panel i get the following error
TypeError: Error #1010: A term is undefined and has no properties. i read some where, that this was caused because one of the variables is set to null. after looking at my code i found out that the following line was causing this output
arrSelectedIndex[i] = -1;
this is later on used as the selected index in a group of radio buttons.
it returns me a null. What is really bizarre is that if I execute both filters in sequence, the 2nd filter returning the XMLList now returns me a result. How can that be? What did the 1st filter do to make it work?
I don't think I need to use the HasOwnProperty method, since I am only interest in the Child node. Regardless, I tried it with no effect. One bizarre observation is that when I look at the XML in the expressions, it colors the <Child> and <Native> in red at somepoint, indicating that something has changed them.
I keep getting this error when the game is playing but can't find what is causing it i am hoping some one else can see what i am missing. I think it is at line 75 which i have marked.TypeError: Error #1010: A term is undefined and has no properties.at game_code/moveObjects()[G:Web Games Programminggamegame_code.as:75]
I am trying to create a gallery. I am having a problem coding the document class for a menu window ("galleryPane"), which is to be called into the Main class at runtime. In particular, I am encountering problems dynamically creating the thumbs container. I want the thumbs container to be accessible from both the galleryPane class and the Main gallery class [the galleryPane class will need to control thumbsContainer scrolling properties, and the Main class will load content into it].
I have an empty movieclip in the .fla library (with a class name of "All_thumbs" for exporting purposes). In my galleryPane class, I have created a new public instance of this (called "thumbsContainer") and have added that within the nested structure in the menu. However, when I call it in a later function to manipulate its movement, the undefined term error is thrown and I cannot understand why. Here is what I have in the galleryPane document class.
I am trying to build a simple accordion in AS3 based on Lee's tutorial in the November Layers Magazine: [URL] I just wanted to make it so that the cursor changed to indicate a mouse event when you mouse over the tab of the panels. So I've tried putting invisible movie clips (with their button mode on) and buttons on there, and it breaks the SWF every time.I'm sensing that the problem is that when the AS is looking for a mouseover event on that particular panel/mc, if it encounters even a child of that mc instead of the root clip, it doesn't like it.
but i dont understand how this could be as i have each of the above defined as shown here:
Code: var langBox:Shape = new Shape(); langBox.graphics.beginFill(0x000000, .75) langBox.graphics.drawRect(0, 0, bxW, bxH); //i have bxW and bxH defined earlier in my code langBox.graphics.endFill();
I've created a .flv just to test things out, see what I can do and so on, I created a drag and drop MC object, that works fine, I then created a Drop zone, but when I preview the movie and click the button that navigates to the frame that contains the drag and drop, I get this error: TypeError: Error #1010: A term is undefined and has no properties. at Testing_fla::MainTimeline/frame5() I was aiming to get the frame to change once the object is dropped into the zone, the movable object's instance name is orangebox and the dropzone's is circleHit
I'm trying to create a website in flashcs5 for a class project.Inside the project i have a movie clip which contains my menu buttons and I've placed that movie clip on the main timeline in scene1.I've used action script to link the buttons from the mc to the main timeline. All the buttons are working except the button "recommended". I keep getting this error:
TypeError: Error #1010: A term is undefined and has no properties. at dreamcatcher_fla::MainTimeline/frame1()
Here is the code in the actionscript:
Object(root).menu_mc.dreamcatchers_btn.addEventListener(MouseEvent.CLI CK, fl_dreamcatchers); function fl_dreamcatchers(event:MouseEvent):void{ gotoAndPlay("dreamcatchers");} Object(root).menu_mc.legend_btn.addEventListener(MouseEvent.CLICK, fl_legend);[code]....
I've double and triple checked all the instance names and there are no problems. The code for recommended is exactly the same as for all the other buttons so I don't understand what's going on.
I have a project due in a week, and I'm lost! I'm having a lot of troubles with action script since most of the project is based on self learning Part of the project is a game attached to an interactive representation of the blood components for children (it's a very minimal representation).The game consists of 4 objects, one of them is player controlled (WCell), and the other 3 are supposed to randomly fall -top to bottom-, the player gets points for "eating" the correct object(germs), and loses points for eating the wrong objects(tasiyot_MC & RCell_mc). I'm attaching the code here, hoping that someone in this huge forum could help me find out why am I receiving this error:
I have this simple sliding panel that is giving me an error. It worked when I had it in a separate .fla file but when I imported it to my project I can't get it to work anymore. It gives me the following error when I click on the panels: TypeError: Error #1010: A term is undefined and has no properties.This is the code:
Code: public function onClickPanel(e:MouseEvent):void { var clicked:MovieClip = MovieClip(e.target);[codew]....
when I run the debugger it points the error to this line
I'm getting this error when testing my movie which is stopping it from playing:-
TypeError: Error #1010: A term is undefined and has no properties. at Main/completeXML() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
I have a movie player that triggers lots of events (Slide2) throughtout and this has been working fine.Then added some navigation cue points (Jump1) just before each of the event cue points in the FLV (using Premier)So now the move plays fine and the first event cue point trigger the events it's supposed to.But using seekToNavCuePoint("Jump1") or when the moive plays past the cue points I get the following...
Reached cue point named Jump1TypeError: Error #1010: A term is undefined and has no properties. at Remote_fla::video1_2/cuePointListener() [code].....
Is there a problem using both navigation and event cue points in a movie?