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

Jul 29, 2009

I'm getting the following error message when I try to run the AS code below:

1180: Call to a possibly undefined method string.

The error occurs at every instance of:

min = string(min % 60);

I think CS3 doesn't like this "string" format and that it probably different from that of CS2 in which the code was derived from.

this.onEnterFrame = function() {
var todayate = new Date();
var currentYear = today.fullYear();

[Code]....

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

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 :: 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 :: 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

Actionscript 3 :: 1180: Call To A Possibly Undefined Method LoaderInfo

Apr 15, 2012

So im trying to gain access to flash vars but i kept getting this error: Line 27 1180: Call to a possibly undefined method LoaderInfo.

I have tried putting the below code in and outside of my class but it seems from what i have gathered that it thinks 'LoaderInfo' is another function which it is not.

[Code]...

View 3 Replies

Actionscript 3 :: 1180: Call To A Possibly Undefined Method AddEventListener?

Jan 6, 2011

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.

import fl.motion.AnimatorFactory;
import fl.motion.MotionBase;
import fl.motion.Motion;
import flash.filters.*;

[Code].....

I've tried a few places for it, both with the animFactory_Enemy_3 variable and the motion_Enemy_3 variable - getting the same error both times.

View 1 Replies

Actionscript 3 :: 1180: Call To A Possibly Undefined Method Point

Mar 16, 2011

I'm very very new on ActionScript 3.0 development for Blackberry Playbook.

I'm working with Double Sided 3D Plane in FP10 and I'm having troubles with this code:

package
{
import flash.display.Sprite;
import flash.events.Event;

[Code]....

View 1 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 :: 1180: Call To A Possibly Undefined Method MenuLoad

Dec 1, 2009

I have a problem calling a function from another package.

the main menu swf and classe : ACMenu.as called from ACMenu.swf

ActionScript Code:
package src{
public class ACMenu extends MovieClip {

[Code].....

1180: Call to a possibly undefined method menuLoad.

View 4 Replies

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

Jul 21, 2010

I have witten one .as file and try to user in my .fla file detail given bellow.

StaticTest.as
class StaticTest
{
static var massage:String="Static Veriable";

[code]....

Note:- priviousely it was showing me three Arror which is given bellow but after adding the "StaticTest.as" file in my publish setting ActionScript version settings added .as file in classpath it is not showing me the error but also not showing the value.

1046: Type was not found or was not a compile-time constant: StaticTest.
1180: Call to a possibly undefined method StaticTest.
1120: Access of undefined property StaticTest.

View 0 Replies

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

Aug 3, 2010

This ActionScript Code:
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.ui.*;
[Code] .....

Generates this error:
Code:
C:UsersHaavardDocumentsFlashTurret 1.75 ZombieMaker.as, Line 22
1180: Call to a possibly undefined method addChild.

View 3 Replies

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

Sep 3, 2010

I get the error msg 1180: Call to a possibly undefined method Star.This is in the main timline

ActionScript Code:

for (var i=0; i>20;i++ ) {
var ta:MovieClip = new Star();
ta.x = Math.random()*300;

[code]...

View 4 Replies

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

Feb 5, 2011

When I try run the code below I get the following error message: "1180: Call to a possibly undefined method ChaparralProEmbedded."

Code:
// ActionScript 3.0
import fl.controls.TextArea;
var chaparralProEmbeddedFont:Font = new ChaparralProEmbedded();

[Code]....

View 2 Replies

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

Nov 28, 2011

I have followed a basic twitter API tutorial and have this code.

stop();
import flash.net.URLLoader;
import flash.net.URLRequest;

[code]...

I also have a dynamic text box with an instance name of Box. On the tutorial all of this code works perfectly.

View 1 Replies

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

Dec 16, 2011

I have produced a game in AS3 which has a an IM style chat function, i have all the classes set out and the code for the chat in the time time, when i run the program i get the error "1180: Call to a possibly undefined method addFrameScript."

[Code]....

View 4 Replies

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

Mar 29, 2012

im followin a tut on how to smake this simple game with classes but iv hardly used classes...but seems like this is the only error im getting 1180: Call to a possibly undefined Method StartGame

[Code]...

View 3 Replies

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

May 26, 2009

I have a menu, and the menu has a few movie clips acting as my buttons. When I click on the button I want to bring what ever area of the site that button is linked to, to the front of the others that are on the stage.I have my movie clips that are my sections to the website all on their own layers. Do they need to be on the same layer to be able to index their childIndex?This is the code I have, but I can't seem to get it working.

groupDiningBtn_mc.addEventListener(MouseEvent.CLIC K, groupDining);
this.addChild(groupDiningBtn_mc);
function groupDining(event:MouseEvent):void
{
MovieClip(root).groupDining_mc.gotoAndPlay(2);
this.setChildIndex(groupDiningBtn_mc(event.target) , (this.numChildren - 1));
}

I get this error:1180: Call to a possibly undefined method groupDiningBtn_mc.

View 3 Replies

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

Jan 27, 2011

I'm making a bonehead error but I 've been designing this since last night and I just started coding it, so I'm not at my sharpest ATM.

Code so far;

ActionScript Code:
package
{
import flash.display.*;

[Code]....

And, yes, automatically declare stage instances is checked under as3 settings.

View 4 Replies

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

Jul 30, 2011

I get the folowing error in one of my classes and not too sure why?
 
[Code]....

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

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 :: 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







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