However, I am hit with an error when I attempt to do this: Access of undefined property BALL_DIAMETER in package.If I merely remove the = 15 portion, this error goes away.This seems odd. Should you not be able to initialize a static variable in this way?
I have a set of classes that I've been using in one Flex program (Classroom). I just created new project and referenced the source path of the first program's com directory in its build path.
When I do an import, import com.cade.comm.CADEports;, everything looks good. When I use a variable in the code, CADEports.gotComm = true;, it still looks good. However, when I try to run it, I get an 1120 error that says "access of undefinded property...".
In the main program:
Flex Build Path -> Source path = ${DOCUMENTS}/Classroom/src/com import com.cade.comm.CADEports; ... CADEports.gotComm = true; // compile error here although when you type CADEports. it shows the gotComm variable!
[Code].....
Why does this work in the original program but not the second?
I get this error 1120: Access of undefined property OtherClass.
Ths is the code: Code: public class SomeClass extends MovieClip { function SomeClass():void { } public function SomeFunction():void { var i:int = OtherClass.myVar; trace(i); }}
Code: public class OtherClass { public static var myVar:int = 2; public function OtherClass():void { }}
Error: Access of undefined method getStatus through reference with a static type Class.
Here's what's happening in the code. I'm trying to create a User class that is instantiated at the start of my app. I want the User class to have properties like mainStatus, with helper methods like setStatus etc. Pretty simple.
so on my HardDisk I have my flash_working folder with all my flash projects. I created my class file/package under the directory com.mypackage
[Code]....
That's all the code I have.
If I try to access the public var mainStatus through user.mainStatus that gives a similar error saying:
Error: Access of undefined property mainStatus through reference with a static type Class.
I'm having bit of a headache with 1119 error and I can't figure out why.The problematic line is in red.
What I'm trying to do is:
1. Add Display Object "imagesGallery" to mainWin 2. Add MovieClip "imagesPreloader" to "imagesGallery" 3. Fire the "load" function from "imagesListLoader" which should fireup the function imagesLoaded in "imagesGallery"
1119: Access of possibly undefined property width through a reference with static type Class.i get this error wen trying for collision detection of 2 objects..error line if(ball._x >= Stage._width) {
So I have a movieclip named runman_mc and I'm just trying to make it so when I press the up arrow, his y will decrease. I keep getting an error code 1119 If there's anymore info you need, I'd be more than glad to post it. EDIT: I just had to name the class runman_mc and everything worked
But the same error keeps showing up, related to the var t1 and var t2 lines: Access of possible undefined property text through a reference with static type class What should I do? I already tried removing the String indication, trade : by =,
I'm trying to create a timer event to delay the instantiation of my movie clip on the stage but I keep getting the error: 1119: Access of possibly undefined property Timer through a reference with static type Class I'm confused with how to proceed. I thought Timer was a term already in the AS3 library, so how can it be undefined?
var myPercStr = myStr.text; myPercStr= myPercStr.toString(); var myPerc = Number(myPercStr);
I am trying to get the value of a text field which is created by the user pushing a pin-pad. This text field is a string which is joined() from an Array of the sequence of pin-pad entries. Now my problem is that Flash will not convert the .text text field into a string with which I can use the value to convert to a Number and perform math on it.
But I get an error for "selected" property that i used in my checkBox. the error says : Access of possibly undefined property selected through a reference with static type TrashContainer_inlineComponent1.
i am making an edutainment game using flash cs5, im really new at using flash, in fact we never yet tackle it at school, but i insist on learning about it.it my codes, i encountered this error
C:UsersacerDesktopJikanLibraryMain.as, Line 16 1119: Access of possibly undefined property Click through a reference with static type Class.
I can not get the Preloader.PreloaderBar.scaleX=loaded; to work. I get the error 1119: Access of possibly undefined property PreloaderBar through a reference with static type Class.
package BowerPower.Startup{ import flash.display.MovieClip; import flash.events.Event; import flash.events.ProgressEvent; public class Initialize extends MovieClip {
I created a simple menu with subs using frame labels.The code on the main timeline of the loader page is:
var myLoader:Loader = new Loader(); myLoader.load(new URLRequest("main.swf")); addChild(myLoader);
The code on the menu navigation movie clip is:
stop(); function buttonClick(event:MouseEvent):void {[code]......
The buttons all have instance names but I keep getting the following errors
1119: Access of possibly undefined property myLoader through a reference with static type flash.display:DisplayObjectContainer. on the line - this.parent.myLoader.load(new URLRequest(event.target.name + ".swf"));
1120: Access of undefined property subclick. on the lines - ww_btn.addEventListener(MouseEvent.CLICK, subclick);[code].....
I want to use Flash to build websites and am having difficulty with the navigation and loading external files.
I'm trying to fade in a button when my flv finishes, but I get this error: Access of possibly undefined property COMPLETE through a reference with static type ClassThis is timeline code. I don't know if that matters. I'm sure this is more simple than I'm making it, but I've looked at it too long.
if I make create a movieclip and on the first frame trace(root.myVar) I get this error:
Quote: 1119: Access of possibly undefined property myVar through a reference with static type flash.displayisplayObject.
Why? Even if I use the target tool in flash and choose Absolute it gives me 'root' for my main time line.How can I get my variable off the main time line with an absolute path?
...but I keep getting these errors (i will post them in order below):
1119: Access of possibly undefined property onRollOver through a reference with static type flash.display:SimpleButton. 1119: Access of possibly undefined property onRollOut through a reference with static type flash.display:SimpleButton. 1119: Access of possibly undefined property onRollOver through a reference with static type flash.display:SimpleButton. 1119: Access of possibly undefined property onRollOut through a reference with static type flash.display:SimpleButton.
I have a site with ScrollPanes, that are calling a Class on what to display. (so the movieclip that I want displayed in the ScrollPane has a Class name.) Within that movieclip (webScroll) that is being displayed in the scrollpane, I have 2 other movieclips (web1 & web2), with unique instance names and eventlisteners targeting those instances. when I preview my site, i get this error: 1119: Access of possibly undefined property web2 through a reference with static type Class.
My teacher gave a demo in class and I'm using the same AS but I keep getting error 1119: Access of possibly undefined property kbBox through a reference with static type flash.displayisplayObject.I don't understand b/c I'm using all the same variables and instance names, etc. as the working file but my file gets this error. The only thing I'm trying to do is to get the dynamic text and progress bar to show up that is loading from an external preloader file.
I'm trying to make a flash animation but I'm getting these two errors: 1119: Access of possibly undefined property enabled through a reference with static type Class. (line 4) 1061: Call to a possibly undefined method addEventListener through a reference with static type Class. (line 5) This is the code I'm using: Code: Select allimport flash.display.*;
import flash.events.*; stop(); buti.enabled; buti.addEventListener(MouseEvent.CLICK,pla); function pla(e:MouseEvent):void { gotoAndPlay(2); }
My animation is a initial photo that turns around and becomes a black backgroud (were I'll add some text), now what I want is that the photo won't animate until I do a click in it. I used a Layer with a transparent image and converted it to a button and the export name is buti. The other to layers were converted to movie clips named preto and foto.
I have a custom class called RichButton. It throws a custom event, featuring the line
[Code]....
so far so simple right? But now i get the 1119 error Access of undefined property BUTTON_CLICKED though a refernece with static type Class. Here's the odd part- I can use the class as normal, and access any of its public methods/properties. If i move the RichButton.as from my shared code folder into my project folder (alonside my swf and flashDevelop project files) it works fine. I have exactly the same (as fr as i can tell) structure running in another project and it works perfectly. I've tried cutting and pasting across and trying to find what i;ve done differently but no luck.
i write: object.id = 1; trace(object.id); //everything works fine but trace(getChildAt(1).id); //error (btw the object is for sure in position 1) if i try trace(DisplayObjectContainer(getChildAt(1)).id); //still error "Access of possibly undefined property through a reference with static type flash.displayisplayObjectContainer"