Actionscript 3.0 :: Make A Public Static Method Call Another Method, But Flash Throws Error 1180?

Feb 19, 2010

I'm tryng to make a public static method call another method, but Flash throws error 1180, sayng that the method called by the static method is undefined.

Code: Select allpackage
{
import flash.display.MovieClip;[code]....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: 1180: Call To A Possibly Undefined Method Error For DEFINED Method

Nov 19, 2010

I am getting this error: 1180: Call to a possibly undefined method startWorld.but the method startWorld is defined as you can see in attachment.

View 4 Replies

Flash - 1180 Error:Call To A Possibly Undefined Method AddFrameScript

Jun 25, 2010

package {
import flash.display.Sprite;
import flash.utils.*;
public class SetTimeoutExample extends Sprite {

[code]....

i get this 1180 error in as3.how can i solve this?i google it but i can't apply the solutions to my my code.

View 4 Replies

ActionScript 3.0 :: Function Call Not Working - Getting Error 1180: Call To A Possibly Undefined Method Init? ?

Sep 25, 2009

why this is not working.I have an application with a new class I just created.  The class loads, but will not call it's own internal function. 
 
package com.parkerandkent.components.classic.photogallery {
 import caurina.transitions.Tweener;
     import flash.display.MovieClip;[code]....
 
"Test 2" will not fire here.And I get this error message:
 
CallTag.as , Line 10        1180: Call to a possibly undefined method init.

View 4 Replies

ActionScript 3.0 :: Error 1180:Call To A Possible Undefined Method GetURL

Jul 5, 2010

I keep getting the error 1180:Call to a possible undefined method getURL

[Code]...

View 2 Replies

Actionscript 3 :: Error #1180: Call To A Possibly Undefined Method ?

Jan 3, 2012

I try to call a method kill(); (in function takeDamage()) which is in the same class, yet it won't find it.

package classes.ship
{
imports ...[code].....

Has it to do with var stageReff:Stage = this.stage as Stage; ?

View 2 Replies

ActionScript 3.0 :: Error #1180: Call To A Possibly Undefined Method?

Feb 4, 2008

I get this error message a lot and I normally know how to resolve them. However, not this one! I call a function from within a class function (and the called function is within the class .as file.) My question is: does Actionscript allow you to call a function within a function cuz it sure appears not!My code: looks like this

ActionScript Code:
package asdata{
//<import list suppressed >

[code]......

View 9 Replies

ActionScript 3.0 :: Error 1180: Call To A Possibly Undefined Method Class_name

Jun 7, 2009

When i try to compile my file it show the following error.

[Code].....

View 12 Replies

ActionScript 3.0 :: Error Message 1180 Call To A Possibly Undefined Method?

Jan 26, 2010

i have tried to create a sakura petal falling using flash AS3 along with flash my codes always get error message "1180: Call to a possibly undefined method Sakura1." line 16, could anyone tell me why is that happen?

[Code]...

View 6 Replies

ActionScript 3.0 :: Error 1180: Call To A Possibly Undefined Method Font2?

Sep 18, 2010

I am trying to script an external text loader in CS4 and am getting the same error message every time. I have loaded an external font into my library and renamed it font2. the error is on Frame 1, Line 2 var myFont= newfont2Here is the script

var myFont= new font2 ()
myTextField_txt.embedFonts=true;
myTextField_txt.antiAliasType=AnitAliasType.ADVANCED;

[code].....

View 1 Replies

ActionScript 3.0 :: Error - 1180: Call To A Possibly Undefined Method AddChild

May 19, 2011

I'm trying to get an image to appear on a screen through a class, and I keep getting:

Quote:

Location: Stuff.as, line 21
Description: 1180: Call to a possibly undefined method addChild.
Source: addChild(sp);

I've tried to fix it on my own, but it isn't working.my code for the files is below.

Stuff.as
ActionScript Code:
package newRPG_Class {
import flash.display.Sprite;

[code]...

View 4 Replies

ActionScript 3.0 :: Error 1180: Call To A Possibly Undefined Method GetDefinitionByName

Oct 13, 2009

var class:Class = getDefinitionByName("Box") as Class;
var box:MovieClip = new class()

*Box is a class that exists inside my library (A movieclip that is exported for actionscript) I have this code in two places: My document class and some other random class. It works in the document class. It fails to work in the other class (I get the error in the title) Both classes extend MovieClip (if that makes any difference) So what's going on here? Do you know the problem with what I'm doing?

View 2 Replies

ActionScript 3.0 :: Error - 1180: Call To A Possibly Undefined Method QuestionNum

Apr 15, 2010

Can someone help me with this error: 1180: Call to a possibly undefined method questionNum.

occurring on this line

[Code]...

View 4 Replies

ActionScript 3.0 :: Error - Line 42 ,1180 : Call To A Possibly Undifned Method AMissleArray?

Sep 24, 2011

I am trying to copy a youtube tut and have come to an error and cant seem to fix it. I have followed everything exactly and still get the error twice.The error i am getting is this. Line 42 1180: Call to a possibly undifned method aMissleArray. (Line 42 highlighted in Red)
See code below:

firstGamemcMisslepackage 
{
import flash.display.MovieClip;[code]..............

View 3 Replies

ActionScript 3.0 :: Movie Clip Error 1180: Call To A Possibly Undefined Method Menu

Apr 20, 2009

I new to AS3 and Flash and have a question about this code. I can't seem to discern how the Menu is generated. The stage has only 3 object, 3 buttons the menu return buttons. My copy is based on this exact code but I get this error: 1180: Call to a possibly undefined method menu. var button:MovieClip = new menu(); The working copy of this .fla file somehow generates a MENU with the names Project 1 - drag and drop

[Code]...

View 2 Replies

ActionScript 3.0 :: Document Class Error 1180: Call To A Possibly Undefined Method AddFrameScript

Nov 28, 2010

Im getting this error: 1180C: as3_scrollbarAS3 ScrollbarsrcclassesMain.as, Line 1 1180: Call to a possibly undefined method addFrameScript. the actionscript in my .fla timeline is: _scrollBar = new FullScreenScrollBar(_content, 0x222222, 0xff4400, 0x05b59a, 0xffffff, 15, 15, 4, true); addChild(_scrollBar)

[Code]....

View 5 Replies

ActionScript 3.0 :: Preloader And Button - Error: 1180: Call To A Possibly Undefined Method Init

Jul 19, 2011

I used to work on AS2 to make my animations, buttons and portfolios, but now I needed to use AS3 to make some forms interact with some PHP script. TextInputs and Buttons on COMPONENTS are working and interacting normally with PHP. My PreLoader is working great too. But what should the easiest is not working: MY SIMPLE BUTTONS! It used to be so easy in AS1 and 2, but now on AS3 it's not working. I am putting all my action and codes in a ACTIONS FRAME in the top of my animation, but it is not working! I have my Preloader on my frame 1 working, calling my animation on frame 2. The code is here (it's working):

[Code].....

View 4 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

Flex :: Error 1061 Call To Possibly Undefined Method Save Through A Reference With Static Type Flash.net:FileReference

Jun 2, 2011

I want to save XML File using Flex 4 SDK

var fr:FileReference=new FileReference();
fr.save( newXmlRow, 'D:/Sample.xml' );

Error Shows :

1061 "Call to possibly Undefined method save through a reference with static type flash.net:FileReference"

View 2 Replies

ActionScript 3.0 :: AddChild From A Class - Get The Error "1180 : Call To A Possibly Undefined Method AddChild?

Jun 15, 2011

I'm trying to have a class file which can add objects to the stage via addChild; however, when I call addChild from within the class file, I get the error "1180: Call to a possibly undefined method addChild." I've tried importing flash.display.* and that doesn't fix the problem. Does the class file have to extend Sprite or MovieClip to be able to add objects to the stage?

View 8 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 :: Error 151061: Call To A Possibly Undefined Method AddListener Through A Reference With Static Type

Mar 5, 2011

I have a code like below however whatever i try i couldnt implent a progress bar to my action script. Generally i take an error like this:Scene 1, Layer 'Layer 1', Frame 1, Line 151061: Call to a possibly undefined method addListener through a reference with static type flash.net:FileReferenceList.

ActionScript Code:
import flash.net.FileReferenceList;
var imagesFilter:FileFilter = new FileFilter("Images", "*.jpeg;*.jpg;*.gif;*.png");
var fileRef:FileReferenceList = new FileReferenceList();

[code]...

View 0 Replies

ActionScript 3.0 :: Flash OOP - Add Own Custom Property To The Flash.display.Bitmap Using A Public Static Method?

Jan 3, 2011

Is it possible to add my own custom property to the flash.display.Bitmap using a public static method? I'm trying to write a bitmap utility that does something to a bitmap, and stores a Number property onto it afterwards.

[Code]....

I'm still learning AS3.0 OOP, I think that this can't be done with this method. I think I have to make a new Class that extends 'Bitmap', add the prop there, and then in the Main.as make a new instance of that class, point to the target Bitmap, and run the method in the extended 'Bitmap' class (?).

View 6 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 :: 1180: Call To A Possibly Undefined Method Over?

Mar 1, 2010

I'm following the Advanced After Effects for Flash tutorial, but run into some errors. I've pasted the Caurina map into the same folder as where my .fla is located. Description:1046: Type was not found or was not a compile-time constant: Over.1180: Call to a possibly undefined method Over.

My script
Code: Select allimport caurina.transitions.*;
btnTV.addEventListener(MouseEvent.ROLL_OVER, btnTV_ROLLOVER);

[code].....

View 1 Replies

ActionScript 3.0 :: 1180: Call To A Possibly Undefined Method

Jun 18, 2010

This should be simple, but i can't get it.

A) on the timeline of my .fla file i have:
 
var pt:MovieClip = new RoadObstacle();
addChild(pt);
//
stop()

B) In my library I have an MC with a linkage of RoadObstacle.

C) I have an AS file called: RoadObstacle.as
 
It works as long as the .as file is right next to the .fla file. I move the .as into folder path com.screenscape.game - I update both the .as package path and the path for the library symbol in the .fla - then run it and i get:
 
1180: Call to a possibly undefined method RoadObstacle.

View 4 Replies

ActionScript 3.0 :: 1180 - Call To Possibly Undefined Method CreateJPG

Jun 30, 2010

I'm trying to get a jpg image from the fatcloud swf - am getting the following error
1180: Call to a possibly undefined method createJPG.

Actionscript Code:
public function createJPG (m:MovieClip, q:Number, fileName:String){
var jpgSource:BitmapData = new BitmapData (m.width, m.height);
jpgSource.draw(m);
var jpgEncoder:JPGEncoder = new JPGEncoder(q);
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
[Code] .....

View 4 Replies

ActionScript 3.0 :: 1180: Call To A Possibly Undefined Method TextField

Dec 9, 2008

in my AS file I have the code as the document class(posted below), which gives me the following errors:

1046: Type was not found or was not a compile-time constant:TextField.
1180: Call to a possibly undefined method TextField.

View 2 Replies







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