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

Similar Messages

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

  • Trying to set alpha property, receive Error #1010

    Hi,
    I've loaded some external content using this code in the movie clip symbol:
    var thumbLoader16:Loader =  new Loader();
    thumbLoader16.contentLoaderInfo.addEventListener(Event.COMPLETE,thumbLoader16CompleteHandl er);
    function thumbLoader16CompleteHandler(e:Event):void{
      trace('Thumb16 has loaded.');
      addChild(thumbLoader16);
    thumbLoader16.load(new URLRequest('Thumbnails/Thumb16.jpg'));
    Then I created an instance of the symbol on the timeline called ThumbDisplay16.
    I want to dim ThumbDisplay16 until some other content loads.
    I can successfully set the alpha property using:
    ThumbDisplay16.alpha = .5;
    in the main timeline, but I can't figure out how to set it back to 1 using the other content loader.
    The other content uses this code to load into a movie clip symbol:
    var imgLoader16:Loader =  new Loader();
    imgLoader16.contentLoaderInfo.addEventListener(Event.COMPLETE,loaderCompleteHandler16);
    function loaderCompleteHandler16(e:Event):void{
      trace('Image16 has loaded.');
      addChild(imgLoader16);
      this.ThumbDisplay16.alpha = 1;
    imgLoader16.load(new URLRequest('Full/Full16.jpg'));
    Then I create an instance of th symbol on the timeline called PhotoDisplay16.
    However, the code:
    this.ThumbDisplay16.alpha = 1;
    doesn't affect the transparency of ThumbDisplay16 and I get an Output Error when it executes:
    TypeError: Error #1010: A term is undefined and has no properties.
    at Player15_fla::Photo16_44/loaderCompleteHandler16()
    Any thoughts about what I'm doing wrong?

    I belive you're correct. That's the way it's behaving anyway -- like I'm targeting the wrong thing. I've tried using the 'Insert target path' tool and selecting the instance of the object I'm trying to affect. I've also tried targeting the loader, the movie clip symbol, etc. and I still get errors.
    So to answer your question: The script that is attempting to affect the alpha of the other object is in a movie clip called 'Photo16' in the library. Photo16 has been added to the timeline manually as instance 'PhotoDisplay16'.
    So you can better understand what I'm attempting to do, I've posted the Flash file at http://www.ericlindberg.com/Adventure/Player15.fla. The objects in question are in layers Photos>Photo16 and Thumbs>Thumb16 (the thing I'm trying to alpha). These are the only two layers colored red. The library items are Photos>Photo16 (where the script attempting to do the alpha adjustment resides) and Thumbs>Thumb16. The script in frame 1 of the 'Scripts' layer is where I initially set the alpha to 0.5.
    If you want to see an example of the player in action, you can go to http://www.ericlindberg.com/Adventure/Adventure.html. This is a previous version before I attempted to add this dimming feature. Im addition to dimming the thumbnail image, I want to disable the thumbnail hotspot until the corresponding full-sized image loads.
    Thank you for attention to my dilemma thus far.
    Joe

  • 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

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

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

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

  • Error #1010: a term is undefined

    Error #1010: Een term is ongedefinieerd ....
    TypeError: Error #1010: a term is undefined and has no properties.
    at portfolio_fla::guestbook_MC_113/serverScoreFeedback()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    Hi, i have this fully working fla, wich sends and gets info out of a database
    its a frame and a actionframe
    when i put these in a mc on the mainstage of another fla, its not working anymore
    ive been searching like hell, but cant find the error
    probably something thats not imported in the maintimeline.as????
    this is the code
    maintimeline.as
    ActionScript 3 Code:
    package portfolio_fla
         import flash.display.*;
         import flash.events.*;
         import flash.net.*;
         import flash.text.*;
         dynamic public class MainTimeline extends MovieClip
              public var knop_cv:SimpleButton;
              public var knop_about:SimpleButton;
              public var knop_webdesign:SimpleButton;
              public var knop_photography:SimpleButton;
              public var knop_contact:SimpleButton;
              public var diafragma:MovieClip;
              public var geklikt:String;
              public var knop_home:SimpleButton;
              public var knop_guestbook:SimpleButton;
              public var home_text:TextField;
              public var about_text:TextField;
              public var contactform:MovieClip;
              public var guestbookform:MovieClip;
              var txtFile:String = "home.txt";
              var urlRequest:URLRequest = new URLRequest (txtFile);
              var loader:URLLoader = new URLLoader();
              var txtFile2:String = "about.txt";
              var urlRequest2:URLRequest = new URLRequest (txtFile2);
              var loader2:URLLoader = new URLLoader();
              function loadHandler(e:Event):void
                   var loader:URLLoader = URLLoader(e.target);
                   home_text.text = loader.data;
                   contactform.visible = false;
                   guestbookform.visible = false;
                   about_text.visible = false;
              function loadHandler2(e:Event):void
                   var loader2:URLLoader = URLLoader(e.target);
                   about_text.text = loader2.data;
              public function MainTimeline()
                   loader.addEventListener(Event.COMPLETE, loadHandler);
                   loader.load(urlRequest);
                   loader2.addEventListener(Event.COMPLETE, loadHandler2);
                   loader2.load(urlRequest2);
                   addFrameScript(0, frame1, 19, frame20);
                   return;
              }// end function
              function frame1()
                   knop_home.addEventListener(MouseEvent.CLICK, home);
                   knop_about.addEventListener(MouseEvent.CLICK, about);
                   knop_cv.addEventListener(MouseEvent.CLICK, cv);
                   knop_webdesign.addEventListener(MouseEvent.CLICK, webdesign);
                   knop_photography.addEventListener(MouseEvent.CLICK, photography);
                   knop_guestbook.addEventListener(MouseEvent.CLICK, guestbook);
                   knop_contact.addEventListener(MouseEvent.CLICK, contact);
                   stop();
                   return;
              }// end function
              function frame20()
                   stop();
                   return;
              }// end function
              function frame40()
                   stop();
                   return;
              }// end function
              function frame60()
                   stop();
                   return;
              }// end function
              function frame80()
                   stop();
                   return;
              }// end function
              function frame100()
                   stop();
                   return;
              }// end function
              function frame120()
                   stop();
                   return;
              }// end function
              function frame140()
                   stop();
                   return;
              }// end function
              public function contact(event:MouseEvent)
                   geklikt = "Contact";
                   this.diafragma.lamel1.gotoAndPlay(2);
                   this.diafragma.lamel2.gotoAndPlay(2);
                   this.diafragma.lamel3.gotoAndPlay(2);
                   this.diafragma.lamel4.gotoAndPlay(2);
                   this.diafragma.lamel5.gotoAndPlay(2);
                   this.diafragma.lamel6.gotoAndPlay(2);
                   this.diafragma.lamel7.gotoAndPlay(2);
                   this.diafragma.lamel8.gotoAndPlay(2);
                   this.diafragma.lamel9.gotoAndPlay(2);
                   this.diafragma.lamel10.gotoAndPlay(2);
                   return;
              }// end function
              public function guestbook(event:MouseEvent)
                   geklikt = "Guestbook";
                   this.diafragma.lamel1.gotoAndPlay(2);
                   this.diafragma.lamel2.gotoAndPlay(2);
                   this.diafragma.lamel3.gotoAndPlay(2);
                   this.diafragma.lamel4.gotoAndPlay(2);
                   this.diafragma.lamel5.gotoAndPlay(2);
                   this.diafragma.lamel6.gotoAndPlay(2);
                   this.diafragma.lamel7.gotoAndPlay(2);
                   this.diafragma.lamel8.gotoAndPlay(2);
                   this.diafragma.lamel9.gotoAndPlay(2);
                   this.diafragma.lamel10.gotoAndPlay(2);
                   return;
              }// end function
              public function photography(event:MouseEvent)
                   geklikt = "Photography";
                   this.diafragma.lamel1.gotoAndPlay(2);
                   this.diafragma.lamel2.gotoAndPlay(2);
                   this.diafragma.lamel3.gotoAndPlay(2);
                   this.diafragma.lamel4.gotoAndPlay(2);
                   this.diafragma.lamel5.gotoAndPlay(2);
                   this.diafragma.lamel6.gotoAndPlay(2);
                   this.diafragma.lamel7.gotoAndPlay(2);
                   this.diafragma.lamel8.gotoAndPlay(2);
                   this.diafragma.lamel9.gotoAndPlay(2);
                   this.diafragma.lamel10.gotoAndPlay(2);
                   return;
              }// end function
              public function webdesign(event:MouseEvent)
                   geklikt = "Webdesign";
                   this.diafragma.lamel1.gotoAndPlay(2);
                   this.diafragma.lamel2.gotoAndPlay(2);
                   this.diafragma.lamel3.gotoAndPlay(2);
                   this.diafragma.lamel4.gotoAndPlay(2);
                   this.diafragma.lamel5.gotoAndPlay(2);
                   this.diafragma.lamel6.gotoAndPlay(2);
                   this.diafragma.lamel7.gotoAndPlay(2);
                   this.diafragma.lamel8.gotoAndPlay(2);
                   this.diafragma.lamel9.gotoAndPlay(2);
                   this.diafragma.lamel10.gotoAndPlay(2);
                   return;
              }// end function
              public function cv(event:MouseEvent)
                   geklikt = "Cv";
                   this.diafragma.lamel1.gotoAndPlay(2);
                   this.diafragma.lamel2.gotoAndPlay(2);
                   this.diafragma.lamel3.gotoAndPlay(2);
                   this.diafragma.lamel4.gotoAndPlay(2);
                   this.diafragma.lamel5.gotoAndPlay(2);
                   this.diafragma.lamel6.gotoAndPlay(2);
                   this.diafragma.lamel7.gotoAndPlay(2);
                   this.diafragma.lamel8.gotoAndPlay(2);
                   this.diafragma.lamel9.gotoAndPlay(2);
                   this.diafragma.lamel10.gotoAndPlay(2);
                   return;
              }// end function
              public function about(event:MouseEvent)
                   geklikt = "About";
                   this.diafragma.lamel1.gotoAndPlay(2);
                   this.diafragma.lamel2.gotoAndPlay(2);
                   this.diafragma.lamel3.gotoAndPlay(2);
                   this.diafragma.lamel4.gotoAndPlay(2);
                   this.diafragma.lamel5.gotoAndPlay(2);
                   this.diafragma.lamel6.gotoAndPlay(2);
                   this.diafragma.lamel7.gotoAndPlay(2);
                   this.diafragma.lamel8.gotoAndPlay(2);
                   this.diafragma.lamel9.gotoAndPlay(2);
                   this.diafragma.lamel10.

    well, ive tried on putting the frames not in the MC, but on the mainstage
    and the actionscript i put it into my other maintimeline.as
    all works good, untill i paste the piece of
            name_txt.text     = "";
            score_txt.text    = "";
            feedback_txt.text = "";
    then i get
    ReferenceError: Error #1065: Variabele name_txt is not defined
        at portfolio_fla::MainTimeline$cinit()
        at global$init()
    why is this?
    the code works on its own, then i didnt need to define name_txt
    this is how maintimeline.as looks like now
    package portfolio_fla
        import flash.display.*;
        import flash.events.*;
        import flash.net.*;
        import flash.text.*;
        dynamic public class MainTimeline extends MovieClip
            public var knop_cv:SimpleButton;
            public var knop_about:SimpleButton;
            public var knop_webdesign:SimpleButton;
            public var knop_photography:SimpleButton;
            public var knop_contact:SimpleButton;
            public var diafragma:MovieClip;
            public var geklikt:String;
            public var knop_home:SimpleButton;
            public var knop_guestbook:SimpleButton;
            public var home_text:TextField;
            public var about_text:TextField;
            public var contactform:MovieClip;   
            public var guestbookform:MovieClip;
            var txtFile:String = "home.txt";
            var urlRequest:URLRequest = new URLRequest (txtFile);
            var loader:URLLoader = new URLLoader();
            var txtFile2:String = "about.txt";
            var urlRequest2:URLRequest = new URLRequest (txtFile2);
            var loader2:URLLoader = new URLLoader();
            const SERVER_FILE:String  = "http://localhost/portfolio/highscore_board.php";
    const SENT_SUCCESS:String = "Successful";
    const SENT_FAILED:String  = "Unsuccessful";
    const NUM_OF_SCORES:int      = 8;
            function submitScoreToServer(evt:MouseEvent):void {
        var passChecks:Boolean = true;
        if(score_txt.text.length < 1) {
            feedback_txt.text = "Please fill in a score.";
            passChecks = false;
        if(name_txt.text.length < 1) {
            feedback_txt.text = "Please fill in a name.";
            passChecks = false;
        if(passChecks) {
            submit_btn.enabled = false;
            feedback_txt.text = "Submitting score...";
            var urlVars:URLVariables = new URLVariables();
            var urlReq:URLRequest      = new URLRequest(SERVER_FILE);
            var ldr:URLLoader           = new URLLoader();
            urlVars.todo  = "insert";
            urlVars.name  = name_txt.text;
            urlVars.score = score_txt.text;
            urlReq.data   = urlVars;
            urlReq.method = URLRequestMethod.POST;
            ldr.addEventListener(Event.COMPLETE, serverInsertFeedback);
            ldr.load(urlReq);
    function serverInsertFeedback(evt:Event):void {
        var ldr:URLLoader = evt.target as URLLoader;
        var urlVars:URLVariables = new URLVariables(ldr.data);
        if(urlVars.result == SENT_SUCCESS) {
            feedback_txt.text = "Score sent successfully.";
            getScoreFromServer();
        } else if(urlVars.result == SENT_FAILED) {
            feedback_txt.text = "Problem submitting score to server.";
        submit_btn.enabled = true;
    function serverScoreFeedback(evt:Event):void {
        var ldr:URLLoader = evt.target as URLLoader;
        var urlVars:URLVariables = new URLVariables(ldr.data);
        if(urlVars.result == SENT_SUCCESS) {
            for(var i:int = 1; i <= NUM_OF_SCORES; i++) {
                root["boardName0"  + i + "_txt"].text = "Unoccupied";
                root["boardScore0" + i + "_txt"].text = "-";
                if(urlVars["name0"  + i] != null) {
                    root["boardName0"  + i + "_txt"].text = urlVars["name0"  + i];
                    root["boardScore0" + i + "_txt"].text = urlVars["score0" + i];
            feedback_txt.text = "Score board has been updated.";
        } else if(urlVars.result == SENT_FAILED) {
            feedback_txt.text = "There was a problem retrieving the scores.";
    function getScoreFromServer():void {
        feedback_txt.text = "Retrieving scores...";   
        var urlVars:URLVariables = new URLVariables();
        var urlReq:URLRequest      = new URLRequest(SERVER_FILE);
        var ldr:URLLoader           = new URLLoader();
        urlVars.todo  = "score";
        urlReq.data   = urlVars;
        urlReq.method = URLRequestMethod.POST;
        ldr.addEventListener(Event.COMPLETE, serverScoreFeedback);
        ldr.load(urlReq);
            name_txt.text     = "";
            score_txt.text    = "";
            feedback_txt.text = "";
    submit_btn.addEventListener(MouseEvent.CLICK, submitScoreToServer);
    getScoreFromServer();
            function loadHandler(e:Event):void
                var loader:URLLoader = URLLoader(e.target);
                home_text.text = loader.data;
                contactform.visible = false;
                about_text.visible = false;
            function loadHandler2(e:Event):void
                var loader2:URLLoader = URLLoader(e.target);
                about_text.text = loader2.data;
            public function MainTimeline()
            loader.addEventListener(Event.COMPLETE, loadHandler);
            loader.load(urlRequest);
            loader2.addEventListener(Event.COMPLETE, loadHandler2);
            loader2.load(urlRequest2);
            addFrameScript(0, frame1, 19, frame20);
                return;
            }// end function
            function frame1()
                knop_home.addEventListener(MouseEvent.CLICK, home);
                knop_about.addEventListener(MouseEvent.CLICK, about);
                knop_cv.addEventListener(MouseEvent.CLICK, cv);
                knop_webdesign.addEventListener(MouseEvent.CLICK, webdesign);
                knop_photography.addEventListener(MouseEvent.CLICK, photography);
                knop_guestbook.addEventListener(MouseEvent.CLICK, guestbook);
                knop_contact.addEventListener(MouseEvent.CLICK, contact);
                stop();
                return;
            }// end function
            function frame20()
                stop();
                return;
            }// end function
             function frame40()
                stop();
                return;
            }// end function
             function frame60()
                stop();
                return;
            }// end function
             function frame80()
                stop();
                return;
            }// end function
             function frame100()
                stop();
                return;
            }// end function
            function frame120()
                stop();
                return;
            }// end function
            function frame140()
                stop();
                return;
            }// end function
            public function contact(event:MouseEvent)
                geklikt = "Contact";
                this.diafragma.lamel1.gotoAndPlay(2);
                this.diafragma.lamel2.gotoAndPlay(2);
                this.diafragma.lamel3.gotoAndPlay(2);
                this.diafragma.lamel4.gotoAndPlay(2);
                this.diafragma.lamel5.gotoAndPlay(2);
                this.diafragma.lamel6.gotoAndPlay(2);
                this.diafragma.lamel7.gotoAndPlay(2);
                this.diafragma.lamel8.gotoAndPlay(2);
                this.diafragma.lamel9.gotoAndPlay(2);
                this.diafragma.lamel10.gotoAndPlay(2);
                return;
            }// end function
           public function guestbook(event:MouseEvent)
                geklikt = "Guestbook";
                this.diafragma.lamel1.gotoAndPlay(2);
                this.diafragma.lamel2.gotoAndPlay(2);
                this.diafragma.lamel3.gotoAndPlay(2);
                this.diafragma.lamel4.gotoAndPlay(2);
                this.diafragma.lamel5.gotoAndPlay(2);
                this.diafragma.lamel6.gotoAndPlay(2);
                this.diafragma.lamel7.gotoAndPlay(2);
                this.diafragma.lamel8.gotoAndPlay(2);
                this.diafragma.lamel9.gotoAndPlay(2);
                this.diafragma.lamel10.gotoAndPlay(2);
                return;
            }// end function
           public function photography(event:MouseEvent)
                geklikt = "Photography";
                this.diafragma.lamel1.gotoAndPlay(2);
                this.diafragma.lamel2.gotoAndPlay(2);
                this.diafragma.lamel3.gotoAndPlay(2);
                this.diafragma.lamel4.gotoAndPlay(2);
                this.diafragma.lamel5.gotoAndPlay(2);
                this.diafragma.lamel6.gotoAndPlay(2);
                this.diafragma.lamel7.gotoAndPlay(2);
                this.diafragma.lamel8.gotoAndPlay(2);
                this.diafragma.lamel9.gotoAndPlay(2);
                this.diafragma.lamel10.gotoAndPlay(2);
                return;
            }// end function
           public function webdesign(event:MouseEvent)
                geklikt = "Webdesign";
                this.diafragma.lamel1.gotoAndPlay(2);
                this.diafragma.lamel2.gotoAndPlay(2);
                this.diafragma.lamel3.gotoAndPlay(2);
                this.diafragma.lamel4.gotoAndPlay(2);
                this.diafragma.lamel5.gotoAndPlay(2);
                this.diafragma.lamel6.gotoAndPlay(2);
                this.diafragma.lamel7.gotoAndPlay(2);
                this.diafragma.lamel8.gotoAndPlay(2);
                this.diafragma.lamel9.gotoAndPlay(2);
                this.diafragma.lamel10.gotoAndPlay(2);
                return;
            }// end function
           public function cv(event:MouseEvent)
                geklikt = "Cv";
                this.diafragma.lamel1.gotoAndPlay(2);
                this.diafragma.lamel2.gotoAndPlay(2);
                this.diafragma.lamel3.gotoAndPlay(2);
                this.diafragma.lamel4.gotoAndPlay(2);
                this.diafragma.lamel5.gotoAndPlay(2);
                this.diafragma.lamel6.gotoAndPlay(2);
                this.diafragma.lamel7.gotoAndPlay(2);
                this.diafragma.lamel8.gotoAndPlay(2);
                this.diafragma.lamel9.gotoAndPlay(2);
                this.diafragma.lamel10.gotoAndPlay(2);
                return;
            }// end function
           public function about(event:MouseEvent)
                geklikt = "About";
                this.diafragma.lamel1.gotoAndPlay(2);
                this.diafragma.lamel2.gotoAndPlay(2);
                this.diafragma.lamel3.gotoAndPlay(2);
                this.diafragma.lamel4.gotoAndPlay(2);
                this.diafragma.lamel5.gotoAndPlay(2);
                this.diafragma.lamel6.gotoAndPlay(2);
                this.diafragma.lamel7.gotoAndPlay(2);
                this.diafragma.lamel8.gotoAndPlay(2);
                this.diafragma.lamel9.gotoAndPlay(2);
                this.diafragma.lamel10.gotoAndPlay(2);
                return;
            }// end function
            public function home(event:MouseEvent)
                geklikt = "Home";
                this.diafragma.lamel1.gotoAndPlay(2);
                this.diafragma.lamel2.gotoAndPlay(2);
                this.diafragma.lamel3.gotoAndPlay(2);
                this.diafragma.lamel4.gotoAndPlay(2);
                this.diafragma.lamel5.gotoAndPlay(2);
                this.diafragma.lamel6.gotoAndPlay(2);
                this.diafragma.lamel7.gotoAndPlay(2);
                this.diafragma.lamel8.gotoAndPlay(2);
                this.diafragma.lamel9.gotoAndPlay(2);
                this.diafragma.lamel10.gotoAndPlay(2);
                return;
            }// end function

  • Error 1010: term is undefined.... ?

    i am running into the error: "#1010: A term in undefined and has no properties."
    this is refering to the line:
    trace ("btnLMain.langBoxS.name: " + btnLMain.langBoxS.name);
    but i dont understand how this could be as i have each of the above defined as shown here:
    var langBox:Shape = new Shape();
    langBox.graphics.beginFill(0x000000, .75)
    langBox.graphics.drawRect(0, 0, bxW, bxH); //i have bxW and bxH defined earlier in my code
    langBox.graphics.endFill();
    var langBoxS:MovieClip = new MovieClip();
    langBoxS.name "da Box";
    langBoxS.addChild(langBox);
    var btnLMain:MovieClip = new MovieClip();
    btnLMain.addChild(langBoxS);
    btnLMain.x = 800;
    btnLMain.x = 800;
    addChild(btnLMain);
    trace ("btnLMain.langBoxS.name: " + btnLMain.langBoxS.name);
    do you know what's possibly wrong?

    You cannot use dot notation to target dynamically added children... While it will work for manually defined objects, as Andrei showed, you will need to use the getChild... methods if you want to try to target thru parent objects.  But you do not need to target thru parent objects at all since you already have a direct reference to the intended target since it was declared independently...
    trace ("btnLMain.langBoxS.name: " + langBoxS.name);

  • 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

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

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

  • AreaSeries on chart -- Error 1010 triggered

    After reassigning the dataProvider array of my area chart, I
    get the following error:
    TypeError: Error #1010: A term is undefined and has no
    properties.
    at mx.charts.chartClasses::GraphicsUtilities$/drawPolyLine()
    at
    mx.charts.renderers::AreaRenderer/mx.charts.renderers:AreaRenderer::updateDisplayList()
    at mx.skins::ProgrammaticSkin/validateDisplayList()
    at mx.managers::LayoutManager/::validateDisplayList()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    at mx.managers::LayoutManager/validateNow()
    at mx.controls::ComboBox/::displayDropdown()
    at
    mx.controls::ComboBox/mx.controls:ComboBox::downArrowButton_buttonDownHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::Button/
    http://www.adobe.com/2006/flex/mx/internal::buttonPressed()
    at mx.controls::Button/mx.controls:Button::mouseDownHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::ComboBase/::textInput_mouseEventHandler()
    The strange thing is that the new array has 6 items! I check
    its length (length greater than 2) before I assign it. However,
    when the debugger breaks in drawPolyLine, the "pts" matrix has only
    1 item. I don't know how the array goes from having 6 items to only
    1. The stacktrace does not trace back to my code, so I am having
    trouble debugging this.
    I thought that setting the series' filterData property to
    true would prevent this from occurring, but it didn't work.
    Any ideas on how I can figure this out?
    Thank you,
    -C

    relaxatraja:
    Using permit debugging definitely helped me nail down the issue. No more 1010's.  This is a great feature.
    A couple more questions if I may - the site still experiences slow response when clicking from one song to another.  Presently I have the .mp3 files for all of the seven CDs in one folder.
    Will I increase response time between song choices if I create individual folders for each CD rather than one large folder?
    Will I increase response time by reducing .mp3 file sound quality, therefore increasing loading speed - (this one seemsan  obvious yes - and sound quality is already reasonably small)?
    Is it possibly due to the first song choice (which has fast responee time) having to fully complete loading before a subsequent song choice can start to load - and if this is the case - can I script in a stop load function when a new choice is made ?
    mememellowcore

