Peopleimages property possibly access not defined through a reference with static type class.

Hello

I have a custom MXML component called SeeElement.mxml, within this file I defined a VBOX as shown

SeeElement.mxml

< mx:VBox id = 'personimages' >
< mx:Label id = "viewname" / >
< / mx:VBox >

Now inside another ActionScript file, I try to make visible to false, as shown:
SeeElement. peopleimages.visible = false;

I am thie error

Peopleimages property possibly access not defined through a reference with static type class.

Please help me solve this problem.

Thank you.

inside your "a few other sctionscript the file' you need a reference to the SeeElement object

var seeElement:SeeElement = new SeeElement();

Then you can seeElement.personImages.visible = false;

SeeElement (with a capital S) refers to the class SeeElement and personImages is not a class member variable its an instance member variable

Tags: Flex

Similar Questions

  • 1119: access of the property possibly text not defined through a reference with static type class.


    package {}
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.display.Sprite;

    public class timer2 extends Sprite {}
    public void timer2() {}

    var: number = 60;
    var myTimer:Timer = new Timer(1000,count);


    myTimer.addEventListener (TimerEvent.TIMER, count);
    myTimer.start ();

    function countdown(event:TimerEvent):void {}
    myTimer2.text = String ((count) - myTimer.currentCount);
    }

    }
    }
    }

    I create a timer and I have an error can someone help me with this? TNX in advance?

    You must import the class, that is to say:

    import flash.text.TextFormat;
    
  • 1061:call to an addEventListener method maybe not defined through a reference with static type class

    I used code snippets to move keyframe 1 to 2 with this code there is a button.




    / * Stop to this image

    The Flash timeline will be stop/pause on the frame where you insert this code.

    Can also be used to stop/pause the chronology of the movieclips.

    */

    Stop();

    / * Click to supervise and stop

    By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and stop the movie.

    Can be used in the main timeline, or on timelines of film clip.

    Directions for use:

    1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.

    */

    Playbtn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_6);

    function fl_ClickToGoToAndStopAtFrame_6(event:MouseEvent):void

    {


    gotoAndStop (2);

    }

    but I get this error, can anyone help?

    the error I get if I change the name in the code name of the class instead

    Undefined property 1120:access Playbutton

    (the name of the instance is Playbtn)

    Thanks for your concern!

    As I said, this isn't a rare mistake to start to mix up to appoint between "btn" and "button"... you have already demonstrated do between your first two job offers.  If "Playbutton" is the name of the class, then impossible to assign an event listener to it as you just demonstrated in response 3

  • 1061: call to a shuffleKnuth method maybe not defined through a reference with static type class.

    Hi, I get the above error. I have actually changed some code because I put it in its own class.

    I call the class ShuffleArray below in my main doc of the class as follows:

    ShuffleArray.shuffleKnuth (definitionsArray);

    package
    {
    public class ShuffleArray
    {
    public void ShuffleArray()
    {
    the constructor code
    }
    public void shuffleKnuth(originalArray:Array):void
    {
    var chosenElement: *;
    var randomElement: *;
    var r: int = 0;

    for (var i: int = originalArray.length - 1; i > 0; i-)
    {
    r = Math.Random () * i;
    chosenElement = originalArray [i];
    randomElement = originalArray [r];

    originalArray [i] = randomElement;
    [r] originalArray = chosenElement;
    }
    }
    }
    }

    A little your docClass should like this:

    package {}
       
    import flash.display.MovieClip;
    Import ShuffleArray;
       
    public class docClass extends MovieClip {}
    private var shuffArr:Array = new Array (10,20).
           
    public void docClass() {}
    the constructor code
    ShuffleArray.shuffleKnuth (shuffArr);
    }
    }
       
    }

    and function ShuffleArray in the other class must be declared with static.

    public static void shuffleKnuth(originalArray:Array):void
    {
    trace (originalArray);
    }

  • 1119: access of nativeWindow property possibly not defined through a reference with static type flash.display:Stage.

    I tried this code:

    http://help.Adobe.com/en_US/AS3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7e08.html

    but it displays error: 1119: access of nativeWindow property possibly not defined through a reference with static type flash.display:Stage.

    package

    {

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    import flash.text.TextField;

    SerializableAttribute public class MinimizeExample extends Sprite

    {

    public void MinimizeExample (): void

    {

    var minTextBtn:TextField = new TextField();

    minTextBtn.x = 10;

    minTextBtn.y = 10;

    minTextBtn.text = "minimize";

    minTextBtn.background = true;

    minTextBtn.border = true;

    minTextBtn.selectable = false;

    addChild (minTextBtn);

    minTextBtn.addEventListener (MouseEvent.CLICK, onMinimize);

    var maxTextBtn:TextField = new TextField();

    maxTextBtn.x = 120;

    maxTextBtn.y = 10;

    maxTextBtn.text = "zoom";

    maxTextBtn.background = true;

    maxTextBtn.border = true;

    maxTextBtn.selectable = false;

    addChild (maxTextBtn);

    maxTextBtn.addEventListener (MouseEvent.CLICK, onMaximize);

    var restoreTextBtn:TextField = new TextField();

    restoreTextBtn.x = 230;

    restoreTextBtn.y = 10;

    restoreTextBtn.text = "restore";

    restoreTextBtn.background = true;

    restoreTextBtn.border = true;

    restoreTextBtn.selectable = false;

    addChild (restoreTextBtn);

    restoreTextBtn.addEventListener (MouseEvent.CLICK, onRestore);

    var closeTextBtn:TextField = new TextField();

    closeTextBtn.x = 340;

    closeTextBtn.y = 10;

    closeTextBtn.text = 'close this window ';

    closeTextBtn.background = true;

    closeTextBtn.border = true;

    closeTextBtn.selectable = false;

    addChild (closeTextBtn);

    closeTextBtn.addEventListener (MouseEvent.CLICK, onCloseWindow);

    }

    function onMinimize(event:MouseEvent):void

    {

    this.stage.nativeWindow.minimize ();

    }

    function onMaximize(event:MouseEvent):void

    {

    this.stage.nativeWindow.maximize ();

    }

    function onRestore(event:MouseEvent):void

    {

    this.stage.nativeWindow.restore ();

    }

    function onCloseWindow(event:MouseEvent):void

    {

    this.stage.nativeWindow.close ();

    }

    }

    }

    You can not force-close a browser with the exception of a window with javascript window.

  • addEventListener leads to 1119: access to property may be undefined "myEvent" through a reference with static type class

    I use a main application mxml and a component

    I said a metatag in the component

    [Event(name ="myEvent"type ="events.myEvent")]

    I have this hurry of the component

    I have a listener on the main application

    componentid.addEventListener (Event.MyEvent, gotoMyFunction, true);

    I get a compile error, no matter what I do

    1119: access of property may not set through a reference with static type class

    Any ideas. I had at least 3 examples and in all cases I end up with the same result

    Put [event (name = "myLoadDoneEvent" type = "events.loadDoneEvent")] before the class declaration:

    public class loadDoneEvent extends event

    [Event (name = "myLoadDoneEvent" type = "events.loadDoneEvent")]

    If this post answers your question or assistance, please mark it as such.

  • 1119: access of bobin property possibly not defined through a reference with static type flash.display:DisplayObjectContain

    I'm working on a script that allows the user to move items on the screen. They do it to several tests. Each new trial, I would like to than the items to return to their original position. When I try to do, I get the error in the title above. I can't refer to these elements. I tried getChildByName, but this doesn't seem to work. The problem is in the test function.

    Any help would be appreciated.

    Russ

    If you remove the "DisplayObjectContainer (internship)." before the two lines of code in the test function, the errors disappear (except for another error related to the Next_mc, which apparently is not defined anywhere before trying to add an event listener).

    I can't tell what you're trying to where until the end of a trial being detected where things would be returned.

  • The call for a getClipboardContents method maybe not defined through a reference with static type flashx.textLayout.edit:ISelectionManager.

    Hi guys,.

    As I use the Tlf 4.0.0.11073 nigtly version.

    I want to copy some text from the TLF, by the copy operation. I get this error.

    -Call to a method may not set getClipboardContents via a reference type static flashx.textLayout.edit:ISelectionManager.

    In the previous generation, I do not get this type of error, but in this nocturnal compilations, I get this error.

    Can someone help me to fix the same or all workaound.

    Thanks in advance.

    Krishna

    This feature is always available, but it has been moved. He is now in a class of TextClipboard, in the same package flashx.textLayout.edit. If you need to replace calls to getClipboardFormat() by TextClipboard.getContents ().

    Hope this helps,

    -robin

  • Access to the number of property may not set through a reference with static type...

    Hi all!

    I encounter this problem today... Take a look at the code:

    import com.trick7.effects.TeraFire;

    for (var j: uint = 0; j < 10; j ++) {}

    var fire: TeraFire = new TeraFire();

    Fire.x = j * 40 + 20;

    Fire.y = 100;

    Fire.Number = j; This line is causeing the problem

    addChild (fire);

    fire.buttonMode = true;

    }

    Class TeraFire creates fire particles. Compiler error is:

    Scene 1, Layer 'layer 1', frame 1, line 7.1119: access of the number of property may not set through a reference with static type com.trick7.effects:TeraFire.

    Can someone help me find a solution to this problem.

    I can do this 'number' with a clip, but not in this case. What can I do?

    Sorry oops misspelling... I meant fire ['number'] = j;

    The class must also be dynamic for this work, i.e.:

    public dynamic class TeraFire extends MovieClip
    

    (a dynamic class extension is not the class dynamic sub...)

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • 1119: access of possibly property indefinite Timer through a reference with static type class

    Hello

    I am trying to create a timer event for delaying the instantiation of my clip on the stage, but I get the error message:

    1119: access of possibly property indefinite Timer through a reference with static type class

    I am confused with how to proceed. I thought that the timer was a term already in the library for AS3, so how can he be undefined? Any help that you could provide to help me understand the problem and how to fix it, would be great.

    Thank you

    Here's a look at my code:

    import flash.display.MovieClip;

    import flash.utils.Timer;

    import flash.events.Event;

    import flash.events.TimerEvent;

    var dripTimer:Timer = new Timer (3000)

    var blood1:MovieClip = new Blood();

    dripTimer.addEventListener (TimerEvent.Timer, bloodDrip)

    dripTimer.start ();

    function bloodDrip(e:TimerEvent):void {}

    trace ("blood flows");

    blood1.x = 300;

    blood1.y = 100;

    addChild (blood1);

    }

    AS3 is case sensitive.

    Thus, the code should be:

    dripTimer.addEventListener (TimerEvent.TIMER, bloodDrip) - upper

  • 1119: access of property may be undefined soundLoop through a reference with static type game1Sunn

    The code was pretty much copied and respected - now where am I wrong?

    The loopsound has been exported library by the way so I'm not loading still.

    I imported:

    import flash.media.Sound;

    import flash.media.SoundChannel;

    flash.media.SoundMixer;// import to use stop all sounds

    import flash.media.SoundTransform;

    import flash.media.SoundChannel.soundTransform;

    .. Some code here to call the function

    function initSoundLoop() {}

    var soundLoop = new Sound;

    var loopSound:LoopSound = new LoopSound(); / / This is the creation of a new instance of a custom class. the name loopsound has given its object in the library when exported AS - excellent

    var myChannelMusic:SoundChannel = new SoundChannel;

    var setVolumeTransform = new SoundTransform;

    //loopSound.play (0, 999);

    this.soundLoop = loopSound;

    //this.soundLoop.play (0, 999);

    this.myChannelMusic = this.soundloop.play ();

    this.setVolumeTransform.volume = 0.5;

    this.myChannelMusic.soundTransform = setVolumeTransform;

    }

    Based on this error message, line 168 of file game1SunnyWalk.as is the root of the problem 1009.

  • 1119: access of property may be undefined with currentFrameLabel through a reference with static type f

    1119: access of property may be undefined with currentFrameLabel through a reference with static type flash.display:DisplayObject.

    line with the error: if (holder.getChildAt (i).currentFrameLabel.search ("false")! = - 1) {}

    any help?

    Try:

    If (MovieClip (holder.getChildAt (i)).currentFrameLabel.search ("false")! = - 1)

  • 1119: access of property may be undefined, click on a reference of static type Class.

    Hello

    I get this msg after trying the first 5 steps seen on http://www.layersmagazine.com/sounding-random-with-flash-cs3.html

    I'm using Flash CS4.  What I am doing wrong?  The measures would apply, I see not the error I made.

    I'm new to Flash, so bear with me.

    Kind regards

    Ronald

    I'm going to guess you didn't not capitalize 'CLICK '.

  • property may be undefined by reference to static type flash.

    Hi guys, well I created a slide show. Only problem is that I keep getting error messages that say "property may not defined by reference to the static type flash.", or they say 'access of undefined property...'

    I've done a lot of research, and my situation does not change if I use Action Script 2 or 3. In the example of his three. I did the numeric keys that are supposed to make to cover the slide show. I would really appreciate any suggestions.
    You can see the slideshow here:

    http://Paragon-NJ.com/slideshow.html

    and the FLA:

    http://Paragon-NJ.com/slideshow.fla


    Currently I use this code with one, two and three being the butttons:

    {one.onRelease = function ()}
    gotoAndPlay (90);
    }

    {two.onRelease = function ()}
    gotoAndPlay (175);
    }

    {three.onRelease = function ()}
    gotoAndPlay (260);
    }

    If you publish a swf file with actionscript 2 with this code and nothing else, you generate no error messages.

  • Failure of the installer: NIPathsDir property NISHAREDDIR is not defined

    I have another problem with the installer. The user gets

    "Fatal error!" The required NIPathsDir NISHAREDDIR property is not set.

    during the installation of Windows 7 Ultimate in Parallels (!).

    I have posted the file install_log_ian64.txt on the incoming FTP server. Froom what I see there is a defined NISHAREDDIR64 but not NISHAREDDIR. Is it a bug in 32 bit 64 vs in the installation program, or a quirk in Parallels?

    Thank you

    Ian

    Hi Ian,

    It seems that your username has faced a form of this question. In his case, there are several places of Windows (probably my pictures, My Documents, etc.) pointing to an inaccessible network location: \\.psf\home\*

    This is a limitation of many installers of Windows which must validate all paths to system at installation time. I hope that your user can make this accessible network location or, if not, change the system paths to point to something else to change in HKEY_CURRENT_USER folders.

    Luis

Maybe you are looking for