Error #1010: A Term Is Undefined And Has No Properties - Useless Error Message
I hate runtime errors! ActionScript Code: TypeError: Error #1010: A term is undefined and has no properties. at Image/setImage() at Instructions/preNavigateCallback() at Instructions/nextSlide() The issue is that I deleted a movieclip from the stage, but the code referencing that clip was not changed.Why can't the error say something more useful, for example, including the line number, or the actual "term"? ActionScript Code: TypeError: Error #1010: A term is undefined and has no properties. at "container.guide.visible" at Image/setImage() : line 214 at Instructions/preNavigateCallback() : line 186 at Instructions/nextSlide() : line 103 Does anyone know why it is so damn vague!? I realise that maybe line numbers probably get lost once compiled, but these kinds of errors always cost me so much debugging time, and are very frustrating - is it impossible to provide the "term" though?.And does anyone have any good advice on how to avoid them, or track them down with the limited amount of info supplied?Many thanks,Dave
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 01-14-2009, 06:14 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Error #1010: A Term Is Undefined And Has No Properties.
Hello There.
Please look the code that follows:
ActionScript Code:
function geraExpo():Array {
for (var i:uint = 1; i<total+1; i++) {
req.url = "images/expo/"+i+".jpg";
addChild(superSprite);
var expo:Expo = new Expo();
var loader:Loader = new Loader();
expo.name = "expo"+i;
loader.name = "loader"+i;
loader.load(req);
expo.x = 39;
expo.img_mc.alpha = 0;
expo.barra_mc.alpha = 0;
addChild(expo);
expo.img_mc.addChild(loader);
expo_array[i] = getChildByName("expo"+i);
superSprite.addChild(expo_array[i]);
if (i==1) {
expo.y = 207;
} else {
expo.y = posY+121;
}
posY = expo_array[i].y;
expo_array[i].addEventListener(Event.ENTER_FRAME, checaPosition);
}
return expo_array;
}
geraExpo();
Everything is working fine. But I have to get the entire array to compare the event target at its y position to make some actions. The code follows:
ActionScript Code:
function checaPosition(evt:Event):void {
//trace("nome = "+evt.target.name+" y = "+evt.target.y);
if(evt.target.y!=207) {
Tweener.addTween(evt.target.img_mc, {alpha:0, time:.5, transition:"easeoutexpo"});
Tweener.addTween(evt.target.barra_mc, {alpha:0, time:.5, transition:"easeoutexpo"});
} else {
var stageW:int = stage.stageWidth;
Tweener.addTween(evt.target.img_mc, {alpha:1, time:.5, transition:"easeoutexpo"});
Tweener.addTween(evt.target.barra_mc, {alpha:1, time:.5, transition:"easeoutexpo"});
evt.target.barra_mc.width = stageW;
}
}
When I click a button, previous and next, the sprite object named superSprite flows up or down. But here is the problem. I can't compare the array elements y position because they are inside the Sprite object ans its coordinates don't change. So i'm trying to return the array but i can't get the array. Someone have any idea to solve this?
Thanks in advance.
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
This is just a friendly post for others who may be experiencing this error:
TypeError: Error #1010: A term is undefined and has no properties.
I came across this yesterday and pulled my hair out for an hour trying to figure out what it was referencing. With 400+ lines of code the ambiguous reference to a "term" isn't all that helpful.
What I found, and kick me for being an AS3 noob, was it actually had to do with that little eyeball icon on the symbols layer on the timeline. It seemed that by selecting the eyeball and turning some layers invisible in my symbol had the same effect as turning it into a guide layer in previous versions - thereby the symbol on that layer was not compiled and the references within my code to that symbol didn't know where to look cause the symbol wasn't there... (I guess I picked up the bad habit in previous versions of being able to "hide" stuff via the eyeball while working with composite layers and unless they were a guide layer they would publish just fine.)
hence the 'term' (probably my instance name) had no properties or wasn't defined cause it wasn't compiled.
Now there may be other reasons this error is generated but this was a simple solution to a confusing error that hopefully others might find useful quicker than I did.
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
hello friends,
I need to create a fullscreen enabled flv player but the problem is wen i edit the custom flv skin FLA and i get an error like this
"TypeError: Error #1010: A term is undefined and has no properties.
at SkinUnderAllharilal_fla::MainTimeline/SkinUnderAllharilal_fla::frame1()"
i want to avoid the captioning. And i want rearrange the controls and chenge the size.
but whenever i try to edit it it shows this message.
can any one help me..
regards
harilal
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
I am trying to create a menu that follows the mouse and expands when clicked.
For the following bit, I am using this code:
stop();
this.menu.addEventListener(Event.ENTER_FRAME, myMove)
function myMove(eventObject:Event) {
this.yChange = Math.round(this.Display.Object.ymouse-this.Display.Object.y);
this.xChange = Math.round(this.Display.Object.xmouse-this.Display.Object.x);
this.yMove = Math.round(this.yChange/20);
this.xMove = Math.round(this.xChange/20);
this.Display.Object.y += this.yMove;
this.Display.Object.x += this.xMove;
}
However, I tested the movie and when it reached the frame with the above code, it coughs up this in the output box, and repeats it endlessly until the test movie is closed:
TypeError: Error #1010: A term is undefined and has no properties.
at flash_Scene1_fla::MainTimeline/myMove()
I don't know what I can do?
Thanks in advance,
Sam
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
Hi i am currently designing a site an i am having a strage issue with the code. The way the site works is on the main SWF is an empty movieclip and all content is loaded into that, now i have designed some code to control the events, as it stands the program loads up the main section into the swf, then the code controls the buttons on that main SWf and looks for when they are clicked, if they are clicked it will execute another function and load that section up, at the moment i have only created 3 section as i have run into a coding error. When the main code is loaded it runs fine but as soon as i click on the "swf.paper2.websiteBttn" button i get this error:
ActionScript Code:
TypeError: Error #1010: A term is undefined and has no properties.
at MethodInfo-5()
and the Web section doesnt load up 1st time always sometimes it take 2 or 3 clicks until it loads and with each click i get that error. However i have tried to see if it is just the SWF section wthat is causing it by loading different SWF files in but the same error occurs, i dont understand where "MethodInfo-5()" is to solve the proble, my code is below and i hope someone can help??! thanks
ActionScript Code:
homeBttn.addEventListener(MouseEvent.CLICK, loadWeb);
function loadWeb(evt:MouseEvent):void {
var pageLoader:Loader = new Loader();
var pageURLReq:URLRequest = new URLRequest ( "pages/AS3 Portfolio Main.swf");
var swf:MovieClip;
pageLoader.load(pageURLReq);
pageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
function imageLoaded(evt:Event):void {
holder.addChildAt(pageLoader.content, 1 );
holder.removeChildAt(2);
swf = evt.target.content;
var button:MovieClip = swf.paper2.websiteBttn;
button.addEventListener(MouseEvent.CLICK, openWeb);
}
function openWeb(e:Event):void {
var pageLoader:Loader = new Loader();
var pageURLReq:URLRequest = new URLRequest ( "pages/AS3 Portfolio Web.swf");
var swf:MovieClip;
pageLoader.load(pageURLReq);
pageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
function imageLoaded(evt:Event):void {
trace("Content Loaded");
holder.addChildAt(pageLoader.content, 1 );
//trace("Content Loaded 2");
holder.removeChildAt(2);
//trace("Content Loaded 3");
swf = evt.target.content;
var button:MovieClip = swf.web2.pacBttn;
button.addEventListener(MouseEvent.CLICK, openPac);
}
function openPac(evt:MouseEvent):void {
var pageLoader:Loader = new Loader();
var pageURLReq:URLRequest = new URLRequest ( "pages/AS3 Portfolio Pac Images.swf");
var swf:MovieClip;
pageLoader.load(pageURLReq);
pageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
function imageLoaded(evt:Event):void {
holder.addChildAt(pageLoader.content, 1 );
holder.removeChildAt(2);
}
}
}
}
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
I am trying to loop through and get the frame names 0-3 and I keep getting the following error:
frames0
TypeError: Error #1010: A term is undefined and has no properties.
at gallery2_loop_fla::MainTimeline/dataOK()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader:nComplete()
This is my code.
ActionScript Code:
function dataOK(myevent:Event):void {
//loop
for (var i:int = 0; i < 4; i ++) {
var myXML:XML=new XML(galleryLoader.data);
var imgloader=new Loader();
var fName:String ="frames" + i ;
trace(fName);
imgloader.load(new URLRequest(myXML.pix[i]));
mcPanel.fName.pic.addChild(imgloader);
}
}
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
New to this form, I'm working on a photo/text rotator and everything is displaying properly, but I'm getting some weird errors in the Output area. Not sure what it is.
Here is the code.
XML CODE ///
HTML Code:
<cycler>
<slides>
<item name="Package your stay!"
grid="1"
caption="Want to golf while you are here? Celebrating a special date? Or just looking for a great value…We have a package for you!"
img="assets/img/3.jpg" url="http://flashden.net/user/seifip?ref=seifip"
links="Link Name here"
/>
<item name="Photo Name"
grid="0"
caption="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
img="assets/img/1.jpg" url="http://flashden.net/user/seifip?ref=seifip"
links="Link Name here"
/>
<item name="Photo Name"
grid="0"
caption="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
img="assets/img/2.jpg" url="http://flashden.net/user/seifip?ref=seifip"
links="Link Name here"
/>
<item name="Photo Name"
grid="0"
caption="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
img="assets/img/4.jpg" url="http://flashden.net/user/seifip?ref=seifip"
links="Link Name here"
/>
<item name="Photo Name"
grid="0"
caption="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
img="assets/img/5.jpg" url="http://flashden.net/user/seifip?ref=seifip"
links="Link Name here"
/>
</slides>
</cycler>
ActionScript Code:
//University Inn Banner Rotator
//drakecooper.com
//*************** Init ***************//
import gs.TweenLite;
import gs.TweenFilterLite;
import fl.motion.easing.*;
import fl.transitions.*;
import fl.transitions.easing.*;
//************* Variables *************//
var slidesNum:Number = 0;
var slidesCur:Number = 0;
var nameArr:Array = new Array();
var descArr:Array = new Array();
var linksArr:Array = new Array();
var timer:Timer = new Timer(6000); //rotates the quote every 2 seconds for 100 times
timer.addEventListener(TimerEvent.TIMER, onTimer);//add a listener to the timer
timer.start(); // start the timer
//masks
cnt.mask = cntMsk;
//show hand cursor on the photo
cnt.buttonMode = true;
ui.clickHereBtn.buttonMode = true;
ui.mouseEnabled = true;
//*************** XML ***************//
function onContentXMLLoad(event:Event):void {//content.xml loaded
var contentXML:XML = new XML(event.target.data);
contentXML.ignoreWhitespace = true;
slidesNum = contentXML.slides.item.length();
for (var i:int = 0; i<slidesNum; i++) {
//Set the title, description and url
nameArr.push(contentXML.slides.item[i].@name);
descArr.push(contentXML.slides.item[i].@caption);
linksArr.push(contentXML.slides.item[i].@url);
//load image
var slideLoader = new Loader();
slideLoader.load(new URLRequest(contentXML.slides.item[i].@img));
slideLoader.x = 590*i;
cnt.addChild(slideLoader);
}
ui.nameTxt.text = nameArr[0];
ui.descTxt.text = descArr[0];
ui.linksTxt.text = linksArr[0];
}
var contentXMLLoader:URLLoader = new URLLoader();
contentXMLLoader.addEventListener(Event.COMPLETE, onContentXMLLoad, false, 0, true);
contentXMLLoader.load(new URLRequest("content.xml"));//load content.xml
//************* Functions *************//
//slide to the next/prev photo
function slideIt():void {
TweenLite.to(cnt, 1, {alpha:0, onComplete:fadeInSlide, ease:Regular.easeOut});
ui.nameTxt.text = nameArr[slidesCur];
ui.descTxt.text = descArr[slidesCur];
ui.linksTxt.text = linksArr[slidesCur];
}
function fadeInSlide():void {
cnt.x = slidesCur*-590;
TweenLite.to(cnt, 1, {alpha:1});
}
function onTimer(te:TimerEvent):void {
if(slidesCur<slidesNum-1) {
slidesCur++;
}else{
slidesCur = 0;
}
slideIt();
}
//on ">" click
//function onNextClick(event:MouseEvent):void {
//if (slidesCur<slidesNum-1) {
//slidesCur++;
//} else {
//slidesCur = 0;
//}
//slideIt();
//}
//on "<" click
//function onPrevClick(event:MouseEvent):void {
//if (slidesCur>0) {
// slidesCur--;
//} else {
// slidesCur = slidesNum-1;
//}
// slideIt();
//}
//on photo click
function onSlideClick(event:MouseEvent):void {
navigateToURL(new URLRequest(linksArr[slidesCur]));
}
//************** Events **************//
//ui.nextBtn.addEventListener(MouseEvent.CLICK, onNextClick, false, 0, true);
//ui.prevBtn.addEventListener(MouseEvent.CLICK, onPrevClick, false, 0, true);
cnt.addEventListener(MouseEvent.CLICK, onSlideClick, false, 0, true);
ui.clickHereBtn.addEventListener(MouseEvent.CLICK, onSlideClick, false, 0, true);
The error I'm getting is this.
TypeError: Error #1010: A term is undefined and has no properties.
at universityinn_fla::MainTimeline/onContentXMLLoad()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
TypeError: Error #1010: A term is undefined and has no properties.
at universityinn_fla::MainTimeline/slideIt()
at universityinn_fla::MainTimeline/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Thanks,
ms
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
Hi.
I am getting a
"TypeError: Error #1010: A term is undefined and has no properties.
at accessories_fla::MainTimeline/startScripts()
at accessories_fla::MainTimeline/loade()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
"
I dont have a lot of experience in AS3, and after what i found out about this error, it is not easy to pinpoint the cause. However, I hope someone here can point me in the right direction.
Thanks a lot!
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
Hi,
if someone can explain me this...
my piece of code....
and the error Iam getting
TypeError: Error #1010: A term is undefined and has no properties.
at Untitled_fla::MainTimeline/Untitled_fla::frame1()
For some reason the error is on the trace line... please HELP me, I am getting mad... it should trace a1,b1,c1... what's wrong?
var haha:Array = new Array();
haha.push(new Array("a","a1","a2"));
haha.push(new Array("b","b1","b2"));
haha.push(new Array("c","c1","c2"));
var cnt:Number = 0;
for each (cnt in haha)
{
trace(haha[cnt][1]);
cnt++;
}
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
I am getting "TypeError: Error #1010: A term is undefined and has no properties." Why can't the Flash IDE print out the object that is supposedly undefined? In my case, it seems defined. Is Flash mocking at me?
Including this statement "active_row = row_id;" gives the error. But when I trace the individual values, they print fine with errors whatsoever.
This is driving me mad!
Edited: 06/28/2007 at 08:06:40 AM by whatisavaile
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
hello friends,
I need to create a fullscreen enabled flv player but the problem is wen i edit the custom flv skin FLA and i get an error like this
"TypeError: Error #1010: A term is undefined and has no properties.
at SkinUnderAllharilal_fla::MainTimeline/SkinUnderAllharilal_fla::frame1()"
i want to avoid the captioning. And i want rearrange the controls and chenge the size.
but whenever i try to edit it it shows this message.
can any one help me....
regards
harilal
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
Please help,
TypeError: Error #1010: A term is undefined and has no properties.
at Tbutton()[C:ProjectsIP PanelTbutton.as:23]
at Panel_fla::0_1/frame1()[Panel_fla.0_1::frame1:5]
Below is the constructor from a class which I instantiate in button symbols. Line 23 is marked. It calling a function from a class which is instantiated on the main timeline. I am passing the root reference to the constructor. I could not figure out how to reference the panel.RegListeners any other way.
It all works fine when debugging inside CS3 but when deployed and tested using the debug flash player fails with the above error
public function Tbutton(_this,_stage):void
{
holder = _stage;
button = _this;
// holder.dispatchEvent(new PanelEvents(PanelEvents.STATE_CHECK, port, channel, ""));
23. holder.panel.RegListeners(button);
trace("Holder= " + holder)
trace("Button= " + button)
RegListeners(button);
getParameters();
} // end constructor
holder and _stage are the typecasted root MovieClip(root) which are passed to the constructor.
the function that is being called is below it is in a class which is instantiated on the main timeline:
public function RegListeners(sender:MovieClip)
{
sender.addEventListener(PanelEvents.BUTTON_PUSH, buttonPush);
sender.addEventListener(PanelEvents.BUTTON_RELEASE , buttonRelease);
}
Thank in advance
Matt
TypeError: Error #1010: A Term Is Undefined And Has No Properties.
Hi i am currently designing a site an i am having a strage issue with the code. The way the site works is on the main SWF is an empty movieclip and all content is loaded into that, now i have designed some code to control the events, as it stands the program loads up the main section into the swf, then the code controls the buttons on that main SWf and looks for when they are clicked, if they are clicked it will execute another function and load that section up, at the moment i have only created 3 section as i have run into a coding error. When the main code is loaded it runs fine but as soon as i click on the "swf.paper2.websiteBttn" button i get this error:
ActionScript Code:
TypeError: Error #1010: A term is undefined and has no properties. at MethodInfo-5()
and the Web section doesnt load up 1st time always sometimes it take 2 or 3 clicks until it loads and with each click i get that error. However i have tried to see if it is just the SWF section wthat is causing it by loading different SWF files in but the same error occurs, i dont understand where "MethodInfo-5()" is to solve the proble, my code is below and i hope someone can help??! thanks
ActionScript Code:
homeBttn.addEventListener(MouseEvent.CLICK, loadWeb);function loadWeb(evt:MouseEvent):void { var pageLoader:Loader = new Loader(); var pageURLReq:URLRequest = new URLRequest ( "pages/AS3 Portfolio Main.swf"); var swf:MovieClip; pageLoader.load(pageURLReq); pageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded); function imageLoaded(evt:Event):void { holder.addChildAt(pageLoader.content, 1 ); holder.removeChildAt(2); swf = evt.target.content; var button:MovieClip = swf.paper2.websiteBttn; button.addEventListener(MouseEvent.CLICK, openWeb); } function openWeb(e:Event):void { var pageLoader:Loader = new Loader(); var pageURLReq:URLRequest = new URLRequest ( "pages/AS3 Portfolio Web.swf"); var swf:MovieClip; pageLoader.load(pageURLReq); pageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded); function imageLoaded(evt:Event):void { trace("Content Loaded"); holder.addChildAt(pageLoader.content, 1 ); //trace("Content Loaded 2"); holder.removeChildAt(2); //trace("Content Loaded 3"); swf = evt.target.content; var button:MovieClip = swf.web2.pacBttn; button.addEventListener(MouseEvent.CLICK, openPac); } function openPac(evt:MouseEvent):void { var pageLoader:Loader = new Loader(); var pageURLReq:URLRequest = new URLRequest ( "pages/AS3 Portfolio Pac Images.swf"); var swf:MovieClip; pageLoader.load(pageURLReq); pageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded); function imageLoaded(evt:Event):void { holder.addChildAt(pageLoader.content, 1 ); holder.removeChildAt(2); } }}}
Error #1010: A Term Is Undefined
I keep getting this error in this function:
ActionScript Code:
private function search(e:Event):void { if (searchtxt.text) { searchResults_ar.splice(0); var searchCriteria:String = searchtxt.text.toLowerCase(); for (var i:int = 0; i< searchStrings_ar.length; i++) { var index = searchStrings_ar[i].toLowerCase().indexOf(searchCriteria); if (index > -1) { searchResults_ar.push(i + 1); } } if (searchResults_ar.length != 0) { // Clear the list component slideList.removeAll(); for (var k:int = 0; k < searchResults_ar.length; k++) { var j = searchResults_ar[k]; var slideTitle = xmlList[j].Title; var slideID = xmlList[j].@id; slideList.addItem({label:j + ". " + slideTitle, data:slideID}); } } else { trace("nothing found"); } } }
and I cannot figure it out! Everything compiles fine, the function even works the way it is suppose to, but every time I hit my search button, I get this error:
ActionScript Code:
TypeError: Error #1010: A term is undefined and has no properties. at Vforum/::search()
Do you guys see anything that might be causing this?
TypeError: Error: #1010: A Term Is Undefined.. [AS3]
Hello,
So, with a recent switch to AS3, learning a bit better about events and other stuff, I decided to port my A* Pathfinder from AS2 to AS3, and at the end of things I get the following error during runtime: "TypeError: Error #1010: A term is undefined and has no properties", I've been looking through the class a couple of times, and I'm probably blind, so I'm asking for your help Improvement suggestions are welcome aswell
ActionScript Code:
package { import flash.events.Event; import flash.events.EventDispatcher; import flash.geom.Point; public class Pathfinder extends EventDispatcher { private const _dirs:Array = [ {x:0, y:-1},{x:1, y:-1},{x:1, y:0},{x:1, y:1}, {x:0, y:1},{x:-1, y:1},{x:-1, y:0},{x:-1, y:-1} ]; private var cost_diag:int = 14; private var cost_orth:int = 10; private var grid:Array = []; private var openList:Array = []; private var closedList:Array = []; private var finalPath:Array = []; private var start:pathBlock; private var goal:pathBlock; public var available:Boolean = true; public function Pathfinder():void {}; public function findPath(g:Array, s:Point, goal:Point):void { this.start = new pathBlock(s.x, s.y); this.goal = new pathBlock(goal.x, goal.y); for(var i:uint = 0;i<g.length;i++){ grid[i] = []; for(var j:uint = 0;j<g[i].length;j++){ grid[i][j] = new pathBlock(j, i, 0, 0, null, g[i][j].w); } } openList.push(this.start); addEventListener("nextPath", eventHandler); checkAdjacentBlocks(openList_next()); } public function getPath():Array { return finalPath; } private function eventHandler(evt:Event):void { if(evt.type == "nextPath"){ var block:pathBlock = openList_next(); if(block != goal){ checkAdjacentBlocks(block); } else { optimizePath(); } } } private function optimizePath():void { var c:pathBlock = goal; while(c != start){ finalPath.push(new Point(c.x, c.y)); c = grid[c.y][c.x].p; } dispatchEvent(new Event("pathCompleted")); } private function checkAdjacentBlocks(block:pathBlock):void { for(var i:uint = 0;i<_dirs.length;i++){ var x:uint = block.x + _dirs[i].x; var y:uint = block.y + _dirs[i].y; var g:uint = (_dirs[i].x == 0 || _dirs[i].y == 0)? block.g + cost_orth : block.g + cost_diag; if(grid[y][x] != undefined){ if(grid[y][x].w){ if(closedList_exists(grid[y][x])){ if(!openList_updateCondition(grid[y][x])){ grid[y][x].update(x, y, g, manhatCost(grid[y][x], goal), block); openList.push(grid[y][x]); } } } } } openToClosed(block); dispatchEvent(new Event("nextPath")); } private function openToClosed(block:pathBlock):void { for(var i:uint = 0;i<openList.length;i++){ if(openList[i] == block){ if(i > 0){ var tmp:pathBlock = openList[i]; openList[i] = openList[0]; openList[0] = tmp; } closedList.push(openList.shift()); break; } } } private function closedList_exists(block:pathBlock):Boolean { for(var i:uint = 0;i<closedList.length;i++){ if(closedList[i] == block){ return true; break; } } return false; } private function openList_next():pathBlock { var n:pathBlock = openList[0]; for(var i:uint = 1;i<openList.length;i++){ n = (n.f < openList[i].f)? n : openList[i]; } return n; } private function openList_updateCondition(block:pathBlock):Boolean { for(var i:uint = 0;i<openList.length;i++){ if(openList[i] == block){ if(openList[i].g < block.g){ openList[i].p = block.p; } return true; break; } } return false; } private function manhatCost(start:pathBlock, goal:pathBlock):int { return cost_orth * ( Math.abs(start.x - goal.x) + Math.abs(start.y - goal.y) ); }; };};class pathBlock { public var x:uint; public var y:uint; public var g:int; public var h:int; public var f:int; public var p:pathBlock; public var w:Boolean; public var v:uint; public function pathBlock(x:uint, y:uint, g:int = 0, h:int = 0, p:pathBlock = null, w:Boolean = true, v:uint = 0):void { update(x, y, g, h, p); this.w = w; this.v = v; }; public function update(x:uint, y:uint, g:int, h:int, p:pathBlock):void { this.x = x; this.y = y; this.g = g; this.h = h; this.f = g + h; this.p = p; };};
P.S: I don't know if this would actually be anything close to real A* either, this is my interpretation of it
Error - Undefined Term Has No Properties
I'm trying to program a couple of sliders; this error is coming up and I can't fix it because I don't know what it means ... Can you help me get rid of this error?
This is the slider code I'm using -
//sliders
var dragging:Boolean = false;
var rectangle:Rectangle = new Rectangle (0,0,100,0);
var rotate_mc;
var zoom_mc;
rotate_mc.rotateKnob_mc.addEventListener(MouseEven t.MOUSE_DOWN, dragIt);
zoom_mc.zoomKnob_mc.addEventListener(MouseEvent.MO USE_DOWN,dragIt);
stage.addEventListener(MouseEvent.MOUSE_UP, dropIt);
function dragIt(event:MouseEvent):void{
event.target.startDrag (true);
}
function dropIt(event:MouseEvent):void{
if(dragging){
rotate_mc.rotateKnob_mc.stopDrag();
zoom_mc.zoomKnob_mc.stopDrag();
dragging = false;
}
rotate_mc.rotateKnob_mc.startDrag(false,rectangle) ;
zoom_mc.zoomKnob_mc.startDrag(false,rectangle);
dragging = true;
This is the output error I get (no compiler errors); ind302_Katie_project_v5 is the file's name -
TypeError: Error #1010: A term is undefined and has no properties.
at ind302_Katie_project_v5_fla::MainTimeline/ind302_Katie_project_v5_fla::frame1()
Thanks,
Katie.
Error 1010....what Is Undefined?
This is really strange. I've got a button symbol on stage with an instance name of aboutUs_btn. My code on my AS layer is:
this.aboutUs_btn.addEventListener(MouseEvent.MOUSE _DOWN, about);
function about(evt:MouseEvent):void {
this.wipe_mc.gotoAndPlay(2);
this.gotoAndStop("history");
head.unload();
}
And then I test the movie and get this error and it makes no sense to me.
TypeError: Error #1010: A term is undefined and has no properties.
at main1_fla::MainTimeline/about()
What's weird is I tried this in another .fla and it didn't bring up the error. That makes no sense. They've both got Publish Settings for AS3/FL9
Error #1010: Something Is Undefined, But I Won't Tell You Which.
TypeError: Error #1010: A term is undefined and has no properties.
at EKG1_fla::MainTimeline/EKG1_fla::frame2()
OK, I've narrowed possibilities by sliding code keyframes, and now only have a couple hundred lines of code to guess at by comment out trial and error.
Anyone know a way for Flash to be more specific.
(like the app programmers couldn't foresee any value is passing the offending term)
Error #1010: Something Is Undefined, But I Won't Tell You Which.
TypeError: Error #1010: A term is undefined and has no properties.
at EKG1_fla::MainTimeline/EKG1_fla::frame2()
OK, I've narrowed possibilities by sliding code keyframes, and now only have a couple hundred lines of code to guess at by comment out trial and error.
Anyone know a way for Flash to be more specific.
(like the app programmers couldn't foresee any value is passing the offending term)
Error #1010 Message, But All Seems To Work Fine
I keep getting the below error, sometimes. It seems as if I press the button to quick and its in the middle of the 'on' animation I get it. Everything works fine though. I have three button all using the same function when pressed. Any ideas how to get rid of it? Should I just forget about trying to use it and stick with a var? If so instead of using parent to set a var located on my maintimeline how should I address it? MovieClip(this.parent).myVar=false; or is there a better way to do it?
What pops up once its in a browser window:
Code:
TypeError: Error #1010: A term is undefined and has no properties.
at KXTG5634M_GUI_fla::MainTimeline/checkClick()
I've never usd currentLabel, maybe Im using it wrong:
ActionScript Code:
function checkClick(event:MouseEvent):void {
var myName:String=event.target.name;
if (step_1_mc[myName].check_mc.currentLabel=="on") {
step_1_mc[myName].check_mc.gotoAndStop("off");
} else {
step_1_mc[myName].check_mc.gotoAndPlay("on");
}
}step_1_mc.check_1.buttonMode=true;
step_1_mc.check_2.buttonMode=true;
step_1_mc.check_3.buttonMode=true;
step_1_mc.check_1.addEventListener(MouseEvent.CLICK, checkClick);
step_1_mc.check_2.addEventListener(MouseEvent.CLICK, checkClick);
step_1_mc.check_3.addEventListener(MouseEvent.CLICK, checkClick);
Error #1010: "a Term Is..."
i'm not meaning to ask how to fix this problem, but rather, is there a way to figure out which term "a term" is? the output panel doesn't give me enough info to fix it... or would i have to dig through the code, needle-in-the-hay-stack style to find that term?
ActionScript Code:
TypeError: Error #1010: A term is undefined and has no properties.
at MethodInfo-164()
at MethodInfo-148()
Error Message ? Error #2044: Unhandled IoError:. Text=Error #2032:
Can anyone give me any advise on why in safari 3 and firefox i am getting this error:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.nayomusic.com/music/1.mp3
URL: http://www.nayomusic.com/home
The error occurs when a any link is clicked on from within homepage
If anyone has got any idea why this error occurring then this would be much appreciated
Thanks
Jon
Simple Error Opening URL Error Message?
Hey All,
I'm sure this is a really easy question but why does this happen when testing the movie?
I have set the permission to read and write but for some reason there is an error opening the file why does this happen and what do I need to do to fix it?
thanks for you help
stefan
Error 1010
OK I am tring to learn actionscript 3.0 and it seems what used to be a few lines of code is now a huge chunk. There are a few things are preventing me from going forward that I need to clearn up
1. This seems to work perfect for my buttons
Code:
//Mouse Event Listeners
home_mc.addEventListener(MouseEvent.MOUSE_OUT, fadeOut);
home_mc.addEventListener(MouseEvent.MOUSE_OVER, fadeIn);
home_mc.addEventListener(MouseEvent.CLICK, goPage);
portfolio_mc.addEventListener(MouseEvent.MOUSE_OUT, fadeOut);
portfolio_mc.addEventListener(MouseEvent.MOUSE_OVER, fadeIn);
portfolio_mc.addEventListener(MouseEvent.CLICK, goPage);
resume_mc.addEventListener(MouseEvent.MOUSE_OUT, fadeOut);
resume_mc.addEventListener(MouseEvent.MOUSE_OVER, fadeIn);
resume_mc.addEventListener(MouseEvent.CLICK, goPage);
contact_mc.addEventListener(MouseEvent.MOUSE_OUT, fadeOut);
contact_mc.addEventListener(MouseEvent.MOUSE_OVER, fadeIn);
contact_mc..addEventListener(MouseEvent.CLICK, goPage);
//Mouse Functions
function fadeIn(event:MouseEvent):void
{
switch (event.target)
{
case home_mc:
if(linkSelected == homeSelected_mc)
{
return;
}else{
inTween = new Tween (homeSelected_mc,"alpha",None.easeNone, homeSelected_mc.alpha, 1, 1, true);
return;
}
case portfolio_mc:
if(linkSelected == portfolioSelected_mc)
{
return;
}else{
inTween = new Tween (portfolioSelected_mc,"alpha",None.easeNone, portfolioSelected_mc.alpha, 1, 1, true);
return;
}
case resume_mc:
if(linkSelected == resumeSelected_mc)
{
return;
}else{
inTween = new Tween (resumeSelected_mc,"alpha",None.easeNone, resumeSelected_mc.alpha, 1, 1, true);
return;
}
case contact_mc:
if(linkSelected == contactSelected_mc)
{
return;
}else{
inTween = new Tween (contactSelected_mc,"alpha",None.easeNone, contactSelected_mc.alpha, 1, 1, true);
return;
}
}
}
function fadeOut(event:MouseEvent):void
{
switch (event.target)
{
case home_mc:
if(linkSelected == homeSelected_mc)
{
return;
}else{
outTween = new Tween (homeSelected_mc,"alpha",None.easeNone, homeSelected_mc.alpha, 0, 1, true);
return;
}
case portfolio_mc:
if(linkSelected == portfolioSelected_mc)
{
return;
}else{
outTween = new Tween (portfolioSelected_mc,"alpha",None.easeNone, portfolioSelected_mc.alpha, 0, 1, true);
return;
}
case resume_mc:
if(linkSelected == resumeSelected_mc)
{
return;
}else{
outTween = new Tween (resumeSelected_mc,"alpha",None.easeNone, resumeSelected_mc.alpha, 0, 1, true);
return;
}
case contact_mc:
if(linkSelected == contactSelected_mc)
{
return;
}else{
outTween = new Tween (contactSelected_mc,"alpha",None.easeNone, contactSelected_mc.alpha, 0, 1, true);
return;
}
}
}
function goPage(event:MouseEvent):void
{
//Mouse Events
switch (event.target)
{
case home_mc:
if(linkSelected == homeSelected_mc)
{
return;
}else{
outTween = new Tween (linkSelected,"alpha",None.easeNone, linkSelected.alpha, 0, 1, true);
linkSelected = homeSelected_mc;
return;
}
case portfolio_mc:
if(linkSelected == portfolioSelected_mc)
{
return;
}else{
outTween = new Tween (linkSelected,"alpha",None.easeNone, linkSelected.alpha, 0, 1, true);
linkSelected = portfolioSelected_mc;
return;
}
case resume_mc:
if(linkSelected == resumeSelected_mc)
{
return;
}else{
outTween = new Tween (linkSelected,"alpha",None.easeNone, linkSelected.alpha, 0, 1, true);
linkSelected = resumeSelected_mc;
return;
}
case contact_mc:
if(linkSelected == contactSelected_mc)
{
return;
}else{
outTween = new Tween (linkSelected,"alpha",None.easeNone, linkSelected.alpha, 0, 1, true);
linkSelected = contactSelected_mc;
return;
}
}
}
BUT when I add the code trans("home"); in the else statement for home_mc case can calls this function
Code:
function trans(loc:String):void
{
trace(loc);
var trans:PageTransition = new PageTransition();
contentLoader_mc.addChild(trans)
contentLoader_mc.trans.x = 5;
contentLoader_mc.trans.y = 60;
}
the page transition comes in and play great, the only thing is i get this error..
home
TypeError: Error #1010: A term is undefined and has no properties.
at main_fla::MainTimeline/trans()
at main_fla::MainTimeline/goPage()
[CS3] Error #1010
Hopefully this will be an easy question. Im trying to use a button (that is in lower level movie clip) to gotoAndStop() a movie clip in another lower movie clip. think my problem is in the path to the other clip (but I used the “insert target mode’ to get the relative path)
This is what I have on the button
Code:
stop();
function clickButton(evt:Event):void {
trace("the " + evt.target.name + " button was clicked");
gotoAndPlay(2);
this.shore_cable.gotoAndPlay(1);
}
Connect_Shore.addEventListener(MouseEvent.MOUSE_DOWN,clickButton);}
I also have a “Trace(this name);” on the movie clip “shore_cable” that I want to control
The below shows that the button was clicked and that the shore_cable is a correct movie clip.
I do not get a compiler error but the animation does not work and I get this the output note:
shore_cable
the Connect_Shore button was clicked
TypeError: Error #1010: A term is undefined and has no properties.
at controlpanel_test_fla::Shore_button_3/clickButton()
any ideas? anyone? thank you in advance for your consideration
p.s. i did a search and found a lot of information on the #1010 but i could not figure out my problem
Error #1010...
I am loading external text files into a dynamic text field called html_txt. I tried this piece of code alone in a separate flash file, and it worked fine. Now I am using it in a slideshow and I get the following error message:
TypeError: Error #1010: A term is undefined and has no properties.
at MethodInfo-227()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
I understand it's telling me that my variable is undefined... But could someone explain to me why it has become a mistake? And in this case, what do I do to make it work again?
THANKS A ZILLION!!!
Code:
ActionScript Code:
stage.addEventListener(MouseEvent.CLICK, clickButton);
function clickButton(e:MouseEvent):void {
switch (e.target) {
case this.contentHolder.content2.b1 :
loadText(new URLRequest("text1.html"));
break;
case this.contentHolder.content2.b2 :
loadText(new URLRequest("text2.html"));
break;
case this.contentHolder.content2.b3 :
loadText(new URLRequest("text3.html"));
break;
case this.contentHolder.content2.b4 :
loadText(new URLRequest("text4.html"));
break;
}
}
function loadText(myrequest:URLRequest) {
var txt_load:URLLoader = new URLLoader();
txt_load.load(myrequest);
txt_load.addEventListener(Event.COMPLETE, textready);
this.contentHolder.content2.html_txt.scrollV = 1;
function textready(event:Event) {
this.contentHolder.content2.html_txt.htmlText = event.target.data;
}
}
loadText(new URLRequest("text1.html"));
addChild(this.contentHolder.content2.html_txt);
Error #1010
Code:
TypeError: Error #1010: A term is undefined and has no properties.
at Star_Raider/checkForHits()
This is the error i get and its kind of annoying me because i don't understand how it can have no properties.
Code:
public function checkForHits(event:Event) {
for (var bulletNum:int=bullets.length - 1; bulletNum >= 0; bulletNum--) {
for (var enemieNum:int=enemies.length - 1; enemieNum >= 0; enemieNum--) {
if (bullets[bulletNum].hitTestObject(enemies[enemieNum].target)) {
enemiesHit++;
enemies[enemieNum].deleteEnemy();
bullets[bulletNum].deleteBullet();
score+=scoreINC;
//break;
}//Ends if
if (enemies[enemieNum] != null && player.hitTestObject(enemies[enemieNum].target)) {
enemies[enemieNum].deleteEnemy();
numLives--;
}//Ends if
}//Ends For
}//Ends for
for (var enemieNum2:int=enemies.length - 1; enemieNum2 >= 0; enemieNum2--) {
for (var ebTest:int = enemies[enemieNum2].eBullets.length - 1; ebTest >= 0; ebTest--) {
if (enemies[enemieNum2].eBullets[ebTest] != null && player.hitTestObject(enemies[enemieNum2].eBullets[ebTest])) {
numLives--;
enemies[enemieNum2].removeBullets(enemies[enemieNum2].eBullets[ebTest]);
}
}
}
if (numLives <= 0) {
gameover();
}
}//Closes checkForHits
eBullets are the bullets the enemy fire, the array is located in the enemy class
bullets and enemies are 2 arrays in the main class
If anyone can help me locate the bug it'd be awesome
AS3: Error #1010
The setup:
The maintimeline has an MC with an IN of "step_1_mc"
inside that MC there are three identical BTN_MC's named: check_1, check_2, and check_3
On the maintimeline you will find all the code below.
Problem:
Everything works.... but once in awhile I get the following error:
quote:true
false
undefined
TypeError: Error #1010: A term is undefined and has no properties.
at KXTG5634M_GUI_fla::MainTimeline/checkClick()
As you can see right beofre I get it it suddenly traces undefined. How do I fix this?
Attach Code
var check_1_On:Boolean = false;
var check_2_On:Boolean = false;
var check_3_On:Boolean = false;
//=====
function checkClick(event:MouseEvent):void {
var myName:String=event.target.name;
trace(this[myName+"_On"]);
if (this[myName+"_On"]==false) {
step_1_mc[myName].check_mc.gotoAndPlay("on");
} else {
step_1_mc[myName].check_mc.gotoAndStop("off");
}
this[myName+"_On"]= !this[myName+"_On"];
}
//==========
step_1_mc.check_1.buttonMode=true;
step_1_mc.check_2.buttonMode=true;
step_1_mc.check_3.buttonMode=true;
step_1_mc.check_1.addEventListener(MouseEvent.CLICK, checkClick);
step_1_mc.check_2.addEventListener(MouseEvent.CLICK, checkClick);
step_1_mc.check_3.addEventListener(MouseEvent.CLICK, checkClick);
Edited: 10/23/2007 at 08:34:50 AM by >Vee<
Error Msg 1010 :(
hi guys,
im strugging with an error message that seems somewhat irrational! I have code that uses a for loop through an array which contains children from an external XML file. I've used trace statements to pin-point the error to the for loop line. After a swift google of the error code, alot of other people expereince this with for loops. I've made sure I subtract 1 from the length to account for the for loop begining from 0 but this still doesnt work.
Any help would be appretiated greatly, many thanks in advance!
madz
TypeError: Error #1010: A term is undefined and has no properties.
at worksatuni_fla::MainTimeline/completeLoading()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
Attach Code
var recipe:XMLList = recipe_xml.recipe.(@ID == clickedbutton);
var measuresList:XMLList = recipe.measure;
var quantitysList:XMLList = recipe.quantity;
var ingredientsList:XMLList =recipe.ingredient;
var numberOfIngredients:int = recipe_xml.recipe.(@ID == clickedbutton).ingredient.length()-1;
trace(numberOfIngredients);
for (var i:int=0; i<numberOfIngredients; i++) {
quantitysList = recipe[i].quantity;
measuresList = recipe[i].measure;
ingredientsList = recipe[i].ingredient;
ingredients_box.text+= quantitysList[i] + " " + measuresList[i] + " " + ingredientsList[i];
}
Error #1010
hi, am new here and probably this problem has been listed more than once, but i couldnt find an answer...so i hope some one can help me.
am doing a smiple menu, not using anything complex, its a movie clip containing some buttons, when i click in a buttoin i want it to take me to another scene,..please find the code down the post.
will the thing is that every thing goes nice but when i clikc the button that is going to make the movei clip work it gives me this error:
"TypeError: Error #1010: A term is undefined and has no properties.
at beta_fla::mcMenu_60/frame40()"
now i tried to write it like this:
root.Menu_mc.case1_btn....etc
the error i get is this:
"1119: Access of possibly undefined property Menu_mc through a reference with static type flash.display:DisplayObject."
now if i wrote the code like this:
this.case1_btn.etc / case1_btn.etc
i get the following error when clicking on the case1_btn insede the Menu_mc/other errors i get them without clicking on the case1_btn button:
"ArgumentError: Error #2108: Scene ConvexLens Image 1 was not found.
at flash.display::MovieClip/gotoAndStop()
at beta_fla::mcMenu_60/GCVLI1()"
i named everything that is on the stage i have written the scene name correctly, i just cant figure out what is wrong.
thanks
PS: am using AS3.0
Attach Code
stop();
//GCVLI1: Go to ConVexLens 1
this.Menu_mc.case1_btn.addEventListener(MouseEvent.CLICK, GCVLI1)
/*this.case2_btn.addEventListener(MouseEvent.CLICK, GCVLI2)
this.case3_btn.addEventListener(MouseEvent.CLICK, GCVLI3)
this.case4_btn.addEventListener(MouseEvent.CLICK, GCVLI4)
this.case5_btn.addEventListener(MouseEvent.CLICK, GCVLI5)*/
function GCVLI1(event:MouseEvent):void
{
gotoAndStop("ConvexLens Image 1","ConvexLens Image 1");
}
Edited: 04/27/2008 at 07:40:36 AM by Abu Alhija
Error #1010
hi,
i have an error im struggling with help please
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()
Error #1010: Another Tought Day:(
Another code of mine. I'm tierd of those kind of errors. If anyone can help me.
Quote:
TypeError: Error #1010: A term is undefined and has no properties.
at OS_fla::MainTimeline/OS_fla::frame1()
PHP Code:
//********************* CLOCK *****************\
var timer:Timer = new Timer(1000);
timer.addEventListener(TimerEvent.TIMER, timerevent);
function timerevent(event:TimerEvent)
{
var time = new Date();
var seconds = time.getSeconds();
var minutes = time.getMinutes();
var hours = time.getHours();
clock_mc.clock_txt.text = hours + ":" + minutes + ":" + seconds;
}
timer.start();
//______________________CLOCK________________________\
//*************** WINDOWS AND FOLDERS *******************\
var window:window_mc = new window_mc();
var dclick:Number = 1;
var clickTimer:Timer = new Timer(1000);
var newFolder:folder_mc = new folder_mc();
var addFolderWindow:addFolder_mc = new addFolder_mc();
addChild(newFolder);
newFolder.name = "My Computer";
newFolder.folder_txt.text = newFolder.name;
clickTimer.addEventListener(TimerEvent.TIMER, checkClickTime);
newFolder.addEventListener(MouseEvent.CLICK, startWindow);
function checkClickTime (event:TimerEvent):void
{
dclick = 1;
}
function startWindow (event:MouseEvent):void
{
if(dclick == 2)
{
addChild(window);
window.name = event.target.name + "Window";
window.windowName_txt.text = event.target.folder_txt.text;
window.windowName_txt.selectable = false;
dclick = 1;
}
else
{
dclick++;
clickTimer.start();
}
}
window.dragTraka_mc.addEventListener(MouseEvent.MOUSE_DOWN, windowStartDrag);
window.windowName_txt.addEventListener(MouseEvent.MOUSE_DOWN, windowStartDrag);
window.dragTraka_mc.addEventListener(MouseEvent.MOUSE_UP, windowStopDrag);
window.windowName_txt.addEventListener(MouseEvent.MOUSE_UP, windowStopDrag);
function windowStartDrag(event:MouseEvent):void
{
window.startDrag();
}
function windowStopDrag (event:MouseEvent):void
{
window.stopDrag();
}
window.windowX_mc.addEventListener(MouseEvent.CLICK, windowClose);
function windowClose (event:MouseEvent):void
{
var closeThis = event.target.parent.name;
removeChild(getChildByName(closeThis));
}
//**************************** Taskbar ******************************\
//************* Menu *********\
var taskbarMenuPopUp:taskbarMenuPopUp_mc = new taskbarMenuPopUp_mc();
var menuTimer:Timer = new Timer(2000);
var addNewFolderWindow:addFolder_mc = new addFolder_mc();
wholeTaskbar_mc.taskbarMenu_mc.addEventListener(MouseEvent.MOUSE_OVER, menuRollOver);
menuTimer.addEventListener(TimerEvent.TIMER, menuRemove);
wholeTaskbar_mc.taskbarMenu_mc.addEventListener(MouseEvent.MOUSE_OUT, menuRollOut);
function menuRemove(event:TimerEvent):void
{
wholeTaskbar_mc.taskbarMenu_mc.removeChild(taskbarMenuPopUp);
}
function menuRollOver (event:MouseEvent):void
{
wholeTaskbar_mc.taskbarMenu_mc.addChild(taskbarMenuPopUp);
}
function menuRollOut (event:MouseEvent):void
{
menuTimer.start();
}
wholeTaskbar_mc.taskbarMenu_mc.taskbarMenuPopUp.addNewFolder_mc.addEventListener(MouseEvent.CLICK, addNewFolder);
function addNewFolder (event:MouseEvent):void
{
addChild(addNewFolderWindow);
}
And yea, if there is any trick/hack how to know what makes error, please tell me. 'Cos i loose a lot of mine and yours time.
TypeError: Error #1010
I'm new to this forum so greetings all!
I got this fine looking error earlier and cant find the actual caus for it.
The error didnt show up until i added the mc's in foodStore_mc.
TypeError: Error #1010: A term is undefined and has no properties.
at Main$iinit()
Code:
package{
import flash.display.MovieClip;
import flash.text.TextField;
import flash.display.SimpleButton;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.utils.Timer;
public class Main extends MovieClip{
//new timers//
var hungerTimer:Timer = new Timer(1000, 0);
var hygieneTimer:Timer = new Timer(10000, 0);
//tamagotchi values//
var tamaName:String;
var happyness:uint = 50;
var hunger:uint = 0;
var toilet:uint = 0;
var anger:uint = 0;
var hygiene:uint = 100;
var life:uint = 100;
//food//
var wantedFood:int;
var foodCookie:Boolean; //random 1
var foodChicken:Boolean; //random 2
var foodPizza:Boolean; //random 3
var foodChineese:Boolean; //random 4
public function Main(){
//Timers//
hungerTimer.addEventListener(TimerEvent.TIMER, timerHunger);
hungerTimer.start();
hygieneTimer.addEventListener(TimerEvent.TIMER, timerHygiene);
hygieneTimer.start();
//buttons//
games_btn.addEventListener(MouseEvent.CLICK, onGames);
games_mc.back_btn.addEventListener(MouseEvent.CLICK, onBack);
foodStore_btn.addEventListener(MouseEvent.CLICK, onStore);
foodStore_mc.back_btn.addEventListener(MouseEvent.CLICK, onBack);
dmg_btn.addEventListener(MouseEvent.CLICK, onDmg);
//movieclips//
games_mc.visible = false;
foodStore_mc.visible = false;
foodStore_mc.iWantCookie_mc.visible = false;
foodStore_mc.iWantChicken_mc.visible = false;
foodStore_mc.iWantPizza_mc.visible = false;
foodStore_mc.iWantChineese_mc.visible = false;
hunger_mc.width = hunger;
anger_mc.width = anger;
happyness_mc.width = happyness;
toilet_mc.width = toilet;
}
////////////////////////
// BUTTONS //
////////////////////////
public function onGames(event:MouseEvent){
games_mc.visible = true;
hungerTimer.stop();
hygieneTimer.stop();
}
public function onStore(event:MouseEvent){
wantedFood = Math.round(Math.random()* 3 +1);
if(wantedFood == 1){
foodStore_mc.iWantCoockie_mc.visible = true;
}else if(wantedFood == 2){
foodStore_mc.iWantChicken_mc.visible = true;
}else if(wantedFood == 3){
foodStore_mc.iWantPizza_mc.visible = true;
}else if(wantedFood == 4){
foodStore_mc.iWantChineese_mc.visible = true;
}
foodStore_mc.visible = true;
hungerTimer.stop();
hygieneTimer.stop();
}
public function onBack(event:MouseEvent){
games_mc.visible = false;
foodStore_mc.visible = false;
foodStore_mc.iWantCookie_mc.visible = false;
foodStore_mc.iWantChicken_mc.visible = false;
foodStore_mc.iWantPizza_mc.visible = false;
foodStore_mc.iWantChineese_mc.visible = false;
hungerTimer.start();
hygieneTimer.start();
}
public function onDmg(event:MouseEvent){
if(life <= 0){
trace("Game Over");
}else{
life -= 1
life_mc.width = life;
trace(life);
}
}
////////////////////////
// TIMERS //
////////////////////////
public function timerHunger(event:TimerEvent):void {
if(hunger == 100){
hungerTimer.stop();
trace();
}else{
hunger += 1;
hunger_mc.width = hunger;
}
}
public function timerHygiene(event:TimerEvent):void {
hygiene -= 2;
hygiene_mc.width = hygiene;
}
}
}
Dont be afraid to post. Thanks
Edit: I noticed that the code is a little bit out of place. But its still readable.
//ref
Error 1010 Driving Me Mad Pls Help..
Hi Guys,
Could anyone pls help, i have spent 3 hours trying to solve this and i really dont know what to do!
I have an xml image accordion and i want to add url to each image...
I keep getting an undefined error #1010!
I have an xml file:
Code:
<?xml version="1.0" ?>
<menu>
<settings>
<itemAlphaNormal>0.7</itemAlphaNormal>
<itemAlphaRollOver>0.3</itemAlphaRollOver>
<animationSpeedAlpha>0.5</animationSpeedAlpha>
<animationSpeedItems>0.8</animationSpeedItems>
<itemActiveAlpha>0</itemActiveAlpha>
</settings>
<item id="1">
<itemLabel>Families</itemLabel>
<url>content/pictures/image1.jpg</url>
<itemText>http://www.google.co.uk</itemText>
</item>
<item id="2">
<itemLabel>The Gardens</itemLabel>
<url>content/pictures/image2.jpg</url>
<itemText>http://www.google.co.uk</itemText>
</item>
<item id="3">
<itemLabel>Steam Railway</itemLabel>
<url>content/pictures/image3.jpg</url>
<itemText>http://www.google.co.uk</itemText>
</item>
<item id="4">
<itemLabel>Steam Railway</itemLabel>
<url>content/pictures/image4.jpg</url>
<itemText>http://www.google.co.uk</itemText>
</item>
</menu>
and i am trying to call the itemText url from a button in the swf:
Code:
itemMC.infoTexthitArea.addEventListener(MouseEvent.CLICK, function(e:MouseEvent) {
var url:String = items_Array[i].itemText;
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
}
catch (e:Error) {
trace("Error occurred!");
}});
Using this array:
Code:
for(var i:int = 0; i < itemLength; i++){
//___________________________Save Item Label, Url, Text
var item = new Object();
item.itemLabel = xml_document.item[i].itemLabel.text();
item.itemUrl = xml_document.item[i].url.text();
item.itemText = xml_document.item[i].itemText.text();
items_Array[i] = item;
It works fine if i just add an 'id' to the url string i.e '1' however if 'i' is inserted i get this error:
TypeError: Error #1010: A term is undefined and has no properties.
at MethodInfo-123()
Does anyone know the reason for this?
Thanks
TypeError: Error #1010
hello,
i keep getting this error:
TypeError: Error #1010: A term is undefined and has no properties.
at jxcs_index_fla::mov_galleryMenSs0708_5/loadMainImage()
and it appears to be happening in this function:
function loadMainImage(event:MouseEvent):void {
deActivateRollOver();
var imageRequest:URLRequest = new URLRequest(imageArray[0]);
event.target.imageHolder.load(imageRequest);
}
this is the line of code i use to set the listener:
galleryImage00_mc.addEventListener(MouseEvent.CLIC K, loadMainImage);
the strange thing is that if i change "event.target" in the function to "galleryImage00_mc" it works perfectly. But i need to use event.target so i can use the function for others.
Any help would be appreciated.
Thanks
Ben
TypeError: Error #1010, Why?
What am i doing wrong in this piece of code:
ActionScript Code:
private function ladenVanThumbnails() {
for (var i:int = 0; i<thumbSpreadArray.length; i++) {
selectBox = new Shape();
selectBox.graphics.clear();
selectBox.graphics.lineStyle(2, 0x000000, 1, false, LineScaleMode.VERTICAL, CapsStyle.NONE, JointStyle.MITER, 10);
selectBox.graphics.drawRect(thumbBreedte, 0, thumbBreedte, thumbHoogte);
selectBox.graphics.endFill();
selectBoxMC = new MovieClip();
selectBoxMC.addChild(selectBox);
thumbSpreadArray[i].addChild(selectBoxMC);
//
var thumbLoadL:Loader = new Loader();
thumbLoadL.load(new URLRequest(thumbURL+thumbSpreadArray[i].links+".jpg"));
thumbLoadL.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, thumbnailLaden);
thumbSpreadArray[i].addChild(thumbLoadL);
}
}
private function thumbnailGeladen(evt:Event):void {
var thisLdr:Loader = LoaderInfo(evt.currentTarget).loader as Loader;
var thisMC:MovieClip = thisLdr.parent;
thisMC.addEventListener(MouseEvent.CLICK,clickthumb);
thisMC.addEventListener(MouseEvent.ROLL_OVER,rollOverthumb);
thisMC.addEventListener(MouseEvent.ROLL_OUT,rollOutthumb);
}
private function rollOverthumb(evt:MouseEvent) {//rollover
trace("rollover "+evt.currentTarget.id);
DisplayObject(evt.target).selectBoxMC.alpha = .5;
}
I'm trying to make the border around the thumbnails change when i rollover the thumbnail with the mouse. But whatever i try, i get the following error message:
ActionScript Code:
TypeError: Error #1010: A term is undefined and has no properties.
at com.iternity.pflp.pages::PageflipPage/rollOverthumb()
What am i doing wrong?
Type Error #1010
This is the synopsis. I'm attempting to convert an application built in AS2 to an AIR application, therefore I have to first convert it to AS3. I'm having one hell of a time too. I can not find out where this error is, or even what it is.. Hopefully someone can shed some light on the situation. Thank you. Error below.
TypeError: Error #1010: A term is undefined and has no properties.
at conceptAppNewApproachAIR_fla::MainTimeline/xmlLoaded()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
Timeline Error 1010
hello. i finally got this thing to pop up using addchild, but now it is returning "timeline error #1010: A term is undefined and has no properties.
at SLE1_fla::MainTimeline/misspop() "
can anyone tell me why this is happening? the movieclip that is loading is supposed to contain a button that closes it (which is not currently working), and i'm not sure if that's interfering? thank you for your help!
Attach Code
stop();
//main loads//
function Main () {
//put eventlisteners here//
mission_btn.addEventListener(MouseEvent.CLICK, misspop);
}
Main ();
var newPopup:Popup = new Popup()
//functions//
function misspop (e:MouseEvent): void {
newPopup.x = 150;
newPopup.y = 100;
this.addChild(newPopup);
this.close_btn.addEventListener (MouseEvent.CLICK, misshide);
}
function misshide (e:MouseEvent) : void {
this.removeChild(newPopup);
}
Error #1010 Re: Layer Name
In a class I am loading a multi-layered movieclip (MC) that sits in the library by using its linkage (MCL):
PHP Code:
var myMc = new MCL();
Once I have the movieclip loaded, I want to make the "Invisible" layer invisible until later. So I use...
PHP Code:
myMc.Invisible.visible = false;
This results in:
TypeError: Error #1010: A term is undefined and has no properties.
at MyClass/::init()
at flash.display:DisplayObjectContainer/addChild()
at visibleLayer_fla::MainTimeline/visibleLayer_fla::frame1()
I've seen this work in tutorials but I cannot get it to work myself. Any suggestions?
Thanks!
Flash CS3: Error #1010
I am working on a banner swf for the side of a webpage and having some trouble. I am trying to send pictures back and forth on the screen, and change the pictures while they are offscreen, since there will be only two picture floaters moving about at one time. However, I am getting an error now when I try to run the thing. The runtime output is as follows:
Quote:
TypeError: Error #1010: A term is undefined and has no properties.
at pictureframe/switchit()
at pix/choose()
at pix/frame1()
None of my object have more than one frame, since the whole project is in as3, so you can ignore that bit. Also I should note that I am using the TweenLite tweening engine. It's entirely possible this is a very simple mistake as I have no formal coding experience and rely mostly on tutorials. Here is the code from the involved items:
Code:
/*
My moving picture object. This object(pix) is
created at the stage level in frame 1, layer 2,
along with several other, stable objects. This
symbol creates an instance of pictureframe(next code box).
I took the tweening code for this from another section
of the project that works with no errors, so I believe it
is unrelated. Also, the integer num is currently set to 2 for
testing purposes, but will later be a random number
between 0-8.
*/
import fl.transitions.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.utils.Timer;
import flash.events.TimerEvent;
import gs.TweenLite;
var rnum:Number = new Number(1);
var pf:pictureframe = new pictureframe();
pf.x = 0;
var num:int = 2;
addChild(pf);
choose();
function choose():void
{
pf.switchit(num);
pf.y = ((Math.random()*620)+4);
rnum = (Math.random()*10);
if ((rnum % 2) < 1) {
goRight(); }
else {
goLeft(); }
}
function goRight():void
{
pf.x =(-12);
TweenLite.to(pf, 12, {x:404, ease:None.easeOut, delay:(Math.random()*5), onComplete:choose});
}
function goLeft():void
{
pf.x =(404);
TweenLite.to(pf, 12, {x:-12, ease:None.easeOut, delay:(Math.random()*5), onComplete:choose});
}
Code:
/*
This is the symbol named pictureframe.
It was made to handle the switching of
pictures. There are 9 pictures in jpeg
format that have been added o symbols
named accordingly. All involved symbols
have been exported for actionscript etc.
*/
var pic_1:pic1 = new pic1();
var pic_2:pic2 = new pic2();
var pic_3:pic3 = new pic3();
var pic_4:pic4 = new pic4();
var pic_5:pic5 = new pic5();
var pic_6:pic6 = new pic6();
var pic_7:pic7 = new pic7();
var pic_8:pic8 = new pic8();
var pic_9:pic9 = new pic9();
var picArray = new Array(pic_1, pic_2, pic_3, pic_4, pic_5, pic_6, pic_7, pic_8, pic_9);
var last:int = -1;
function switchit(x:int):void
{
if (last > -1)
{
removeChild(picArray[last]);
}
addChild(picArray[x]);
last = x;
}
I played around with the flash debugger and found that when the switchit function is actually run, the picture objects in the array are still null. I do not know why, but it would appear that they are created before switchit is called, but not initialized properly? Thankyou for taking the time to read this far. If you have any idea what I am doing wrong, please let me know!
TypeError: Error #1010: ..WHY?
Hello, I'm just starting with AS3 and am confused by this error:
TypeError: Error #1010: A term is undefined and has no properties.
at com.
It occurs when I don't remove an event listener that is called for Event.COMPLETE. I am building an app that loads external (local) swf files. When they complete loading, unless i remove the event listener for Event.COMPLETE within the handler function, it calls that error.
Thats fine with me, but I just want to understand what's going on.
Thanks.
Stucked With Error #1010
Hi,
Since I am new here and in an AS3, I would like to say hi first before I trough you my problem
I was trying to figure it by myself - no luck at all... So I hope someone here will be able to help me out. Well, I am working in Flash CS3 and I am trying to access parent layer through buttons within the movie. I am getting the following error:
TypeError: Error #1010: A term is undefined and has no properties.
at mytry_fla::pageGroup_22/onJackClick()
my code for this button is:
Code:
jack_btn.addEventListener(MouseEvent.CLICK,onJackClick);
function onJackClick(e:MouseEvent):void
{
this.content_mc.gotoAndPlay("jack");
}
What is missing? Please, help me!
Weird Error Without Any Error Message
I've been working on some actionscript 3 system. And all of a sudden, it wouldn't execute anymore. When I pushed CTRL-Enter in Flash CS3, a white screen would open up (instead of the normal flash program) and no trace-output would be given.
Three hours later I found the cause of this weird problem. It's (simplified) the line:
var value:Number = -(true ? 1 : 0); // This one doesn't work.
Put this line in your script, and your entire program won't execute. And without any error message! I was wondering, why is that? By the way, the following lines do work:
var a:Number = -(2*3+4); // Gives -10.
var b:Number = (true ? 1 : 0); // Gives 1.
var c:Number = -b; // Gives -1.
var d:Number = 0-(true ? 1 : 0); // Gives -1.
var e:Number = -((true ? 1 : -1) as Number);
So, my guess is that the code (true ? 1 : 0) gives some sort of data type which is not a Number, and therefore doesn't except minus signs. But that wouldn't explain why it doesn't even give an error. So what IS wrong with it?
Error #1010 Because Of Slow Processing?
Hi, I am new to actionScript, so please bear with me.
I have two issues...
First problem, I am getting an intermittent error #1010 A Term is Undefined and has no Properties.
It loads the XML and I have the event listener for that, but then I have it create an array, figure out how many elements the array has, and then choose a random element based on the number of elements. I believe I am getting the error because sometimes it tries to load the image into the uiloader before an image has been chosen. I think I need an eventListener to listen for when the random image has been chosen, but I have no idea how to do go about doing that. Do I dispatchEvent?? I have no clue.
And, second, Once the random image is chosen, I need to access the index of that element from my fla file. When I trace randomNumber (or passId) within the custom class, I get the correct (actual) index, but when I trace passId from my fla file, it always traces as "0".
My question... is there any way to pass the actual index from the randomUILoader class to my fla file without it setting it as 0 index?
ActionScript Code:
package {
import fl.containers.UILoader;
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;
public class RandomUILoader extends UILoader {
private var dataURL:String;
private var uilImage:UILoader;
private var image:String;
private var xmlLoader:URLLoader;
public var passId:Object;
public function RandomUILoader(passedURL:String):void {
uilImage=new UILoader ;
uilImage.setSize(250,250);
this.dataURL=passedURL;
xmlLoader=new URLLoader ;
xmlLoader.load(new URLRequest(dataURL));
xmlLoader.addEventListener(Event.COMPLETE,initImageViewer);
addChild(uilImage);
}
public function initImageViewer(event:Event):void{
var productsXML:XML=new XML(xmlLoader.data);
var value:String;
var item:XML;
var image:String;
var aImages:Array=new Array;
for each (item in productsXML.category.item) {
if (item.hasOwnProperty("@id") > 0) {
image="thumbs/" + item.@id + "_00_med.jpg";
aImages.push({source:image});
}
var length:uint=aImages.length;
}
var randomNumber:uint;
for (var i:Number=0; i < length; i++) {
randomNumber=Math.floor(Math.random() * length) + 1;
}
passId = randomNumber;
value=aImages[randomNumber].source;
// trace(passId);
uilImage.source=value;
}
}
}
Any and all help is greatly appreciated!
Error 1010 With NetStream & Video
The last line of my code is generating the following error:
Code:
TypeError: Error #1010: A term is undefined and has no properties.
I'm not sure what the problem is.
[code]var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStrem(nc);
var vid:Video = new Video(640,480);
photo.player.addChild(vid);
photo.player.vid.attachNetStream(ns);
ns.play("demo.flv");
WordSearch Game Error #1010 - Can't Find It
Hey guys!
I can't find the cause of this error:
TypeError: Error #1010: A term is undefined and has no properties.
at WordSearch/:laceLetters()
at WordSearch/startWordSearch()
at WordSearch_fla::MainTimeline/startAgain()
at WordSearch_fla::MainTimeline/finishedHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at WordSearch/::foundWord()
at WordSearch/::checkWord()
at WordSearch/::mouseRelease()
Flash docs says:
1010 The override attribute may be used only on class property definitions. You cannot use the override keyword within a function block.
The funny thing is, the app runs through once, no problem, at the end of the second time round, when it tries to start again, it throws this error.
Here's my FLA code:
ActionScript Code:
import com.matbury.LoadXML; // handles the XML loading.
var url:String = "commonobjects.xml";
var wordsearch:WordSearch;
var loader:LoadXML = new LoadXML(url);
var xmlWords:Array = new Array();
loader.addEventListener(LoadXML.LOADED, loadedHandler);
loader.addEventListener(LoadXML.FAILED, failedHandler);
function loadedHandler(event:Event):void {
loader.removeEventListener(LoadXML.LOADED, loadedHandler);
loader.removeEventListener(LoadXML.FAILED, failedHandler);
var xml:XML = loader.xml;
for each(var temp:XML in xml..word){
xmlWords.push(temp);
}
starter();
}
function failedHandler(event:Event):void {
trace("LoadXML failed");
}
function finishedHandler(event:Event):void {
startAgain();
}
function starter():void {
wordsearch = new WordSearch(xmlWords);
addChild(wordsearch);
wordsearch.startWordSearch();
wordsearch.x = stage.stageWidth / 2 - (wordsearch.width / 2);
wordsearch.y = stage.stageHeight / 2 - (wordsearch.height / 2);
wordsearch.addEventListener(WordSearch.FINISHED, finishedHandler);
}
function startAgain():void {
wordsearch.removeEventListener(WordSearch.FINISHED, finishedHandler);
removeChild(wordsearch);
wordsearch = null;
wordsearch = new WordSearch(xmlWords);
addChild(wordsearch);
trace(xmlWords); // traces the full array each time round
wordsearch.startWordSearch();
wordsearch.x = stage.stageWidth / 2 - (wordsearch.width / 2);
wordsearch.y = stage.stageHeight / 2 - (wordsearch.height / 2);
wordsearch.addEventListener(WordSearch.FINISHED, finishedHandler);
}
Dynamic Text Box Giving Me Error #1010
Here's my code:
ActionScript Code:
var xmlList:XMLList;
var mcLoader:Loader;
var slideNum:Number = 0;
var xml:XML = new XML();
var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("inventors.xml"));
loader.addEventListener(Event.COMPLETE,
function(evt:Event):void {
xml = XML(evt.target.data);
xmlList = xml.children();
trace(xmlList);
name_txt.text = xml.image[slideNum].@name.toString();
}
);
name_txt is a dynamic text box that I have setup on the main timeline that I'm hoping to display text from an XML file.
Here is my error:
TypeError: Error #1010: A term is undefined and has no properties.
at MethodInfo-1()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
any ideas?
Weird Error #1010: I Found A Solution But...
I just want to share this strange problem I had with flash. Basically I was applying some filters to a XML var. In flash everything worked well but on Internet it gave me this error:
Code:
TypeError: Error #1010: A term is undefined and has no properties.
After changing the way to apply the filter the problem was gone
Old
HTML Code:
for (var r:Number = rowMin;r<=rowMax;r++){
rowMC += myRows.groups[r].movie
}
New
HTML Code:
rowMC = myRows.groups.((@num >= rowMin) && (@num <= rowMax)).movie;
Both do the same.
What happened? I have no idea. The import is it is working well now
|