Error 1120 in Flash CS3...Access of Undefined Property.

PLEASE HELP!!
I am new at Flash, but am getting the hang of it pretty quickly.
So far I've got a nice animation of an intro going, which is made up of  90 frames.
At the 90th frame I put a (stop) action...test it and it stops as it's supposed to.
I add another layer for other actions and, following code almost verbatum from a website, I declare 3 buttons, and give them functions.
Code shown below:
arch_btn.addEventListener(MouseEvent.CLICK, archPageClick);
studio_btn.addEventListener(MouseEvent.CLICK, studioPageClick);
personal_btn.addEventListener(MouseEvent.CLICK, personalPageClick);
function archPageClick(e:MouseEvent):void
    gotoAndStop("Architecture");
function studioPageClick(event:MouseEvent):void
    gotoAndStop("Studio");
function personalPageClick(event:MouseEvent):void
    gotoAndStop("Personal");
I have checked other sites for the error (1120). From what I get from them, is that my buttons are not named correctly or the Instance names do no correlate to the buttons in the actions...Well this is not correct. I have double and triple checked the instance names and they are correct. They are exactly as listed above. Here is a screen shot of my Architecture button...
As you can see the instance name of the Architecture button is "arch_btn". Same as in the action code. I don't understand why I'm getting this error!! I get it for all 3 of the buttons btw.
***ALSO...after I add this layer of actions for my buttons, the stop action on the other layer stops working. The movie play right through frame 90 now...After I delete the layer with the button actions, the stop action layer works again...Weird???
If anyone could help it would be greatly appreciated!
Thank you.
Message was edited by: mmellonphotography

When you have coding issues, files will not usually play correctly, so once you fix the coding issue it should play fine again.
Make sure you have assigned the instance names to the buttons in all keyframes, not just the ones in frame 90.  If you didn't name them in frame 75, that lack of a name will be inherited in frame 90.