Maybe you are looking for

  • K8N Neo4 Platinum random lock-ups and BSOD

    I built a new PC about 3 months ago and from day 1 it has always locked up / frozen at random intervals. Sometimes it also BSOD's with a Machine Check Exception. Seems to lock up / freeze more often when have multifple windows open eg. Multiple IE ru

  • A TOUCHSCREEN ISSUE WITH C7-00

    I purchased my C7-00 about a month ago and I find it very good except that sometimes the touchscreen behaves strangely. When the phone/screen is held in portrait mode, the lower part of the screen (options, ... , call buttons at the bottom of screen)

  • USING LONG ETHERNET CABLE FROM HUB TO VISION BOX

    Hi, just ordered bt vision and wondered if anyone could tell me if it is ok to connect the hub to the vision box with a long Ethernet cable, 20m long. From the video clips on setting the system up they say if over 2 meters you must use power adaptors

  • 1099 report

    HI Gurus, pleae advise I ran the 1099 report..S_P00_07000134. I gave me the withholding tax for 2007 invoices-payments. It doesnt give me the invoices posted in 2007 but paid in 2008, Please advise as where to get this information Thanks in advance M

  • CAPITAL ONE DISPUTED LATE PAYMENT WITHOUT MY PERMISSION!

    HELP! I am in the processes of working on 3 late payments on my Capital One card. I called yesterday and very clearly stated to the rep that I was looking for a GW removal and NOT a dispute. He gave me the typical scripted speech that they would make