Actionscript 3.0 :: Compile Error 1061 Displays When Attempting To Play Timeline

Dec 17, 2011

Scenario: Click on button and timeline animation plays (the animation is a panel that rotates from the back to the front) Error: Scene 1, Layer 'actions', Frame 1, Line 11 1061: Call to a possibly undefined method play through a reference with static type Function. What does this error mean and what code needs to be added to fix it?

Code: Select allimport flash.events.MouseEvent;
bullet_btn.addEventListener(MouseEvent.CLICK, bullet);
function bullet(event:MouseEvent) :void
{
spinbul_pt_1.play();
}
function spinbul_pt_1(){
bul_pt_1_MC.play();
}

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Compile Error 1061 Displays When Attempting To Play Timeline Animation

Dec 17, 2011

Scenario: Click on button and timeline animation plays

Error:
Scene 1, Layer 'actions', Frame 1, Line 11
1061: Call to a possibly undefined method play through a reference with static type Function.

What does this error mean and what code needs to be added to fix it?

[Code].....

View 6 Replies

ActionScript 3.0 :: Error 1009 Appearing Attempting To Play Sound?

Aug 31, 2010

Haven't had an Error 1009 issue in awhile but tonight I got one trying to play an external .mp3 track. Seems i got a null object somewhere but I can't seem to locate it. After debugging, it seems to be an error in my playBtn reference but it seems have all the proper instances. where the problem may lie?Here's the code:

Code:
import flash.media.SoundChannel;
stop();

[code].......

View 8 Replies

ActionScript 3.0 :: Attempting To Get A Movie Clip To Play From Another?

Aug 10, 2009

I am attempting to get a movie clip from the Library to play from another movie clip. I knew how to do this in AS2, but I'm trying to learn AS3 and I am at a loss to understand how to do this.In AS2 I would just have to code:

Code:
_root.movieClipName.play();
but in AS3 when I enter in this code:

[code].....

View 1 Replies

ActionScript 3.0 :: Flash - Compile Error Parameter Initializer Unknown Or Is Not A Compile-time Constant?

Jun 7, 2010

I'm using Flash Develop to build an as3 application using the Flex compiler. In the constructor of a particular class I have written the following code