Similar Messages

  • 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

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

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

  • CS4 Flash Access of undefined property ...

    cs4 flash don't compile cs3 code.
    I get 35 errors Access of undefined property and Attempted
    access of inaccessible property.
    What difference in lang?
    Where I can read about?

    I have found difference.
    I used nondocumented feature, place some class definitions
    under public class
    package{
    public class Main{
    var a:A= new A;
    var b:B= new B;
    class A{
    class B{

  • Getting the very lovely 1120: Access of undefined property...

    Hi Guys n Gals,
    I’m getting the "1120: Access of undefined property texttwo_mc." error I've done this code before and no issue.
    What I’m doing is simple, click a button and it will go to a movie clip within a movie clip to start the label named "_go", and this error accrued. The MC I’m calling is on the beginning of the timeline.
    Thanks
    BTW for some odd reason my SWF keeps deleting it self, thats on 2 differnt PC's ones CS5 and CS4.

    Hi Ned,
    Ok ill be as detailed as possible.:
    In the main stage I have a MC with a instance name of texttwo_mc, within that i have a mocvie clip "about button" that acts like a button and its on 5 on the timeline.
    The "about button" is not viable till timeline 5 but there's a stop on timeline 1 and it goes to timeline 5 (to make itself viable) when its told to in action scripting. And there's a button on the main stage that makes it go from 1 to 5 in action scripting.
    and thats where the eror is.
    BTW the "about button" is on timeline 1..just not viable till 5.

  • FB 4.5: Flash Professinal Project - Access to undefined property

    I have a "Flash Professinal Project" in my Flash Builder. So, I have a FLA file with the scene and some symbols on it. And a pack of AS files with code.
    The trouble is with symbols in FLA file.
    For example, I have a movieclip with instance name "dlg" on my scene.
    And when I try to access this movieclip like "dlg.gotoAndStop(2)" in some code, the Flash Builder 4.5 underlines "dlg" and puts the orange question mark to the left saying "Access to undefined property dlg". Of course, FB doesn't know about existance of this movieclip. But 4.0 version didn't underline it orange.
    Project compiles ok, but some code parts looks very annoying.
    Half of my code looks like this:
    The additional uncomfortable thing is that when I use FB4 and type dlg. , it opens the autocomplete dialog assuming that "dlg" is a MovieClip by default. FB4.5 doesn't do autocomplete even after I type "dlg.gotoAndS" and press "Ctrl+Space".
    So, is there any way to get rid of this annoying orange question makrs? Maybe, there's a way to describe such instances specially for FB so it can find out their existance? Or just return the way it was in 4.0 ?

    Ok, I have finally found my issue. the "switch" syntax must have changed somewhere between Flex Builder 3 and Flash Builder 4.5.1
    This used to work in Flex Builder 3. The 'case "t", "tr"' will cause code completion to stop working, and also give the "?" warnings all over the souce. Jusr use a separate line for each "case" fixed the issue.
    This has been extremely frustrating for me, I don't have a half a day to google all over with no luck. I wound up making a copy of the project and commenting out most of the code a bit at a time to find this. Sure hope this helps someone else out there!
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                         xmlns:s="library://ns.adobe.com/flex/spark"
                                                         xmlns:mx="library://ns.adobe.com/flex/mx"
                                                         invoke="onInvoke(event);"  >
      <fx:Script>
                        <![CDATA[
                                  private function onInvoke(invokeEvent:flash.events.InvokeEvent):void {
                                            var s:String;
                                            try {
                                                      switch ( s.toLowerCase() )
                                                                case "t", "tr":
                                                                case "trace":
                                                                          s = "trace";
                                                                          break;
                                                                case "l":
                                                                case "log":
                                                                          s = "log";
                                                                          break;
                                                                default:
                                                                          s = "?";
                                                                          break;
                                            catch ( err:Error ) {
                                                      s = "error";
                        ]]>
      </fx:Script>
      <fx:Declarations>
      </fx:Declarations>
    </s:WindowedApplication>

  • 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

  • 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

  • Access of undefined property _btn (problems with all my buttons)

    I keep getting this error:
    Scene 1, Layer 'actionscript', Frame 1, Line 1
    1120: Access of undefined property tennis1_btn.
    Scene 1, Layer 'actionscript', Frame 1, Line 7
    1120: Access of undefined property tennis2_btn.
    Scene 1, Layer 'actionscript', Frame 1, Line 13
    1120: Access of undefined property tennis3_btn.
    Scene 1, Layer 'actionscript', Frame 1, Line 19
    1120: Access of undefined property tennis4_btn.
    Scene 1, Layer 'actionscript', Frame 1, Line 25
    1120: Access of undefined property tennis5_btn.
    Scene 1, Layer 'actionscript', Frame 1, Line 31
    1120: Access of undefined property tennis6_btn.
    Here is a screen print of my code
    I'll also paste below:
    tennis1_btn.addEventListener(MouseEvent.CLICK, gotennis1);
    function gotennis1(event:MouseEvent):void {
              var gotennis1url:URLRequest= new URLRequest ("juniortennis.php");
              navigateToURL(gotennis1url,"_parent");
    tennis2_btn.addEventListener(MouseEvent.CLICK, gotennis2);
    function gotennis2(event:MouseEvent):void {
              var gotennis2url:URLRequest= new URLRequest ("adulttennis.php");
              navigateToURL(gotennis2url,"_parent");
    tennis3_btn.addEventListener(MouseEvent.CLICK, gotennis3);
    function gotennis3(event:MouseEvent):void {
              var gotennis3url:URLRequest= new URLRequest ("http://abbottsports.com/membership/memberships.php#tennis");
              navigateToURL(gotennis3url,"_parent");
    tennis4_btn.addEventListener(MouseEvent.CLICK, gotennis4);
    function gotennis4(event:MouseEvent):void {
              var gotennis4url:URLRequest= new URLRequest ("staff.php");
              navigateToURL(gotennis4url,"_parent");
    tennis5_btn.addEventListener(MouseEvent.CLICK, gotennis5);
    function gotennis5(event:MouseEvent):void {
              var gotennis5url:URLRequest= new URLRequest ("calendar.php");
              navigateToURL(gotennis5url,"_parent");
    tennis6_btn.addEventListener(MouseEvent.CLICK, gotennis6);
    function gotennis6(event:MouseEvent):void {
              var gotennis6url:URLRequest= new URLRequest ("tenniscourts.php");
              navigateToURL(gotennis6url,"_parent");
    Please help:  i have a couple of them types of menus but this is the only one that is giving me problems.  Here is the website I'm using them on:
    www.abbottsports.com  Working
    http://abbottsports.com/football/football.php Working
    http://abbottsports.com/motocross/motocross.php working
    I was adding another on to our tennis page. I just copied the flash files to my tennis folders and renamed everything tennis instead of football including the buttons like you can see on the right side of the page in the photo.
    I'm pretty sure it has something to do with me renaming the button, because I never changed anything in the code except replacing the word football to tennis in every spot. and renamed my buttons to tennis instead of football.
    Thanks for any assistance.

    yeah they are all named right.
    tennis1_btn
    tennis2_btn
    tennis3_btn
    tennis4_btn
    tennis5_btn
    tennis6_btn
    I uploaded it here:
    http://abbottsports.com/tennis/flash/tennismenu.swf
    http://abbottsports.com/tennis/flash/tennismenu.fla
    http://abbottsports.com/tennis/flash/tennismenu.html

  • Simple question (Trace issue) Access of undefined property

    Having a strange issue with my new Flash Builder and the trace command. Anyone seen this before and why?
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
         <fx:Declarations>
               <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
    <fx:Script>
         <![CDATA[
              var myString:String = "Help";
              trace(myString);
              //Error 1120: Access of undefined property myString.
         ]]>
    </fx:Script>
    </s:Application>

    your trace command isn't in a function
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"          
                   xmlns:s="library://ns.adobe.com/flex/spark"          
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" applicationComplete="doThis()">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                private var myString:String = "Help";
                private function doThis():void
                    trace(myString);
            ]]>
        </fx:Script>
    </s:Application>

  • Flex Builder marking a sample code invalid "Access of undefines property"?

    Hey,
    I used the code from this link: http://tdotblog.info/?q=node/6
    When i put it into Flex Builder 3, it has several issues with the code like "Access of undefined property FileStream" (or File).
    When I run the application, only the typical gray background appears.
    What am I doing wrong?
    Thanks, Erthy

    You probably just need to have import statements for these classes in your code:
    import flash.filesystem.File;
    import flash.filesystem.FileStream;
    import flash.filesystem.FileMode;
    It looks like whoever wrote that tutorial forgot to add those. If you were typing in the code rather than pasting it in, the import statements would get automatically added, so maybe the author just didn't notice that they were necessary.
    Related Flex Builder tip:
    If you get this error for any class, it means that the compiler can't find the class definition (which usually means you're missing an import statement). The easiest way to add the import statement is to put your cursor at the end of the class name (e.g. right after the word File) and hit Ctrl-Enter (on Windows -- probably Cmd-Enter on Mac). Ctrl-Enter is the shortcut to trigger a code hint, but if you trigger it that way it will recognize the class and just add the import statement for you.

Maybe you are looking for

  • How to create a metric in BOXI R3 performance Management

    Hi All, Can any one tell me how to create a metric (goals and calendar) in BOXI R3. In BOXI R2 there is a separate module where we can create metrics, golas and calendar... Is there any separate module like that in BOXI R3 or  not. When I logged into

  • Excel Import/Export in RulesManager ?

    Hi , We do have Excel import/Export feature at Designtime. Do we have same feature at runtime in RulesManager also ? Regards, Anil

  • N8 "Music player" lacking options

    Dear Nokia Developers, Music Player: 1st. No Custom Equalizer is available. It will enhance user experience if added. 2nd. Each sound file must have an option to add to personal playlists at any point. 3rd. While adding songs to personal playlist onl

  • Bridge thumbnails, PSCS3

    I just converted 2 NEF files to compressed DNG with raw embedded. At first, the thumbnails never came up, only DNG icons with the correct filename. I purged the folder cache and was able to see a thumbnail for one of the files. Regardless of what I d

  • Does a driver for Rockweel Control Logix 5000 model exist?

    I could not find the driver on this page: http://www.ni.com/opc/opcservers.htm