1119 Error help undefined property

Here is my code:
var gameSounds:Sound = new Sound(new URLRequest("inGame.mp3"));
gameSounds.play();
var gunShotSound:Sound = new Sound(new URLRequest("gunshot.mp3"));
import flash.events.MouseEvent;
import flash.display.MovieClip;
import flash.geom.Point;
stop();
gunBarrel.addEventListener(Event.ENTER_FRAME,  gunEnterFrame);
function gunEnterFrame(pEvt) {
    var mc = pEvt.currentTarget;
    var angleRadian = Math.atan2(mouseY - mc.y,mouseX - mc.x);
    var angleDegree = angleRadian * 180 / Math.PI;
    mc.rotation = angleDegree;
Mouse.hide();
main_crosshair.startDrag(true);
main_crosshair.addEventListener(MouseEvent.MOUSE_DOWN, crosshairFX);
function crosshairFX (e:MouseEvent):void{
          gunShotSound.play();
          var projectile:bullet = new bullet();
//projectile.x = parent.mouseX;
//          projectile.y = parent.mouseY;
          projectile.x = gunBarrel.x;
    projectile.y = gunBarrel.y;
    // Save the randian angle between the mouse and the tank
    // This angle will set the direction of the bullet
    projectile.angleRadian = Math.atan2(mouseY - gunBarrel.y, mouseX - gunBarrel.x);
    // Add an enter frame event on each bullet
    projectile.addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
          addChild(projectile);
          main_crosshair.gotoAndPlay(3);
// Velocity of each bullet
var speed = 8;
function bulletEnterFrame(pEvent) {
    // Get the current object (Bullet)
    var p = pEvent.currentTarget;
    // Move this bullet on each frames
    // On X axis use the cosinus angle
    p.x +=  Math.cos(p.angleRadian) * speed;
    // On Y axis use the sinus angle
    p.y +=  Math.sin(p.angleRadian) * speed;
    // Orient the bullet to the direction
    p.rotation = p.angleRadian * 180 / Math.PI;
    // You have to remove each created bullet
    // So after every moves you must check bullet position
    // If the bullet is out of the screen
    if (p.x < 0 || p.x > 400 || p.y < 0 || p.y > 400) {
        // Remove it from the display list
        removeChild(p);
        // /!\ AND REOMOVE HIS EVENT LISTER
        p.removeEventListener(Event.ENTER_FRAME, bulletEnterFrame);
When I try to run it though I get "1119: Access of possibly undefined property angleRadian through a reference with static type bullet."
What's wrong with my code?

cast p as a MovieClip and retest.  if that fails, click file/publish settings/swf, tick "permit debugging" and retest to see the line number with the problematic code.
function bulletEnterFrame(pEvent) {
    // Get the current object (Bullet)
    var p = MovieClip(pEvent.currentTarget);

Similar Messages

  • EventListener Help (undefined property Scene2)???

    I created a button (kitchen_btn1) in Scene 1 on my timeline where I want the user to click and go to Scene 2 and stop.
    stop();
    //import classes so we can have them in our movie
    import flash.display.*;
    import flash.events.*;
    import flash.display.MovieClip;
    import flash.display.Sprite;
    kitchen_btn1.addEventListener(MouseEvent.CLICK, kitchenCLICK);
    function kitchenCLICK (event:MouseEvent): void {
    gotoAndStop(Scene2);
    Everytime I try and test the movie I get an error message and my movie loops from scene 1 to scene 2 wiith out stopping.
    The error message reads:
    Scene 1, layer 'actions', Frame 1, Line12                                 1120: Access of undefined property Scene2.
    In Scene 2 in my Actions layer, I program the scene to stop on frame 1.
    stop();
    How do I define Scene 2 and get this to work properly?
    Thank you.....

    In AS3, the first argument in a gotoAnd... call is the frame identifier, so you should use gotoAndStop(1, "Scene 2");
    If you changed the name of Scene 2 to be Scene2 (no space) use that instead.
    If you have an error in your coding, it is normal for the file to just loop thru constantly without care for any code, such as the stop() you have in scene 2  (its way of throwing a fit)

  • Error 1010 undefined property

    really i should know why this is happening but my brain is is frozen!
    here it my code:
    stop();
    addEventListener(Event.ENTER_FRAME, loaderF);
    function loaderF(e:Event):void{
    var toLoad:Number = loaderInfo.bytesTotal;
    var loaded:Number = loaderInfo.bytesLoaded;
    var total:Number = loaded/toLoad;
    if(loaded == toLoad) {
      removeEventListener(Event.ENTER_FRAME, loaderF);
      gotoAndStop(2);
    } else {
      preloader_mc.preloaderFill_mc.scaleX = total;
      preloader_mc.percent_txt.text = Math.floor(total*100) + "%";
      preloader_mc.ofBytes_txt.text = loaded + "bytes";
      preloader_mc.totalBytes_txt.text = toLoad + "bytes";

    Is that the entire error message you get after you have selected the Permit Debugging option?  As is, it is telling you there is something in that function that is out of scope in some way (doesn't exist where that code executes, misnamed, etc).  I would have expected more info in the error message with the permit debugging enabled.
    Here's another tip, actually more than a tip, it's how to troubleshoot your code when things aren't working...  Use trace() commands to see what values things have and/or how far processing goes before things stop working.  In this case you are getting indications that something doesn't exist in the eyes of your code, so you need to trace each object to see what's coming up as undefined...
    addEventListener(Event.ENTER_FRAME, loaderF);
    function loaderF(e:Event):void{
    trace(loaderInfo.bytesTotal); // see if infoLoader exists
    var toLoad:Number = loaderInfo.bytesTotal;
    var loaded:Number = loaderInfo.bytesLoaded;
    var total:Number = loaded/toLoad;
    if(loaded == toLoad) {
      removeEventListener(Event.ENTER_FRAME, loaderF);
      gotoAndStop(2);
    } else {
         trace(preloader_mc); // then trace each object you assign values to
      preloader_mc.preloaderFill_mc.scaleX = total;
      preloader_mc.percent_txt.text = Math.floor(total*100) + "%";
      preloader_mc.ofBytes_txt.text = loaded + "bytes";
      preloader_mc.totalBytes_txt.text = toLoad + "bytes";

  • Error, please help? 1120: Access of undefined property event

    I have ActionScript 3 in two frames of my piece. In this 2nd frame, I get an error: "1120: Access of undefined property event" for "myXML=XML(event.target.data);" Can anyone help? I am not sure how to fix this.
    var myloader:URLLoader=new URLLoader();
    myloader.dataFormat=URLLoaderDataFormat.VARIABLES;
    myloader.addEventListener(Event.COMPLETE, guestBookWriteFunc);
    function guestBookWriteFunc(e:Event):void{
              var loader:URLLoader=URLLoader(e.target);
              var vars:URLVariables=new URLVariables(loader.data);
              var url:String="makexml.asp";
                   var sendloader:URLLoader=new URLLoader();
                   var request:URLRequest=new URLRequest(url);
                   trace("xml page created");
    var urlRequest:URLRequest=new URLRequest("makexml.asp");
    var urlLoader:URLLoader=new URLLoader();
    urlLoader.addEventListener(Event.COMPLETE, fileLoaded);
    urlLoader.load(urlRequest);
    //Setting up the XML
    var myXML:XML=new XML();
    myXML.ignoreWhitespace=true;
    var xmlList:XMLList;
    //Setting up the data holder Arrays
    var theUserName:Array=new Array();
    var theUserEmail:Array=new Array();
    var theUserComment:Array=new Array();
    function fileLoaded(e:Event):void{
         myXML=XML(event.target.data);
         xmlList=myXML.children();
         for (var i:int=0; i<xmlList.length(); i++){
              var xmlName:String=xmlList[i].username;
              var xmlEmail:String=xmlList[i].useremail;
              var xmlComment:String=xmlList[i].usercomment;
              theUserName.push(xmlName);
              theUserEmail.push(xmlEmail);
              theUserComment.push(xmlComment);
              if(i==xmlList.length()-1){
                   updateText();
    //Populating the text field to display messages
    var maximumMessages:Number=5;
    var currentMessages:Number=0;
    function updateText(){
         guestText.htmlText="";
         for (var i=currentMessages; i<maximumMessages; i++){
                   guestText.htmlText+=("<b><u>Name:</u></b>" + theUserName[i]);
                   guestText.htmlText+=("<b><u>Email:</u></b>" + theUserEmail[i]);
                   guestText.htmlText+=("<b><u>Comment:</u></b>" + theUserComment[i]);
                   guestText.htmlText+=(".................................");
                   currentMessages=i;
                   myScroller.scrollTarget=guestText;

    You are more likely to get a reply if you ask in the Flash or ActionScript forum.

  • Error Code 1120 access of undefined property...help please

    I am fairly new to Flash - I have CS4 and am not sure if I am in the right place to get help.
    I am trying to build a click through gallery with small buttons that you click on and it switches the larger image out as you click through.
    I copied over a gallery I had successfully built with 10 images.  The new gallery has 20 images.
    Basically the movie just runs continuously without being able to click on the thumbnails.
    I am getting the following compiler errors
    Scene1 Layer 'actions', Frame 1, Line 42 1120:Access of undefined property btn11_btn Source - btn11_btn.addEventListener(MouseEvent.CLICK, showimage11);
    I get this for image 11 through 20
    The following is my code
    stop();
    btn1_btn.addEventListener(MouseEvent.MOUSE_OVER, showimage1);
    function showimage1(event:MouseEvent):void {
    gotoAndPlay("label1");
    btn2_btn.addEventListener(MouseEvent.CLICK, showimage2);
    function showimage2(event:MouseEvent):void {
    gotoAndPlay("label2");
    btn3_btn.addEventListener(MouseEvent.CLICK, showimage3);
    function showimage3(event:MouseEvent):void {
    gotoAndPlay("label3");
    btn4_btn.addEventListener(MouseEvent.CLICK, showimage4);
    function showimage4(event:MouseEvent):void {
    gotoAndPlay("label4");
    btn5_btn.addEventListener(MouseEvent.CLICK, showimage5);
    function showimage5(event:MouseEvent):void {
    gotoAndPlay("label5");
    btn6_btn.addEventListener(MouseEvent.CLICK, showimage6);
    function showimage6(event:MouseEvent):void {
    gotoAndPlay("label6");
    btn7_btn.addEventListener(MouseEvent.CLICK, showimage7);
    function showimage7(event:MouseEvent):void {
    gotoAndPlay("label7");
    btn8_btn.addEventListener(MouseEvent.CLICK, showimage8);
    function showimage8(event:MouseEvent):void {
    gotoAndPlay("label8");
    btn9_btn.addEventListener(MouseEvent.CLICK, showimage9);
    function showimage9(event:MouseEvent):void {
    gotoAndPlay("label9");
    btn10_btn.addEventListener(MouseEvent.CLICK, showimage10);
    function showimage10(event:MouseEvent):void {
    gotoAndPlay("label10");
    btn11_btn.addEventListener(MouseEvent.CLICK, showimage11);
    function showimage11(event:MouseEvent):void {
    gotoAndPlay("label11");
    btn12_btn.addEventListener(MouseEvent.CLICK, showimage12);
    function showimage12(event:MouseEvent):void {
    gotoAndPlay("label12");
    btn13_btn.addEventListener(MouseEvent.CLICK, showimage13);
    function showimage13(event:MouseEvent):void {
    gotoAndPlay("label31");
    btn14_btn.addEventListener(MouseEvent.CLICK, showimage14);
    function showimage14(event:MouseEvent):void {
    gotoAndPlay("label14");
    btn15_btn.addEventListener(MouseEvent.CLICK, showimage15);
    function showimage15(event:MouseEvent):void {
    gotoAndPlay("label15");
    btn16_btn.addEventListener(MouseEvent.CLICK, showimage16);
    function showimage16(event:MouseEvent):void {
    gotoAndPlay("label16");
    btn17_btn.addEventListener(MouseEvent.CLICK, showimage17);
    function showimage17(event:MouseEvent):void {
    gotoAndPlay("label17");
    btn18_btn.addEventListener(MouseEvent.CLICK, showimage18);
    function showimage18(event:MouseEvent):void {
    gotoAndPlay("label18");
    btn19_btn.addEventListener(MouseEvent.CLICK, showimage19);
    function showimage19(event:MouseEvent):void {
    gotoAndPlay("label19");
    btn20_btn.addEventListener(MouseEvent.CLICK, showimage20);
    function showimage20(event:MouseEvent):void {
    gotoAndPlay("label20");
    Any advice would be great
    I dont know if I have to start from scratch - which would be a pain for sure
    Thanks

    I feel foolish - I solved my own problem!
    I figured out that I had not given buttons 11 - 20 an instance name
    Once I did that - voila problem solved
    Sorry for bothering you all.

  • Need help with error msg 1120: Access of undefined property

    I am not a coder, so I need coding help. Any help would be greatly appreciated.
    I'm doing a Flash banner that has clickTAG instructions from Google. The code they said to put on the button is:
    ClickTAG parameter code for ActionScript 3:
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    someButton_or_displayObject_to_receive_mouseClick.addEventListener(
          MouseEvent.CLICK,
          function(event: MouseEvent) : void {
          flash.net.navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");
    Replace someButton_or_displayObject_to_receive_mouseClick with the actual name of button that will receive the click.
    Note that it's not necessary to specify the destination URL for the ad anywhere in this code; this is taken care of through the usage of clickTAG. Also, depending on the structure of your Flash ad, it may be necessary to prepend "_root." or "_level0." to "clickTAG" above, resulting in "_root.clickTAG" or "_level0.clickTAG". It is strongly recommended to upload the ad into your account and verify that the ad is behaving normally prior to it going live, allowing time for any necessary changes.
    And this is the code I put in (btnClickTag is the name of my button):
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    btnClickTag.addEventListener(
          MouseEvent.CLICK,
          function(event: MouseEvent) : void {
          flash.net.navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");
    and this is the error I got:
    Scene1, Layer 'actions', Frame 1, 1120: Access of undefined property btnClickTag. btnClickTag.addEventListener(

    First, make sure you have assigned that name to the button via the properties panel, then, be sure to adjust the code so that it is not spread out over several lines... normally it needs to be on one line.  You should not nest the function in the event listener either, so try the following (no need for the import statements)...
    btnClickTag.addEventListener(MouseEvent.CLICK, tagClick);
    function tagClick(event:MouseEvent):void {
          navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");

  • 1119 - ERROR - Please Help

    Please help me with this..
    I am getting the following error
    -- 1119: Access of possibly undefined property result through
    a
    reference with static type mx.rpc.http.mxml:HTTPService..
    The code i am using is as follows.. I am getting the the
    error in
    the line where the tag <mx:Model> is defined.. Pleae
    let me know if
    I can use the xml file, which is in my local computer when
    using the
    following code..
    data.xml file is in the D drive of my computer
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%" height="100%"
    initialize="srv.send()">
    <mx:HTTPService id="srv" url="data.xml"/>
    <mx:Model
    id="results">{srv.result.data.result}</mx:Model>
    <mx:LineChart id="chart" dataProvider="{results}"
    showDataTips="true" width="100%" height="100%">
    <mx:horizontalAxis>
    <mx:CategoryAxis dataProvider="{results}"
    categoryField="month"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:Array>
    <mx:LineSeries yField="apple" name="Apple"/>
    <mx:LineSeries yField="orange" name="Orange"/>
    <mx:LineSeries yField="banana" name="Banana"/>
    </mx:Array>
    </mx:series>
    </mx:LineChart>
    </mx:Application>

    Thanks Manteratech. The solution given by you has worked. I
    am not getting the 1119 error.
    But there is one mor question to you.. Pls help me with this.
    <mx:Model
    id="results">{srv.lastResult.data.result}</mx:Model>
    In the above statement what is data.result ????? I have an
    XML file called data.xml and below are the contents..
    <data>
    <total month="Jan-03">
    <apple>200781</apple>
    <orange>225971</orange>
    <banana>161280</banana>
    </total>
    <total month="Feb-03">
    <apple>188249</apple>
    <orange>179611</orange>
    <banana>150795</banana>
    </total>
    <total month="Mar-03">
    <apple>229774</apple>
    <orange>214767</orange>
    <banana>189889</banana>
    </total>
    </data>
    ERROR - Error: Unknown Property: 'apple'.
    Please help me with this. Thanks

  • Undefined property when it does exist - Need Help

    Hello everyone,
    Im having trouble finding out wuy i keep recieving :
    Line 255 1120: Access of undefined property mandala_email_click.
    The function manda_email_click exists but it keeps showing this error...
    heres the script:
    //-------button-------//
    grupoMenu.mandalaMc.hitsMc.btEmail.addEventListener(MouseEvent.CLICK, mandala_email_click);
    //--------function------//
    private function mandala_faq_click(e:MouseEvent)
    GlobalSettings.btClicado = 11;
                   if (GlobalSettings.AREA != 9)
                        Root.targets[Targets.MAIN_LOADER].trocaBg(8);
                        Root.targets[Targets.BASE].escondeScroll();
                        Root.targets[Targets.MAIN_LOADER].removeConteudoBanner("internaFaq.swf");
                        if (! GlobalSettings.areaHomeProd)
                             Root.targets[Targets.MAIN_LOADER].removeConteudoInterna("internaHome.swf");
                        GlobalSettings.AREA = 9;
                        cor = 0x8EA78F;
                        Root.targets[Targets.HOME].corBanner(cor);
                        Root.targets[Targets.BASE].escondeScroll();
                        TweenMax.to(grupoMenu.mandalaMc.guiaMc, 1, {rotation:32.7});
                        TweenMax.to(grupoMenu.mandalaMc.lineMc, 1, {rotation:32.7});
                        TweenMax.to(grupoMenu.menuMc.bt1, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt2, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt3, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt4, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt5, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt6, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt7, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt8, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt9, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt10, 0.3, {alpha:0});
                        TweenMax.to(grupoMenu.menuMc.bt11, 0.3, {alpha:1});
                        //TweenMax.to(grupoMenu.menuMc.bt9, 0.3, { alpha:0 } );
                        TweenMax.to(grupoMenu.mandalaMc, 1.2, { y:StageObj.stage.stageHeight - 3, scaleX:0, scaleY:0,alpha:0, ease:Sine.easeIn, delay:0.25 } );
                        TweenMax.to(grupoMenu.mandalaMc, 1, { y:110, scaleX:0, scaleY:0,alpha:0, ease:Sine.easeOut, delay:2 } );
                        TweenMax.to(grupoMenu.mandalaMc, 1, { alpha:1, scaleX:1, scaleY:1,ease:Back.easeOut, delay:3} );
                        GlobalSettings.NT_produto = 1;
                        trace("GlobalSettings.NT_produto: ",GlobalSettings.NT_produto);
                        Root.targets[Targets.BASE].getXMLByWord("");
                        /*if (StageObj.stage.stageWidth < 850) {
                         TweenMax.to(Root.targets[Targets.MENU].mcRodapeEsq,.8,{y:StageObj.stage.stageHeight + 200});
                         TweenMax.to(Root.targets[Targets.MENU].mcRodapeDir,.8,{y:StageObj.stage.stageHeight + 200});
                        } else {
                        TweenMax.to(Root.targets[Targets.MENU].mcRodapeEsq,.8,{y:StageObj.stage.stageHeight - 5})
                        TweenMax.to(Root.targets[Targets.MENU].mcRodapeDir,.8,{y:StageObj.stage.stageHeight - 5})
                        posicionaRodape();
                        Root.targets[Targets.BASE].analyticsTrakerAreas("contato");
    I dont think theres a problem with the function because i copied another function exaclty the same , just changed the button variable and alpha value.
    Then again, i started using AS3 a few weeks ago.
    Maybe spaces between 2 functions??
    Well i hope someone can help me i would be grateful.

    In the code you included you don't have a function called "mandala_email_click" only one called "mandala_faq_click".
    If that function is included somewhere you'll need to provide that as well, otherwise it looks like your function is just named incorrectly.

  • Flash CS3 Compiler in Strict Mode errors out 1120: Access of undefined property

    Hi,
    I am following a code example in a book and have the final fla and as files, so I know the project works when fully coded.
    This is my problem:
    In the book, it tells me I can test the movie to make sure that it is working so far. When I do that, I get the error 1120: Access of undefined property.
    The "property" is a component instance. If I take the example completed code and remove everything up to the point I am at, I receive the same errors, so I know it's not a spelling/syntax mistake.
    I have a feeling it is the Compiler in Strict Mode. But, when I change it to Standard Mode, then I get error 5001: The name of package 'com.foundastionAS3.ch12' does not reflect the location of this file. etc.
    So, in the end, I feel if I can't check my code until everything is completely finished, how do I check it as I am working?
    Can someone help?
    Thanks.
    note:: attached is a file of the compiler when it gives me multiple 1120s.

    It's funny. I checked the code from the book, it does not have it imported, but it still works. When I complete the code without the import, it works.
    When I do add the import (which is the first thing I did when the errors were thrown) while building the code, it removes that error, but the same 1120's are there. I checked the properties of the components to make sure they are runtime, and also the properties of the actionscript is runtime, so what is it?
    All of the more complex examples in the book are throwing these errors while building the code. The problem is, how do I check my code while creating it... That's why when I found this post "http://forums.adobe.com/message/2844566#2844566" I replied.

  • I am getting an error while coding between CS5 and Flash CC specifically: Access of undefined property instrument_txt. I am using a book that is made for CS5. Is there a current book or resources for Actionscript 3.0 and Flash CC?

    Scene 1, Layer 'actions', Frame 1, Line 47, Column 2
    1120: Access of undefined property instrument_txt.
    this is my problem. any ideas. thanks

    I did try this and nothing happened, same error codes. The code works fine from CS5 and CS6 Flash versions. The animation runs well, the text displays where it should in the instrument_txt frame. It is when I try this in Flash CC that it creates the code error. here was an error that came up regarding text problems, something with FLT text converted to another text (I am not sure of the name of the text-type and the "FLT" I am not sure of either).
    thanks

  • Why am I getting "Error: Access of undefined property TextInputSkin." and "Error: Definition spark.skins.mobile:TextInputSkin could not be found." errors?

    I'm using amxmlc to build a SWF from an MXML source code file. I'm passing -swf-version=13 to amxmlc.
    In the MXML source, I have the following line:
    <s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
    I get these errors when running the amxmlc command:
    ...App.mxml(428):  Error: Access of undefined property TextInputSkin.
                <s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
    ...App.mxml(428):  Error: Definition spark.skins.mobile:TextInputSkin could not be found.
                <s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
    Why am I getting these errors? I need to be able to use the spark.skins.mobile.TextInputSkin in order to have use of the soft keyboard on iOS devices.

    you need the classes mentioned after 'Definition" in the lines below and they should be place in de/alex_uhlmann/animationpackage subdirectory of your default directory.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 2, Column 50
    1172: Definition de.alex_uhlmann.animationpackage.animation could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 3, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.drawing could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 4, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.utility could not be found.
    you also need penner's easing class in com/robertpanner

  • GotoAndStop error 1120:Access of undefined property on MC's loaded from .swc

    I am trying to tell a MovieClip added from a .swc library to do simple things like "gotoAndStop()" and all I get is a red X error message 1120: Access of undefined property whenever I do.
    I can add the MovieClip to the application and position it without any problem. I cannot make it do anything. In my Flash IDE library the CustomCheckBox()'s base class is
    import flash.display.MovieClip;
    import mx.flash.UIMovieClip;
         //  **** TRIED EACH IMPORT STATEMENT AND BOTH**** (NEITHER of which work at all).
    private var _checkPlaylist:MovieClip = new CustomCheckBox();
    private var _checkClassroom:MovieClip = new CustomCheckBox();
    _checkPlaylist.gotoAndStop(1);
    _checkClassroom.gotoAndStop(2);
    I can declare my CustomCheckBox as a MovieClip and in my Symbol Properties panel it's base class is — mx.flash.UIMovieClip — and it shows up just fine. I just can't make the thing stop or do anything else a MovieClip is supposed to be able to do.
    One of the other developers here who is way more advanced than I am also cannot get a ******* movie clip to stop either.
    I am new to Flash Builder — yet have been using Flash and AS3 for years and I have never had a more difficult time getting up to speed with a new technology than Flex / Flash Builder has become for me. I feel stupid that I keep spending days on end just trying to figure out basic things like this.

    I keep answering my own questions. When I added a gotoAndStop command to the referenced MC inside of the init function it stopped throwing that error at me. I was trying to initialize the button states after declaring them as MC variables, but the compiler did not like that.

  • HTTPService error:  Access of undefined property ...

    For some reason, I get the error message "Access of undefined
    property" for each element in the request ... and I only get the
    error messages if the HTTPService is placed in an MXML Component
    that is referenced from the main application. I don't get the error
    messages, however, if the service is placed in the main
    application.
    What am i missing?
    Here's my httpservice code:
    <mx:HTTPService id="userRequest" url="
    http://www.pixeldose.com/guestbook/comments.php"
    useProxy="false" method="POST">
    <mx:request xmlns="">
    <username>{username.text}</username>
    <emailaddress>{emailaddress.text}</emailaddress>
    <website>{website.text}</website>
    <comments>{comments.text}</comments>
    </mx:request>
    </mx:HTTPService>
    Thanks in advance.
    pixelflip

    I'm guessing that username, emailaddress, website and
    comments are all variables in your application - so they won't be
    in scope when you're in your MXML component.
    You could
    a) make all of these properties in your component and bind
    them in your applciation.
    b) make a single object with all these properties, make that
    object a public property in your component and bind the object from
    your application.
    c) make a bindable variable in your component called
    myApplication = Application.application as Application, and add
    that to the front of your bindings.
    d) make an public XML property in your component and define
    the XML literal in your application.
    e) put the HTTPService in your application.
    Tim

  • Load html errors undefined property File

    in the following code take 4 errors on 2 bold lines
    mdapp, Layer 'inputpage', Frame 1, Line 25 1046: Type was not found or was not a compile-time constant: File.
    mdapp, Layer 'inputpage', Frame 1, Line 26 1046: Type was not found or was not a compile-time constant: File.
    mdapp, Layer 'inputpage', Frame 1, Line 25 1120: Access of undefined property File.
    mdapp, Layer 'inputpage', Frame 1, Line 26 1120: Access of undefined property File.
    //Copy the html file outside the app directory
    var templateFile:File = File.applicationDirectory.resolvePath( "adview.html" );
    var workingFile:File = File.createTempFile();
    templateFile.copyTo( workingFile, true );
    try
        webView.loadURL( workingFile.url );
    where is my fault?

    applicationDirectory is used for files you package with your app. If you downloaded or generated the file then you might want applicationStorageDirectory.
    You also should check the .exists property before trying to do anything with a file.
    templateFile:File = File.applicationDirectory.resolvePath( "adview.html" );
    if (templateFile.exists)
        // exists, do stuff
    else
         trace('oops file does not exist');
    Never try to save to applicationDirectory either, use applicationStorageDirectory or one of the other temp cache paths in the documentation.

  • Need HELP with error!! Property has no getter method

    I am trying to display data info for each user by getting the user value which is already in the session but I keep getting this error.
    Exception: Error looking up property "info" in object type "test.info". Cause: Property 'info' has no getter method
    //info.java
    public class info {
    public info(){
      public Collection getinfo(String user) throws SQLException {
                    ArrayList list = new ArrayList();        
    String sql = "SELECT ADDR where USER= ?";
                    try {//connect statement
    pstmt = con.prepareStatement(sql);
    pstmt.setString(1, user);
    rs = pstmt.executeQuery();
    while(rs.next()) {
                    Infobean tsel = new Infobean(rs.getString("ADDR"));
    list.add(tsel);
                            return list;
    //Infobean.java
    public class Infobean
    private String ADDR;
    private String user;
    public Infobean(){
    public Infobean(String ADDR, String user){
    setAddr(Infobean);
    setUser(user);
    public String getAddr(){
    return ADDR;
    public String getUser(){
    return user;
    public void setAddr(String ADDR){
    this.ADDR = ADDR;
    public void setUser(String user){
    this.user= user;
    //.jsp file
    <jsp:useBean id="test" class="info" scope="request"/>
    <display:table name="test.info"/>

    sorry =\
    "package test;
    public class info();".
    test is the package.

Maybe you are looking for