Code:
//constructor
public function Test(par1:int, arr:/*int*/Array = [1, 2]){ <----- compiler shows error here

[code].....

View 2 Replies

ActionScript 3.0 :: Attempting To Loop And Receiving Error - Flash CS4

Jul 25, 2011

Code: I have a very simple flash video, with a strange problem that I understand how to resolve normally, but not when it pops up on the second run. Basically I have a scrolling banner with 4 panels that all link to different site. The panels scroll across the stage, then move out, and the next banner comes across and so on. Not complicated at all. But all of the sudden I'm getting:

[Code]....

View 6 Replies

Professional :: Error #1007 - Attempting To Instantiate A Non-constructor

Sep 29, 2011

I am receiving said message on an actionscript-only project. I tried to reduce the application to a nonsensical example:

[Code].....

View 5 Replies

ActionScript 3.0 :: TypeError: Error #1009 When Attempting To Add An External Swf

Aug 4, 2010

I want to load an external swf when it's fully loaded. Then this is the code

ActionScript Code:
var contentLoader:Loader
function processSWF():void
{

[code]....

but flash give me TypeError: Error #1009: Cannot access a property or method of a null object reference instead, if i don't insert the listener, all goes fine

View 6 Replies

ActionScript 3.0 :: Null Reference Error When Attempting To AddChild

Feb 13, 2010

I am attempting to make a class that handles the building in a game, but I can't get the object to come on stage. I can get everything to work if I am on the timeline, just not from this class. I've been getting this:

[Code]...

View 3 Replies

Getting Error 1061 And No Blue EventListener

Mar 27, 2010

I am a newbie with Flash CS4 and via a tutorial of Lynda.com I am trying to make my first website. With the exercise files of Lynda I had no problem, but with my own .psd file I am getting error 1061 after I tried to make a mouseEvent.I noticed that in the actions script the word "eventListener" stays black instead of changing into blue.

This is the action script:

Actionscript Code:
stop();//handle events for buttons...about.addEventlistener(MouseEvent.CLICK, clickSection);function clickSection(evtObj:MouseEvent){//trace shows what's happening... in the output window  trace("The about button was clicked!")}

See attached screenshots for more info.

View 11 Replies

ActionScript 3.0 :: Getting 1061 Error With HitTestObject

Sep 1, 2010

I'm getting a "1061: Call to possibly undefined method hitTestObject through a reference with static type Class." error with this[code]...

View 9 Replies

ActionScript 3.0 :: 1061 Error On Custom Class

Aug 5, 2010

I've a 1061 problem with a custom class. My class is named lingua here the code: [URL] I've imported it in my main class but when i delcare a variable like this:

Code: var a:String = lingua.getLang(); It gives me a 1061 error that says to me "call to a possibly undefinited method getLang(); Here the main: [URL] The problem stays in the function bottoniLingua at line 155. In fact i've commented the code. but i need those lines because i use them to check the language.

View 4 Replies

IDE :: CS4 Error 1061: Undefined Method AddEventListener

Jul 30, 2009

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:

[Code]...

View 2 Replies

ActionScript 3.0 :: 1061 Error On Custom Class?

Aug 5, 2010

My class is named lingua here the code: http:[url]....I've imported it in my main class but when i delcare a variable like this:

Code:
var a:String = lingua.getLang();

It gives me a 1061 error that says to me "call to a possibly undefinited method getLang();
Here the main: http:[url]....The problem stays in the function bottoniLingua at line 155. In fact i've commented the code. but i need those lines because i use them to check the language.

View 2 Replies

ActionScript 3.0 :: Play And Mute MovieClip In Timeline - Error In Output Panel

Jan 14, 2010

I have a play and mute/unmute MC in a timeline instanced as "btn_playMute." The movie clip contains two frames. Each frame contains a button and some AS3. Here's the goal: When the flash loads, a video starts playing with the volume turned all the way down. This video continues, and loops when it gets to the end, ensuring that the volume is all the way down. I'm doing this as such:

HTML Code:
import fl.video.VideoEvent;
videoPlayer.volume = 0;
videoPlayer.source = "dieSort.f4v";
videoPlayer.addEventListener(VideoEvent.COMPLETE,rewindAndMute);
function rewindAndMute(videoEventObject:VideoEvent):void {
[Code] .....

The problem is that when I click the button the first time, which restarts the video with the volume up, I get the following error in the Output panel:
HTML Code:
Play Button Clicked
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Semigen_fla::btn_playMute_1/frame2()[Semigen_fla.btn_playMute_1::frame2:3]
at flash.display::MovieClip/gotoAndStop()
at Semigen_fla::btn_playMute_1/playHandler()[Semigen_fla.btn_playMute_1::frame1:9]
Any reason why my control MC is not changing states properly from "rewind and unmute" to "mute"?

View 7 Replies

ActionScript 3.0 :: SimpleButton Class Method - Getting Error 1061

Mar 12, 2009

I've created a button under the SimpleButton class named button1 in Flash CS4. I've set button1 so it exports to AS3. I keep getting an Error 1061 at line 3 of which I have no clue what I'm doing wrong:

Code:
1 import flash.events.MouseEvent;
2
3 button1.addEventListener(MouseEvent.MOUSE_OUT, link1);
4
5 function link1(MouseEvent)
6 {
7var one:URLRequest = new URLRequest("[URL)");
8navigateToURL(one, "_self");
9 }
Error 1061: call to a possibly undefined method addEventListener through a reference with static type Class.

View 3 Replies

Php :: Error 1061 - Call To A Possibly Undefined Method?

Aug 4, 2011

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:

package services.cascobackend
{
import com.adobe.fiber.core.model_internal;

[code].....

View 1 Replies

ActionScript 3.0 :: Error : 1061: Call To A Possibly Undefined Method

Aug 20, 2010

I'm getting this error:

1061: Call to a possibly undefined method resizeBox through a reference with static type flash.displayisplayObject.

on this line:

Code:
public function resizeArea():void
{
for(var i:int = 0; i < this.numChildren; i++)

[Code]....

View 1 Replies

Actionscript 3.0 :: Error 1061: Call To Possibly Undefined Method

Sep 28, 2009

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)
}

View 4 Replies

Actionscript 3 :: Add Event Listener In Custom Class Of A Button - Error 1061

Nov 10, 2011

Im getting an error whilst trying to add an event listener to a class of a Button on my stage.

1061: Call to a possibly undefined method addEventListener through a reference with static type Class.

On my stage i have a Button with the instance name stopBtn, this is also exported to an actionscript class called classes.stopBtn (stopBtn.as in a folder called 'classes'). The button is on the first keyframe in the main timeline, in a layer with other buttons on that layer

[Code]...

View 2 Replies

ActionScript 3.0 :: Getting An Error:1061 : Call To A Possibly Undefined Method AddEventListener ...?

Oct 11, 2010

I created a simple button that I imported into the stage that I named and saved it as Microwave_btn and I wrote a simple script for it that says:

stop();
import flash.display.*;
import flash.events.*;[code]...

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.

View 1 Replies

Actionscript 3 :: Dynamically Draw Circle Preloader Error 1061 When In Document Class

Oct 31, 2011

how to make a dynamic unfilled and filled circle. that will take input from a slider to dertermine how much of the circle is drawn. I wanted to use this for a preloader. Unlike the author I would like to use it inside of a document class. I am getting 1061: Call to a possibly undefined method createEmptyMovieClip through a reference with static type document. and 1120: Access of undefined property circ1. The second is caused from the first. How would I get this to work in my document class?

//original code
// x: circles center x, y: circles center y
// a1: first angle, a2: angle to draw to, r: radius
// dir: direction; 1 for clockwise -1 for counter clockwise

[Code].....

View 1 Replies

ActionScript 3.0 :: Error 1061 : Call To A Possibly Undefined Method AddEvenListener Through A Reference?

Aug 19, 2009

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].....

View 2 Replies

Professional :: Error 1061 - Undefined Method SetFinalScore Through A Reference With Static Type GameOverScreen

Jan 6, 2012

I was following this tutorial [URL] and I recieved this error C:UsersDevDesktopcoursework flashClassesDocumentClass.as, Line 271061: Call to a possibly undefined method setFinalScore through a reference with static type GameOverScreen. I am not too sure what that is referring too, I am also using Flash CS5

View 1 Replies

ActionScript 3.0 :: Error 1061 Call To A Possible Undefined Method AddEventListener Through Reference With Static Type Class

Jan 2, 2010

Error 1061  Call to a possible undefined method addEventListener through reference with static type Class

source:buttonsMenu.addEventListener(Event.ENTER_FRAME, moveMenu);

View 3 Replies

ActionScript 3.0 :: Script Error - Frame 1, Line 1061 : Call To A Possibly Undefined Method LoadSound...?

Dec 11, 2010

import flash.media.Sound;
//Setup sound object
var s:Sound = new Sound();[code]....

I cant run this code, it throws an error:[code].....

View 1 Replies

ActionScript 3.0 :: Get This Error: 1061 : Call To A Possibly Undefined Method Weight Through A Reference With Static Type Person?

Jun 15, 2009

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.

View 12 Replies

ActionScript 3.0 :: Error : 1061: Call To A Possibly Undefined Method AddChild Through A Reference With Static Type Class

Jul 13, 2010

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);

View 4 Replies

ActionScript 3.0 :: Error 1061: Call To A Possibly Undefined Method Load Through A Reference With Static Type Loader

Oct 20, 2010

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.

[Code]...

View 1 Replies

ActionScript 3.0 :: Error 1061 : Call To A Possibly Undefined Method HideSubMenu Through A Reference With Static Type Flash?

May 19, 2009

I have this kind of problem:

Code:

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."

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved