ActionScript 3.0 :: Make A Minigame With Dialogues TypeError: Error #1010?
Nov 1, 2011
I'm trying to make a minigame with dialogues. There's this thief which you caught and when you talk to him you have to choose the right dialogue answers so he doesn't freak out. I'm doing this with movieclips (and turning them into buttons with A.S. so I can make them fade in and out when you click on it). So to give you an example it looks like this:
(Button: Hi there) Click on it -> Dialogue fades out with alpha.......... New dialogue fades in with alpha and you're able to pick another option.
I've done this before and it worked all the time but when I tried it again today it starting bugging on me. I'm referring from one button to the other button with this code:
Object(root).level4.balkdialooglevel2.dialooglevel 23.gotoAndStop(2);
I checked every symbol and they all have the correct instance name. Symbol level4 has the instance name Level4, symbol balkdialooglevel2 has the instance name balkdialooglevel2 and so forth. But when I test it and click on the button, it gives me this error:
TypeError: Error #1010: A term is undefined and has no properties.
I don't know what I'm doing wrong. Perhaps ActionScript didn't load the symbols yet when I'm trying to refer to it?
View 9 Replies
Similar Posts:
Jan 15, 2011
I have strange error which i tried to fix all day but with no result. The application is working fine in debug modus, but after I uploaded it to my server it throws following Error:
[Code]...
View 4 Replies
Jan 31, 2009
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.
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"));
[code]....
View 2 Replies
Feb 18, 2011
Yes, I know there are many threads regarding this but I don't know anything about actionscript but I need this script urgently for a project I just started flash. I'm new here.
What the title says. I get this error:
TypeError: Error #1010: A term is undefined and has no properties.
at card3_fla::MainTimeline/frame1()[card3_fla.MainTimeline::frame1:4]
Flash CS5, actionscript 3. This is the code in which I get the error:
[Code]...
View 3 Replies
Dec 21, 2010
I have an error output using the code below, I'm trying to tell flash to reverse animation of MC (gal_product_mc) when I hit a button (previous_mc).
//product previous button
previous_mc.buttonMode=true;
previous_mc.addEventListener(MouseEvent.CLICK, mclick);
[code].....
View 7 Replies
Jun 24, 2009
when swf file run then dis errors cm--TypeError: Error #1010: A term is undefined and has no propertiesat tm.template::PagesEngine/::createGalleryEngine() at Function/http://adobe.com/AS3/2006/builtin::apply() at MethodInfo-71( at
[code]....
View 1 Replies
Apr 10, 2011
Code:
TypeError: Error #1010: Un trmino no est definido y no tiene propiedades.
at main_fla::MainTimeline/hero_move()
[code]........
View 2 Replies
Jun 27, 2011
I am working with pictures. I want someone to pick one of three. The pictures will be held in movieclips.
var container0:MovieClip = new MovieClip();
var container1:MovieClip = new MovieClip();
var container2:MovieClip = new MovieClip();
Intially they have an alpha of 0. I want them to all of appear at once. I use the following code to make them appear. This code does not have a problem. It works.
[Code]...
View 2 Replies
Jan 23, 2009
I am getting this error, and Im not sure what it really means:
Quote:
null
TypeError: Error #1010: A term is undefined and has no properties. at GMScores/loadXML()
[code]...
View 6 Replies
Jan 28, 2010
I have a MC called Questions thats on the stage.Inside that Movie clip, there are 10 frames and four layers.The 1st layer spans all 10 frames and has a MC called logoMC and a button called nextBtn1, 2, 3, etc
The 3rd layer has frame labels for each frame: Q1, Q2, Q3, etc
The 4th layer has actions that are similar for each frame:
Code:
nextBtn1.addEventListener(MouseEvent.CLICK, Q1btn);
function Q1btn(e:Event)
{[code]....
So what should hypothetically happen in when you click on the button, it advances to the next frame in that movie clip, and focus is set to the logo. The problem is, it isnt. I get the TypeError: Error #1010: A term is undefined and has no properties. That is pointing to the stage.focus = this.Questions.logoMC; portion of code.
View 4 Replies
Jun 22, 2010
I am getting this error: TypeError: Error #1010: A term is undefined and has no properties at CustomCushion$iinit()
[Code]....
I just can't figure out what this error is telling me. I've been banging my head against the wall for awhile
View 2 Replies
Feb 9, 2009
"TypeError: Error #1010: A term is undefined and has no properties."does not show which one is the term in the code ?
View 1 Replies
Jun 3, 2010
I have a project due in a week, and I'm lost! I'm having a lot of troubles with action script since most of the project is based on self learning Part of the project is a game attached to an interactive representation of the blood components for children (it's a very minimal representation).The game consists of 4 objects, one of them is player controlled (WCell), and the other 3 are supposed to randomly fall -top to bottom-, the player gets points for "eating" the correct object(germs), and loses points for eating the wrong objects(tasiyot_MC & RCell_mc). I'm attaching the code here, hoping that someone in this huge forum could help me find out why am I receiving this error:
[Code]...
View 8 Replies
Aug 8, 2010
I'm trying to build some kind of an effect when the mouse is over. Everything was ok until I tried to reach specific movie clips that are inside other movieclips, which are not on the stage yet. the variable pageOnOn holds the movieclip that contains the thumbs(which are also.then I somehow found a way to use the function after the pageOnOn movieclip is added on the stage. (I embedded he function into the other function that is responsible for adding the pageOnOn as a child)the problem is at that line:
ActionScript Code:
thumbs.addEventListener(MouseEvent.ROLL_OVER, colorDown);
and I already checked the names in the arrays and the instance names of the movie clips, they all match.and I also tried
ActionScript Code:
this.pageOnOn.thumbs.addEventListener(MouseEvent.ROLL_OVER, colorDown);
it does not work either.
ActionScript Code:
var theArray:Array=[];
for (var c:uint = 0; c < pageOnOn.kalemTarget.length;c++) {
[code]....
View 5 Replies
Feb 15, 2012
I have this simple sliding panel that is giving me an error. It worked when I had it in a separate .fla file but when I imported it to my project I can't get it to work anymore. It gives me the following error when I click on the panels: TypeError: Error #1010: A term is undefined and has no properties.This is the code:
Code:
public function onClickPanel(e:MouseEvent):void
{
var clicked:MovieClip = MovieClip(e.target);[codew]....
when I run the debugger it points the error to this line
Code:
if (mc.props.ind <= clicked.props.ind)
View 4 Replies
Sep 5, 2010
I'm getting this error when testing my movie which is stopping it from playing:-
TypeError: Error #1010: A term is undefined and has no properties.
at Main/completeXML()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
View 3 Replies
May 26, 2009
I have a movie player that triggers lots of events (Slide2) throughtout and this has been working fine.Then added some navigation cue points (Jump1) just before each of the event cue points in the FLV (using Premier)So now the move plays fine and the first event cue point trigger the events it's supposed to.But using seekToNavCuePoint("Jump1") or when the moive plays past the cue points I get the following...
Reached cue point named Jump1TypeError: Error #1010: A term is undefined and has no properties. at Remote_fla::video1_2/cuePointListener() [code].....
Is there a problem using both navigation and event cue points in a movie?
View 1 Replies
Apr 13, 2009
I have a set of sliders in an array called "slidertiles" populated with MovieClips. I am trying to set up a randomization function set to execute on a button click.I also have a MovieClip named blankSlider that is invisible to use as the blank space.
It will run correctly a few times, and each of the "if" statements has been returned successfully, but within a few iterations, it will come up with this error: TypeError: Error #1010: A term is undefined and has no properties. at MethodInfo-46()
Here's my button code:
setSliders_btn.addEventListener(MouseEvent.CLICK, findRandomValidSlider);
and here's my function code:
function findRandomValidSlider(e:MouseEvent):void {
// run the function 100 times
var j = 0;
[code]....
View 5 Replies
Mar 8, 2011
I'm receiving the following error while coding my storybook.
Quote:
TypeError: Error #1010: A term is undefined and has no properties.
at Main()[M:DocumentsInteractiveStorybookMain.as:22]
I am working from "Foundation Games Design with Flash". My code is below.
Code:
public function Main()
{
startPage = new StartPage();
hillPage = new HillPage();
pondPage = new PondPage();
[code]....
In particular, it is these 2 lines of code that are causing the problems (after a few rounds of debugging.
Code:
hillPage.startButton.addEventListener(MouseEvent.CLICK,onStartButtonClickHill);
pondPage.startButton.addEventListener(MouseEvent.CLICK,onStartButtonClickPond);
View 8 Replies
Mar 17, 2010
I have a movie clip on the main timeline called Jolly and within that movie clip I have a button at frame 2 called jollyFindOutMore.Below is my code. What I'm trying to do is load a URL when the user clicks on the jollyFindOutMore button within the Jolly movie clip but I keep receiving the error below.
Code:
Jolly.jollyFindOutMore.addEventListener (MouseEvent.CLICK, jollyFindOutMoreFunction);
function jollyFindOutMoreFunction (e:MouseEvent):void {
[code]......
View 2 Replies
Apr 17, 2010
i have done all the code so my video will only play when i go to that specific page for my website and wont continue playin if i go to another page... but when i do all my code i get this in the output when testing... now I know all the code is right because im following a tutorial:
[Code]...
View 5 Replies
Aug 27, 2010
I am trying to create some flash mcs which react to others when rolled over etc but I am getting this error: TypeError: Error #1010: A term is undefined and has no properties.
[Code]...
View 1 Replies
Sep 15, 2010
Ok, this is driving me insane.I have my AS3 on the main timeline in the first frame:
Code:
import flash.events.MouseEvent;
import flash.net.navigateToURL;
[code].....
View 2 Replies
Apr 4, 2012
i am just trying to get data from wcf web service to as3 using aducentes class.i connect normally to web service but when i try to acces methods i get the error of TypeError: Error #1010: A term is undefined and has no properties..
import alducente.services.WebService;
import flash.events.*;
var ws:WebService = new WebService();[code].....
View 10 Replies
Apr 4, 2011
So i have my items that I bring onto stage with my loop function with dynamic text fields within the loop. If I want to clear these items using a reset button on the stage how can I do this. From my code below when I press the reset button I receive: TypeError: Error #1010: A term is undefined and has no properties.So a little snippet of my code just to give an idea what I use to bring items to stage and what Im trying to use to reset[code]....
View 4 Replies
Dec 17, 2009
im just learning cs3 and came across this error and i cant seem to get it to go away.
[Code]...
View 1 Replies
Feb 1, 2012
I have got two movieclips on the main timeline. First one is envelope_mc and second is bg_main. In envelope_mc timeline there is a button on 25th frame which plays ahead when clicked. Here's the code for first movieclip:
Code
on_btn.addEventListener(MouseEvent.CLICK, playAhead); function playAhead(event:MouseEvent):void { play(); }I have also got some animation on bg_main which
[code].....
View 3 Replies
Feb 1, 2012
I have got two movieclips on the main timeline. First one is envelope_mc and second is bg_main. In envelope_mc timeline there is a button on 25th frame which plays ahead when clicked. Here's the code for first movieclip:
Code:
on_btn.addEventListener(MouseEvent.CLICK, playAhead);
function playAhead(event:MouseEvent):void
{
play();
}
I have also got some animation on bg_main which I wan't to trigger on 30th frame (inside bg_main timeline) when button is clicked in envelope_mc timeline. Here's the code for second movieclip:
Code:
MovieClip(root).on_btn.addEventListener(MouseEvent.CLICK, playAhead);
function playAhead(event:MouseEvent):void
{
play();
}
Complete error:
TypeError: Error #1010: A term is undefined and has no properties.
at Flashphotographygallerywebsite7_fla::bg_1/frame25()
View 1 Replies
Dec 22, 2010
I just wanted to make a function using Date data, but it somehow gives the Error 1010, does anyone know where the error is?
the listener:
stage.addEventListener(Event.ENTER_FRAME, datumtellen);
vars:
var kerstdatum;var jaardatum;[code].........
View 14 Replies
Dec 14, 2009
newb here trying to get my first fully functional flash site up and running. I've gotten almost everything done but suddenly when I debug my FLA I get an error:"TypeError: Error #1010: A term is undefined and has no properties.at rightsideoptics_fla::MainTimeline/frame1()"
I haven't deleted anything that I can tell, all of my MC's and BTNs are in place. I have all my functions defined before I'm calling them. Any ideas on what I'm doing wrong? I've dug through all the forums I can find but this error seems very generic so it doesn't help me diagnose my problem.
[Code]...
View 1 Replies