? Vegetable/term/tool
I am taking a Flash class and the teacher posed a question.
What is the vegetable/term/tool used in Flash? What does it do?
Can anyone help me out with this one? It's not for a quiz.
Tek-Tips > Adobe(Macromedia): Flash Forum
Posted on: 1 Apr 08 22:38
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Vegetable Tool? Owo
Hello there! Question question~:
What is the vegetable/term/tool used in Flash? What does it do?
Thanks in advance for your help :)
Daily Serving Of Vegetable
I am a student learning the basics of Flash, so bear with me. What is the vegetable/term/tool used in Flash?
What does it do? Your responses are appreciated.
Brush Tool And Eraser Tool Troubles
i've been using flash for over a year and a half and i've NEVER came across this problem.
when i go inside a movieclip to edit it, it won't let me use the brush tool or eraser.
unless i draw a circle around the area i want brushed or erased.
what the crap did i do?
keep in mind that it works normal when i'm on the main timeline.
thanks for any help!
-nolen
Don't Understand Term
I am new to FlashMX, but not to Flash. I need to know what an indentifier is and how it is used to transfer code from Flash 4
Can some one point the way to where I can find out on line--I have books but still don't understand it
THANKS
I Know What I Want To Do, But Don't Know The Correct Term...
here's what i want to do:
when i click on a button, i want something to slide out of it. (within the same swf file) how would i do that? my guess is to have it go to the frame, which would then be a motion tween...
can anyone give me a tutorial on flash kit, or explain to me themselves how to do this?
thanks!
A Term Is Undefined?
Well i get this error:
Code:
TypeError: Error #1010: A term is undefined and has no properties.
at tower_defense$iinit()
and when i trace before the second EventListener it executes the trace, but after it doesn't so the error must be in that line. But i just can't figure out what it is.
ActionScript Code:
public function tower_defense() {
addEventListener(Event.ENTER_FRAME,main_lvl);
path_main.tower1.addEventListener(MouseEvent.CLICK,add_tower);
}
Someone knows what is going on? Many thanks.
Help Finding A Term
Well I am in this class and each week we are suppose to find a term dealing with the new program we start and I was wondering if anyone could help?
Here's the question:
What is the vegetable term within Flash that enables you to view multiple frames at the same time?
Can anyone help, Thanks!
Veggie Term?
Within Flash, what is the vegetable term to follow/see the motion path an object is taking?
How do you turn this feature on & off?
Misunderstood Term
"A spacing of two" ???
if u still have no idea what im talking about its here
http://www.kirupa.com/developer/flash5/rayoflight2.htm
I think it might be letter, space, letter, space .... but I'm not sure
that ray of light project is very long and before i start it i want ot make sure im doing it right
thnx
Term For Effect / AS Alternate?
Hi -
I'm trying to figure-out how to do text that
slides/moves one after the other - similar to the
one here .
Is this all tweening? Or are diff. .swf's being loaded one
after the other?
Running MX2004 and would like to get this down...
Thanks,
El
Is Dynamic Scroll Bar The Correct Term ?
http://www.nadavkander.com/
Above is not my site.
But please visit to understand my question...
How can I achieve similar results as this?
Can anyone suggest a tutorial ?
Is dynamic scroll bar the correct term ?
I also would love to know how to control the fade of the buttons as you move away.
I'm using Flash MX.
Thanks
shaunos
[CS3] AS2.0 - What Is The Term For This Process In Flash ActionScript
I have a bunch of MC's with sequential names like
1new0...1new38
2new0...2new286
3new0...3new80
I can get the names of any of these, but what I need to do is chop them up so I might get just the last numbers of the name or the first numbers
eg.
2new0 - strip off "2new" and leave me with "0"
2new1 - strip off "new" and anything forward of it to leave me with "2"
I saw this done a while back and for the life of me I can't recall the function name. Can anyone help me?
Short-term Memory Game
Hey all,
Im in need of some pretty urgent help. Im trying to create a small game to help kids with dyslexia improve their short-term memory. I have come up with an idea based in a fictional school. Set outside a classroom the user must keep track of how many males or females enter and leave the classroom. This happens in two stages pupils enter the classroom then once inside some may decide to leave. At the end of these two stages the user is asked either how many males, females or both sexes are left in the classroom.
My problem is that although I am pretty experienced with flash I have never scripted a full game before. I have not really worked with variables in flash but have an idea what i want to do but not really the syntax.
I have created movie clips of a male entering a classroom, a female entering a classroom, a male exiting a classroom and a female exiting a classroom. No more than 5 males or 5 females can enter a room at any one time.
Here is some code I am using so far:
numberMaleEntered= Math.floor(Math.random() * (6 - 0)) + 0;
numberFemaleEntered= Math.floor(Math.random() * (6 - 0)) + 0;
// Creates a random number between 0-5 for males and females entered
numberMaleLeaving= Math.floor(Math.random() * (numberMaleEntered - 0)) + 0;
numberFemaleLeaving= Math.floor(Math.random() * (numberFemaleEntered - 0)) + 0;
// creates a random number between 0 - number of pupils entered for males and females leaving the class room(NOT SURE ABOUT SYNTAX HERE)
I am not really sure where to go after this. I have tried using a for loop to play the entering animations but I don't really think this is the right way of doing this. I am confused about how to get, for example the "male walking into the classroom" clip to play the number of times created by the random number script above.
Can someone please give me some guidance on where to go from here. I understand basic programming syntax and concepts but not really the syntax in actionscript. Any help would be much appreciated.
Thanks
mrstyles
[F8] Term Scramble-DropZone Issues
I'm having an Issue with a term scramble game I am making in Flash 8. There are two sets of seven movie clips, questions on the right and answers on the left. Between both sets is a row of 7 "DropZones" for the answers. On each movie clip containing a question or answer I have set up a respective Array containg all 14 terms and definitions, which the clips display the text in the Array (i.e.,Answer[1]=this.text="Soil".
It randomizes the terms and definitions like a charm, I'm just stuck on trying to figure out how to get the dropZone either to randomize with the question or answer (basically accept the term that has been randomized). I am in desperate need of help.
Thank You.
Is There A Definitive Actionscript 1.0 Term Dictionary Anywhere On The Net?
Hi all,
Just been lumped with loads of actionscript 1.0 to evaluate. Coming from a java background it's fair to say i need lots and lots of help.
Is there a definitive actionscript 1.0 term dictionary anywhere on the net? I am currently evaluating against the adobe AS dictionary at:
http://www.adobe.com/support/flash/a...pt_dictionary/
but i feel like that it is not rock solid.
Now onto something that's confusing me.
MovieClip has a '_height' and '_width'. but then other classes might have 'height' and 'width' (without underscores). Has something happened between AS1.0 and future versions that changed attribute names in the manner above?
For example in FListBox source code I see lines such as
v1.width = v1._width
and really have no clue what's going on with it.
Or am i looking at it the wrong way? Does (for example) setHeight and getHeight methods being present for an object mean that "height" is a property of an object (like javabeans kinda way), a sort of "inferred" variable?
Thanks,
J.
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?
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.
Is Dynamic Scroll Bar The Correct Term ?
http://www.nadavkander.com/
Above is not my site.
But please visit to understand my question...
How can I achieve similar results as this?
Can anyone suggest a tutorial ? I'm assuming action script is involved...
Is dynamic scroll bar the correct term ?
I also would love to know how to control the fade of the buttons as you move away.
I'm using Flash MX.
Thanks
shaunos
Fill Tool - THE MOST ANNOYING TOOL EVER
I'm trying to draw stuff, but the fill tool never works when I want it to. I try to fill something in, so I mess with the options till it works, but sometimes.. I CANT FILL IT IN AT ALL! Soo, then I have to do it manually which is really annoying. I CANT WORK LIKE THIS! Is there any way to make it not stupid?
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.. [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
Swap Depths - What Long Term Impact?
Hey... I'm playing around with a bit of code (for educations sake) that keeps putting an image in the depth above the last depth
aka:
...
this["slide1" + i].swapDepths(this.slideDepth++);
...
my question is this - if this was left to run for a long time would it? i dunnoh? run out of depths??? or have long term use performance issues?
what you reckon - anyone have an idea of how this would impact long term?
your thoughts coders....
Flash ActionScripting Training Courses (Long Term) NJ
Hi all just looking around the web to see if there are any colleges that offer ActionScripting courses like over the summer or anything but I cannot seem to find any classes that run past 3 days. Anyone know of any sites or schools that have long term classes?
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); } }}}
'Object-Orientated Programming', Can You Explain What This Means In ActionScript Term
I'm fairly competent at programming ActionScript but i've always been better at making things work than understanding technical jargon for why things work.
I'm applying for a job now that asks that I provide an example of my work that shows a 'strong grasp of Object-Orientated Programming'. My first guess was that all ActionScript shows OOP, but with a bit of looking into it I found it appears to relate more to loading AS files with classes.
I've done a little bit of work on this over the summer when reading up on animation for ActionScript 3.0, where the examples this book had used .as files with classes but these arn't my own work so I can't just hand them on.
I've tried reading wikipedia to get a good definition of OOP but again most of it reads like technical jargon.
What I want to know is if I were to create a new example myself what would it need to involve to show a 'strong grasp of Object-Orientated Programming'?
Resize Flash Menu -short Term Memory Fizzle
I remember when I was a boy, say in Flash MX or something. I got the entire clip to resize and it would make the content in my html page resize. And it was bad.
Now that I am a man with Flash CS3, and using Actionscript 2, I would like to resize my flash movie intentionally, letting the user choose how many rows they would like displayed. This would shift the content on the html page downward with each click, expanding the swf.
Now that I want it, I cannot remember how I did it when I didn't want it. Anyone help?
Line Tool/ Pen Tool
hello all i am obviously new to flash and my question is this. i want to be able to draw lines with the line tool and pen tool that do not have rounded edges. i want the edges to be flat with two sharp corners. is this at all possible using the line tool or pen tool? thank you.
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
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()
Object.prototype And The Term "generic Object Instance"
Hi,
I'm quite new to actionscript programming and programming in general so I apologize if this is a basic question.
I'm studying Object and Classes from Moock's ASDG:MX and along with several great posts from Senocular, some clarification by Robert Penner and external references I've listed below.
http://www.kirupa.com/developer/oop/index.htm
http://www.debreuil.com/docs/ch01_Intro.htm
http://timotheegroleau.com/Flash/art...cope_chain.htm
From Moock's explaination, a constructor function's prototype property contains a generic object but it's not clear if the generic object is also part of the prototype chain if properties have been defined within the generic object instance without ".prototype"
Here's more of what I mean about the scope chain from the bottom up:
Object.prototype
Product.prototype
Book.prototype
asGuide
BUT where I get confused if when the term "generic object instance" of each class comes into play.
It seems more like below from my understanding but I'm not certain.
Object
Object.prototype
Product's generic object
Product.prototype
Book's generic object
Book.prototype
asGuide
Does each new subclass you declare in the prototype chain also have an instance of a generic object? If so, during the lookup by the interpreter, does the chain check the generic instance for all subclasses or just the Top Level
generic Object class?
Thanks for any help.
Pen Tool
You know when you draw something with the pen tool, and then scale it smaller the lines start to bunch up and mess up the drawing.
Is there a way of keeping that from hapening?
Thanx!!!
The Pen Tool
When I use the pen tool in Illustrator, I have the option of creating lines, where the ends are sharp and boxy.
When I copy/paste into Flash 5, the ends of the lines turn soft and rounded. Is there any way to get the ends sharp and boxy?
If you need clarification of what I mean, I can send you a *.gif by email.
Thanks.
Using The Pen Tool
When I use the pen tool in Illustrator, I have the option of creating lines, where the ends of the lines (they call 'caps') are sharp and boxy.
When I copy/paste into Flash 5, the ends of the lines turn soft and rounded. Is there any way to get the ends sharp and boxy? I haven't used Flash 6 yet, but has this feature been added to Flash 6?
If you need clarification of what I mean, go to this page:
http://www.penque.com/tutorial.gif
|