The properties for the Microwave_btn has the class labeled as: Microwave_btn and the Base class as: flash.display.SimpleButton. When I test the movie I get this error:1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
I try to make working an XML loader from a custom class on a new var, but when I add an Event listener it tells me this:
1061: Call to a possibly undefined method addEventListener through a reference with static type XMLLoadData.
This is the code I have on the stage:
Code: var xmlLoad: XMLLoadData = new XMLLoadData("navigation.xml"); //load the xml file xmlLoad.addEventListener(Event.COMPLETE, onComplete); // execute onComplete once the xmlLoad is fully loaded function onComplete(e:Event):void{ // }
and this is the code of my custom class XMLLoadData Code:
Error 1061: Call to a possibly undefined method _initRemoteClassAlias through a reference with a static type ClassSo, that being said, here's what I think I know about that. It is tying to call a method named _initRemoteClassAlias but cannot find it. So here's my guess where my confusion/problem comes in. The method it is trying to call was created utomatically by FlashBuilder in the _Super Class of a PHP script I have written. (in this case the error is stemming from : services.cascobackend._Super_CASCOBackend.as) - Here's the first little bit of code from the _Super Class in question:
On my content layer, I have information that changes on frame 20, 40, and 60. I want three buttons that will take you to each frame, but even a simple task like that is giving me trouble.
I defined one button as "Seven_btn" and wrote the following code, which results in error 1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
Seven_btn.addEventListener (MouseEvent.CLICK, Seven); function Seven(event:MouseEvent):void { gotoAndStop(20) }
I'm attempting to create an XML image gallery complete with progress bar and combo box, from a tutorial in a textbook. The tutorial in the book calls for the use of simple buttons, but I wanted to use my own instead. I wasn't aware of the difference between using simple buttons in code and custom buttons, so when I debugged I received the good old 1061: Call to a possibly undefined method addEvenListener through a reference with static type flash.display:SimpleButton.Obviously my decision to use a custom button in it's place is to blame, but how do I modify the code so that it still does what I want only with a custom button?Here's my source code:
Code: import fl.data.DataProvider; Pull image information from XML var xml:XML = new XML();[code].....
If you have numerous methods in a class, can you just call them like so:
// in the .fla file var john:Person = new Person(63,150); // creates a new person named john 63" and 150lbs. john.weight(180); // changes johns weight to 180lbs.[code].....
I must be calling the method completely wrong? I get this error: 1061: Call to a possibly undefined method weight through a reference with static type Person.
I got this Error : 1061: Call to a possibly undefined method addChild through a reference with static type Class.
what I'm trying to do :I have create a new class called Graph and make it extends Sprite and add a scroolpane to my stage and make an empty movie clip called content_mc and make the source of the scrollpane equals to content_mc
in the first frame i wrote this code
import Graph; var graph:Graph = new Graph();content_mc.addChild(graph);
When I use the following code inside a keyframe in a layer (Actions layer) it works fine. When I use it inside a custom class I get the following error: .../siteLoader.as, Line 19 1061: Call to a possibly undefined method load through a reference with static type Loader.
if(activeBtn != null) activeBtn.hideSubMenu(); here i check if the activeBtn is a different than "null" and than i want to call this method - who's existing and it's with "public" definition.
But no matter what i chaking there's always pop this Error "1061: Call to a possibly undefined method hideSubMenu through a reference with static type flash.display:Sprite."
I am using AS 3 Flash CS4, WIndows XP SP3. I am unable to use the Mouse.hide(); method in many of my scripts. If I add Mouse.hide() to a preexisting script, I get the following error; line1 1061: Call to a possibly undefined method hide through a reference with static type Class. If I add Mouse.hide():void; to a preexisting script, I get the following error: line1 Label must be a simple identifier Once this has happened, if I then remove ALL lines of script from the file...but leave the Mouse.hide(); [or Mouse.hide():void;], and also remove all objects from the stage, when I run the file, I still get those same errors.
I am new to CS4 and coding. When I test my movie it keeps going through my pics as a slide show. I just want the large pic to stay still and change when i click on my thumbnail size pics. What I noticed is that addEventListner should be blue and is not. and here is my code:
I am a newbee and just starting to learn about AS3. Copied some ideas and tried to paint a single particle on the stage for starters. No success! I get this...1061: Call to a possibly undefined method addChild through a reference with static type flash.displayisplayObject.In an "Particle.as" file I have this code...
I am fighting against this: I have a script inside a movieclip. There are a few children, too. Each child contains other movieclip whose instance name is "masker" and a button. The script reads:
I don't get why it's not working, I also get: 1119: Access of possibly undefined property buttonMode through a reference with static type flash.display:SimpleButton.
Im trying to use the hit test built into flash, but its failing. I have used this many time before! but this time flash is crying at me. I Think i know why but im not sure how to fix it. Here is my hit test code:
[Code]....
I have tried multiple things, Changing instances, location of the code. I currently have 4 classes, Main, Missile, Enemy and House. House has nothing it in really. Missile make a missile, Enemy Makes a enemy. And main deals with adding it all to the stage, and making it randomly appear ect.
For some reason I can't add event listeners.. I've searched the error but people say it's due to having the addEventListener outside of a function. However mine is inside the constructor!
package { import flash.events.*; public class keyClass {
I'm creating an interactive map for a final project, and I'm terrible at coding. My code is returning a lot of "Access of undefined property" of buttons, and "Call to a possibly undefined method addEventListener through a reference with static type Class".I have movie clips that are boxes that are supposed to animate over the map when a button is clicked on, and they have buttons inside of them that have boxes that are supposed to replace the one that is on screen when clicked. [code]it won't let me post the link for my .fla,
I get the above error. I did actually change a little code because I put it in it's own class.I call the below ShuffleArray class in my main doc class as follows:
I've been using Adobe Flash CS4 for a couple of days. I've drawn a worm, with eyes and a mouth and these pieces are all MovieClip symbols. I have exported them to actionscript with the class name being the same as what they are (ie. the mouth MovieClip is exported as mouth). The mouth has 2 frames, one smiling and one frowning. I need to mouth to stay smiling at first, so in Frame 1 actions I wrote:
I see where i was going wrong however when i change the instance name like you said i 1120: Access of undefined property snakePart. all of this code btw is at document class level and the movieclips are in the library not on stage
I'm trying to add an event listener to the end of a motion tween in AS.
I've created a tween, highlighted the frames, right clicked and copied the tween as AS and pasted it into the movie clip (I think there's a better way to do this, but I'm not sure what it is...)
When I try to add the listener to the end of that code, I get the error. Here's my code.
I am trying to get simple example of it running. I can make it work if I publish in FlashPlayer10, but not FP 9
[Code]...
The reference material says Language Version : ActionScript 3.0Runtime Versions : AIR 1.0, Flash Player 9 Does this mean the AIR 1.0 and Flash Player 9 or what is the deal?the compile error is... 1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference.