1119: access of property may be undefined, dataProvider error

I get a 1119: access of the dataProvider property possibly not defined through a reference with static type mx.controls:Label. error on line in bold.

all I want to do is to pass the info to my DataGrid in my basket a tv class.  Don't know how to fix, can anyone please advise would be grateful.

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:WindowedApplication ' http://www.Adobe.com/2006/MXML "layout ="absolute"xmlns:ns1 ="comp.*" "
creationComplete = "getData.send (); ">

< mx:Script >
<! [CDATA]

Import mx.rpc.events.FaultEvent;
Import mx.rpc.events.ResultEvent;
Import mx.events.ItemClickEvent;
Import mx.events.CollectionEvent;
Import mx.collections.ArrayCollection;
Import valueObjects.*;

[Bindable]
private var blurayArray:ArrayCollection = new ArrayCollection();
[Bindable]
private var tvgridArray:ArrayCollection = new ArrayCollection();

private var total: Number = 0;

private void resultHandler(evt:ResultEvent):void
{
blurayArray = evt.result.device.bluray.machine;
compBluraydvd.dgrBluraydvd.dataProvider = blurayArray;
}

private void faultHandler(evt:FaultEvent):void
{
var faultInfo:String = "error code:"+ evt.fault.faultCode+"\n\n"; "
"faultInfo +=" error string: "+ evt.fault.faultString+"\n\n;
mx.controls.Alert.show (faultInfo, "lack of information");
}

private function addToBluDisplay (): void
{
var price:Number = Number (compBluraydvd.dgrBluraydvd.selectedItem.price);
var item: String = compBluraydvd.dgrBluraydvd.selectedItem.name;
Total = total + price;

compShoppingcart.lblCart.text+="\nProduct Name:" + name + "\nPrice:" + price;»»»
compShoppingcart.lblTotal.text = "Total $" + total; "

}
private function addToTvDisplay (): void
{
var price:Number = Number (compTv.dgrTv.selectedItem.Price);
var resolution: String = compTv.dgrTv.selectedItem.Resolution;
var name: string = compTv.dgrTv.selectedItem.ProductName;

Total = total + price;

var theTv:Tv = new Tv (name, resolution, price);
tvgridArray.addItem (TV);
compShoppingcart.lblCart.dataProvider = tvgridArray;

}

[]] >
< / mx:Script >
< mx:HTTPService id = "getData" url = "xml/bluray.xml" result ="resultHandler (event); »
Fault = "FaultHandler (Event); "/ >

< mx:Style source="css/sim3.css"/ >
< mx:VBox width = "949" height = "702" backgroundColor = "#BCAD84" horizontalAlign = "center" >

< mx:Label text = 'DIRT CHEAP ELECTRONICS"width ="518"fontSize = fontFamily ="28""Georgia"textAlign ="center"fontWeight ="bold"/ >
< mx:LinkBar dataProvider = "viewstack1" borderStyle = "solid" width = "836" fontSize, fontFamily = "19" = "Times New Roman" color = "#D52113" / >
< mx:ViewStack id = "viewstack1" resizeToContent = "true" height = "600" width = "830" >
< ns1:bluraydvd id = "compBluraydvd" label = "BluRaydvd" width = "820" height = "550" backgroundColor = "#ECEEB3" addBluDisplay = "addToBluDisplay (); "/ >
< ns1:home id = "home" label = "Home" width = "900" height = "602" / >
< ns1:tv id = "compTv" label = "Tv" width = "820" height = "550" backgroundColor = "#F2F3D6" addTvDisplay = "addToTvDisplay (); "/ >
< ns1: audio id = "audio" label = "Audio" width = "820" height = "550" backgroundColor = "#EFF2A6" / >
< ns1:shoppingcart id = "compShoppingcart" label = "Basket" width = "820" height = "550" backgroundColor = "#ECEF99" / >

< / mx:ViewStack >

< / mx:VBox >

< / mx:WindowedApplication >

If more info is needed I can provide, it goes through a component called tv and shopping cart.

concerning

You must use a List or DataGrid control to disaplay a collection. Control Label is not a dataProvider property

Tags: Flex

Similar Questions

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

  • 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 property may be undefined onMotionFinished a static type reference

    It sounds simple enough, but it does not work. Any ideas. Here is the code

    function dunnsriverclick(Event:MouseEvent):void

    {

    If (currentSection! = "dunnsriver") {}

    var movecontent_mc:Tween = new Tween (content_mc, "x", Elastic.easeOut, 377,8, 2300, 5, true);

    var moveslider_mc:Tween = new Tween (slider_mc, "x", Elastic.easeOut, 2, 2300, 5, true);

    moveslider_mc.onMotionFinished = function() {}

    var dunnsriverDetails:Tween = new Tween (dunnsriverDetails_mc, "x", Elastic.easeOut, - 1135.85, 2, 5, true);

    }

                                     }

    }

    Declare it outside the service, but you assign it to the breast...

    var movecontent_mc:Tween;

    function...

    movecontent_mc = new Tween (...

  • Intro, layer 'AS3 hand', frame 2, line 14 1119: access to property may be undefined, click on by

    The last line of code (found on frame 2) below reproduces this error, why?  Yes, frame 2 has the button on the stage with the name of the instance 'normalScreenClickHandler '.

    function normalScreenClickHandler(e:MouseEvent):void
    {
    gotoAndPlay (5);
    }
    normalScreenButton.addEventListener (MouseEvent.click, normalScreenClickHandler);

    Kind regards

    Ron

    Use CLICK... case questions

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

  • I have an access of undefined property _root. and access to property may be undefined

    I have 2 errors with my script (below) it is assumed to be Actionscript 3.0.

    I'm getting a

    1120: access of undefined property _root.

    and has...

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

    Here is my code...

    var frameNum:Number

    function photoChange() {}

    _root.photos.gotoAndStop ("img" + frameNum);

    }

    {btn1.onRelease = Function ()}

    frameNum = 1

    photoChange();

    }

    {btn2.onRelease = Function ()}

    frameNum = 2

    photoChange();

    }

    {btn3.onRelease = Function ()}

    frameNum = 3

    photoChange();

    }

    {btn4.onRelease = Function ()}

    frameNum = 4

    photoChange();

    }

    {btn5.onRelease = Function ()}

    frameNum = 5

    photoChange();

    }

    {btn6.onRelease = Function ()}

    frameNum = 6

    photoChange();

    }

    {btn7.onRelease = Function ()}

    frameNum = 7

    photoChange();

    }

    {btn8.onRelease = Function ()}

    frameNum = 8

    photoChange();

    }

    {btn9.onRelease = Function ()}

    frameNum = 9

    photoChange();

    }

    {btn10.onRelease = Function ()}

    frameNum = 10

    photoChange();

    }

    {btn11.onRelease = Function ()}

    frameNum = 11

    photoChange();

    }

    {btn12.onRelease = Function ()}

    frameNum = 12

    photoChange();

    }

    Could someone help me please!

    _root and onRelease are not AS3, AS2 code to which they belong.  Basically, all of the code that you show treat like AS2, but will have made a mistake if you have your publication set for AS3 settings.  To implement it in AS3 code, you must follow the changes indicated below for all of the code...

    var frameNum:Number;

    function photoChange(evt:MouseEvent) {}

    frameNum = Number (String (evt.currentTarget.name) .substr (3))
    photos.gotoAndStop ("img" + String (frameNum));

    }

    Btn1.addEventListener (MouseEvent.CLICK, photoChange);

    .

    etc.

    .
    btn12.addEventListener (MouseEvent.CLICK, photoChange);

    Assuming you are using the button symbols, the function by using string manipulations to get the chassis number of the button name.  If you use MovieClips as buttons you can assign each number as a property and get this quite the contrary.  Buttons do not support the dynamic properties as do MovieClips.

    The reference to _root in AS3 is simply 'root' but which has usually need a qualifier, as in MovieClip (root).  In many cases using a root reference is not necessary.  If your code is on the main timeline, then there is no need to use references from the root because it is essentially where you are already.  If this code is inside another object on the timeline, then using... MovieClip (root). photos.gotoAndStop... etc would be a solution.

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

  • Property may be undefined selectIndex

    Hi, I'm new to Flex and I'm struggling to run the following example of tabnavigator. Please help me.

    < mx:Panel height = "100%" width = "100%" label = "Examples of Flex LiveDocs" >
    < mx:HBox height = "100 percent" width = "100%" >
    < mx:TabNavigator id = "tn" height = "100%" width = "90%" >
    < mx:Panel label = "ActionScript" >
    < mx:Button label = "SelectTab2" click = "tn.selectIndex = 1" / >
    < / mx:Panel >
    < mx:Panel label = "Index1" >
    < mx:Button label = "SelectTab1" click = "tn.selectIndex = 0" / >
    < / mx:Panel >
    < / mx:TabNavigator >
    < / mx:HBox >
    < / mx:Panel >

    It is inside the tag of the application. I get the error. "Access of selectIndex property possibly undefined". What is this error and how to fix this?

    you need to replace "selectIndex' by 'selectedIndex '.

  • Help! Error code 1119:Access of property not for UILoader

    I have real problems, creating a scrolling of thumbnails that will be presented as a larger image once clicked. The other sections of the site have been created, but this page is to document a collection of pictures of a photography project. Any help would be amazing!

    This is the code to load the main image in a uiloader after clicking on the thumbnail tabs - button click code was created as the image does not appear even. The name of the instance for the loader of the main image is "largeUILoader" and the instance for the thumbnails 'allThumbnails '.

    LOAD THE THUMBNAILS

    var thumbLoader:Loader = new Loader();
    thumbLoader.load (new URLRequest("Reality/Thumbnails/overgrownsmall.jpg"));
    thumbLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, thumbLoaded);
    function thumbLoaded(event:Event):void {}
    Add the thumbnail to the allThumbnails instance
    allThumbnails.addChild (thumbLoader);
    thumbLoader.addEventListener (MouseEvent.CLICK, loadMainImage1);
    function loadMainImage1(event:MouseEvent):void {}
    largeUILoader.Source = "Reality/Large/overgrown.jpg";
    }
    }
    var thumbLoader2:Loader = new Loader();
    thumbLoader2.load (new URLRequest("Reality/Thumbnails/overgrownoriginalsmall.jpg"));
    thumbLoader2.contentLoaderInfo.addEventListener (Event.COMPLETE, thumbLoaded2);
    function thumbLoaded2(event:Event):void {}
    Add the thumbnail to the allThumbnails instance
    allThumbnails.addChild (thumbLoader2);
    thumbLoader2.y = 133;
    thumbLoader2.addEventListener (MouseEvent.CLICK, loadMainImage2);
    function loadMainImage2(event:MouseEvent):void {}
    largeUILoader.Source = "Reality/Large/overgrownoriginal.jpg";
    }
    }

    The compiler errors are red that flash cs4 shows. The path of the image is correct and case-sensitive. I don't have an idea why it does not work!

    Thanks in advance, any other necessary information. Please answer.

    James

    > largeUILoader.Source

    who should not be 'source' instead?

  • Error 1119: Access of a property may not set with a keyboard event

    Scene 1, Layer 'layer 1', frame 1, line 5.1119: access of property may be undefined LEFT through a reference with static type class.
    Scene 1, Layer 'layer 1', frame 1, line 6.1119: access of property may not set down through a reference with static type class.
    Scene 1, Layer 'layer 1', frame 1, line 7.1119: access of possibly undefined property BACK through a reference with static type class.
    Scene 1, Layer 'layer 1', frame 1, line 8.1119: access of property may not set through a reference with static type class.

    I think that to have public but do not know how the value Keyboard.Event.LEFT, UP, DOWN, RIGHT.

    import flash.events.KeyboardEvent;

    stage.addEventListener (KeyboardEvent.LEFT, characterMove);

    stage.addEventListener (KeyboardEvent.DOWN, characterMove); ------Headphones of events for left keyboard etc.

    stage.addEventListener (KeyboardEvent.UP, characterMove);

    stage.addEventListener (KeyboardEvent.RIGHT, characterMove);

    new audience; function characterMove(evt:KeyboardEvent):void {------function to move the person}

    Switch (evt.keyCode) {}

    case Keyboard.LEFT:

    Person.x-= 20;

    case Keyboard.RIGHT:

    Person.x += 20;

    case Keyboard.DOWN:

    Person.y-= 20;

    case Keyboard.UP:

    Person.y += 20;

    by default:

    trace ("keyboard event error")

    }

    }

    Your listeners must specify KeyboardEvents and upward, DOWN, LEFT, RIGHT aren't KeyboardEvents, they are key keyboard codes.  Using KEY_UP and KEY_DOWN instead of each of them in the headphones.

  • to access the property of the child of a display object

    I need help to understand how to access a property of a child of a DisplayObject.

    within a class, I have an object with the name of the variable: btnLMain

    I assigned a name property: btnLMain.name = "btnL;

    btnLMain also has a property: btnLMain.clickNum = 0; It's the one that I need to access

    When I instantiated (btnL) class that contains this code in the parent class, I need to access the 'clickNum' property so I did this:

    var dispObj:DisplayObject = btnL.getChildByName (btnLMain);

    displayObj.clickNum ++;

    but then, I get the error: 1119: access to property may be undefined clickNum through a reference with static type flash.display:DisplayObject.

    so then I looked at the documentation and as I understand it, I am not able to access the child of the DisplayObject property as it is a static property... Please correct me if I'm wrong.

    so now, I try to understand how to access this property in the child class.

    do you have any tips for me?

    Thank you!

    For what you described, the following line is meaningless...

    var dispObj:DisplayObject = btnL.getChildByName (btnLMain);

    because you said that the name property, that you assigned to the btnLMain is btnL, which would make btnL and btnLMain representative of the same object.  Or maybe I just missed something the explanation.

    How you declare btnLMain first?  If it is defined in a way such As btnLMain... var = new Something(), then you have a direct access using the btnLMain variable and should be able to use btnLMain.clickNum

  • 1119: access of width property may not set through a

    Lock layer 'Action', frame 80, line 271119: access of width property may not set through a reference with static type flash.media:Sound.

    So I get this error message on the three images that worked until I walked into some code which I think is shake it. Basically, this framework includes miniature pictures and when you click on them, they expand. That's what all the code at the bottom. The code that causes the problem I believe is that I added that was:

    If (channel14L! = null) {}

    channel14L.stop ();

    }

    I have added this code, because on the frame, the user has the possibility to listen to the slide if they click on the audio button. I had a problem in which the frame did not run with a command simple channel17l.stop , because that only works if the user has clicked on the audio button, which is not necessary.

    Here is my code with the bold error codes. I think that the addition of the If (channel14L! = null) what the hell. Need help!

    import flash.events.MouseEvent;

    import flash.media.SoundChannel;

    Stop();

    emer_cont_btn14l.enabled = true;

    emer_exit_btn14l.enabled = true;

    emer_help_btn14l.enabled = true;

    emer_glossary_btn14l.enabled = true;

    emer_mm_btn14l.enabled = true;

    emer_btn14l.enabled = true;

    fire_btn14l.enabled = true;

    lock_btn14l.enabled = true;

    audio_btn14l.enabled = true;

    var lockclass01:Sound = new LockClass01();

    var channel14L:SoundChannel;

    audio_btn14l.addEventListener (MouseEvent.CLICK, Audio14l);

    function Audio14l(event:MouseEvent):void

    {

    channel14L = lockclass01.play ();

    }

    emer_cont_btn14l.addEventListener (MouseEvent.CLICK, Lock14l);

    function Lock14l(event:MouseEvent):void

    {

    If (channel14L! = null) {}

    channel14L.stop ();

    }

    gotoAndStop("17L");

    }

    emer_btn14l.addEventListener (MouseEvent.CLICK, Emer14l);

    function Emer14l(event:MouseEvent):void

    {

    If (channel14L! = null) {}

    channel14L.stop ();

    }

    gotoAndStop ("1st", "Emer");

    }

    fire_btn14l.addEventListener (MouseEvent.CLICK, Firebtn14l);

    function Firebtn14l(event:MouseEvent):void

    {

    If (channel14L! = null) {}

    channel14L.stop ();

    }

    gotoAndStop ("1F", "Fire");

    }

    lock_btn14l.addEventListener (MouseEvent.CLICK, Lockbtn14l);

    function Lockbtn14l(event:MouseEvent):void

    {

    If (channel14L! = null) {}

    channel14L.stop ();

    }

    gotoAndStop("1L","Lock");

    }

    emer_exit_btn14l.addEventListener (MouseEvent.CLICK, Scene14l);

    function Scene14l(event:MouseEvent):void

    {

    If (channel14L! = null) {}

    channel14L.stop ();

    }

    gotoAndStop ("one", "Scene2");

    }

    emer_mm_btn14l.addEventListener (MouseEvent.CLICK, MainMenu14l);

    function MainMenu14l(event:MouseEvent):void

    {

    If (channel14L! = null) {}

    channel14L.stop ();

    }

    gotoAndStop ("2MM", "MainMenu");

    }

    emer_help_btn14l.addEventListener (MouseEvent.CLICK, Help14l);

    function Help14l(event:MouseEvent):void

    {

    If (channel14L! = null) {}

    channel14L.stop ();

    }

    gotoAndStop ("oneb", "Help");

    }

    emer_glossary_btn14l.addEventListener (MouseEvent.CLICK, Glossary14l);

    function Glossary14l(event:MouseEvent):void

    {

    If (channel14L! = null) {}

    channel14L.stop ();

    }

    gotoAndStop ("onec", "Glossary");

    }

    lockclass01.addEventListener (MouseEvent.CLICK, biglockclass01);

    var lockclass01Size = "small";

    var lockclass01Width = lockclass01.width;

    var lockclass01Height = lockclass01.height;

    var lockclass01X = lockclass01.x;

    var lockclass01Y = lockclass01.y;

    function biglockclass01(event:MouseEvent):void

    {

    If (lockclass01Size == 'small') {}

    lockclass01Size = "large";

    lockclass01.width = 288.25;

    lockclass01. Height = 384.35.

    lockclass01.x = 212.35;

    lockclass01.y = 45.20;

    } else {}

    lockclass01Size = "small";

    lockclass01. Width = lockclass01Width;

    lockclass01. Height = lockclass01Height;

    lockclass01.x = lockclass01X;

    lockclass01.y = lockclass01Y;

    }

    }

    lockclass02.addEventListener (MouseEvent.CLICK, biglockclass02);

    var lockclass02Size = "small";

    var lockclass02Width = lockclass02.width;

    var lockclass02Height = lockclass02.height;

    var lockclass02X = lockclass02.x;

    var lockclass02Y = lockclass02.y;

    function biglockclass02(event:MouseEvent):void

    {

    If (lockclass02Size == 'small') {}

    lockclass02Size = "large";

    lockclass02. Width = 288.25.

    lockclass02. Height = 384.35.

    lockclass02.x = 212.35;

    lockclass02.y = 45.20;

    } else {}

    lockclass02Size = "small";

    lockclass02. Width = lockclass02Width;

    lockclass02. Height = lockclass02Height;

    lockclass02.x = lockclass02X;

    lockclass02.y = lockclass02Y;

    }

    }

    lockclass03.addEventListener (MouseEvent.CLICK, biglockclass03);

    var lockclass03Size = "small";

    var lockclass03Width = lockclass03.width;

    var lockclass03Height = lockclass03.height;

    var lockclass03X = lockclass03.x;

    var lockclass03Y = lockclass03.y;

    function biglockclass03(event:MouseEvent):void

    {

    If (lockclass03Size == 'small') {}

    lockclass03Size = "large";

    lockclass03. Width = 288.25.

    lockclass03. Height = 384.35.

    lockclass03.x = 212.35;

    lockclass03.y = 45.20;

    } else {}

    lockclass03Size = "small";

    lockclass03. Width = lockclass03Width;

    lockclass03. Height = lockclass03Height;

    lockclass03.x = lockclass03X;

    lockclass03.y = lockclass03Y;

    }

    }

    lockclass04.addEventListener (MouseEvent.CLICK, biglockclass04);

    var lockclass04Size = "small";

    var lockclass04Width = lockclass04.width;

    var lockclass04Height = lockclass04.height;

    var lockclass04X = lockclass04.x;

    var lockclass04Y = lockclass04.y;

    function biglockclass04(event:MouseEvent):void

    {

    If (lockclass04Size == 'small') {}

    lockclass04Size = "large";

    lockclass04. Width = 288.25.

    lockclass04. Height = 384.35.

    lockclass04.x = 212.35;

    lockclass04.y = 45.20;

    } else {}

    lockclass04Size = "small";

    lockclass04. Width = lockclass04Width;

    lockclass04. Height = lockclass04Height;

    lockclass04.x = lockclass04X;

    lockclass04.y = lockclass04Y;

    }

    }

    Thank you!

    Your problem starts at the line...

    var lockclass01:Sound = new LockClass01();

    You set as a sound object.  But then, you try to treat it as if it was a display of form obf object and try to access properties that are reelated to display objects such as width, height, x, y

    var lockclass01Width = lockclass01.width;

    var lockclass01Height = lockclass01.height;

    var lockclass01X = lockclass01.x;

    var lockclass01Y = lockclass01.y;

    function biglockclass01(event:MouseEvent):void

    {

    If (lockclass01Size == 'small') {}

    lockclass01Size = "large";

    lockclass01.width = 288.25;

    lockclass01. Height = 384.35.

    lockclass01.x = 212.35;

    lockclass01.y = 45.20;

    } else {}

    lockclass01Size = "small";

    lockclass01. Width = lockclass01Width;

    lockclass01. Height = lockclass01Height;

    lockclass01.x = lockclass01X;

    lockclass01.y = lockclass01Y;

    Then you probably need to get rid to declare it as a sound object if there isa not.

  • ERROR: "1119: access of the selectedItem of the property possibly undefined...".

    Well, I am new to Flash Builder 4.5 here so I'm developing a mobile application for practice...

    Here is the configuration:

    I have a tabbed display application. In a point of view, I have a list that is populated with data from an XML file (bugs - creepy crawly kind not Ghost in the machine type). What I'm trying to do, is call a new view when a user touches an element in the list. The new view contains data on the bug itself.

    The problem I have is that, in the bugList_changeHandler, I get the error:

    ERROR: "1119: access of the selectedItem of the property possibly not defined through a reference with static type services.bugslist:BugsList.".

    Here is my function:

    Import spark.events.IndexChangeEvent;

    protected function bugsList_changeHandler(event:IndexChangeEvent):void {}

    navigator.pushView (views. (BugsDetailView, bugsList.selectedItem);

    }

    Here is my list:

    < s:List id = "Bugs" width = '100% '.

    " creationComplete =" Bugs_creationCompleteHandler (event) "labelField ="name"change =" bugsList_changeHandler (event) "verticalScrollPolicy ="off">

    < s:itemRenderer >

    < fx:Component >

    < s:IconItemRenderer messageField = 'loc '.

    iconField = "img" iconWidth = "60".

    iconHeight = "60" decorator = "images/right.png" >

    < / s:IconItemRenderer >

    < / fx:Component >

    < / s:itemRenderer >

    < s:AsyncListView list = "{getDataResult.lastResult}" / >

    And on the detail view, here's my list:

    < s:VGroup >

    < s:Label text = "{data.img}" / >

    < s:Label text = "{data.name}" / >

    < s:Label text = "{data.price}" / >

    < s:Label text = "{data.loc}" / >

    < s:Label text = "{data.time}" / >

    < s:Label text = "{data .months}" / >

    < s:Label text = "{data.rare}" / >

    < / s:VGroup >

    And for good measure, here's a sample of my XML file:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < bugs >

    < Bug No. = 'agrias' >

    < img >http://www.jasonwoodcock.biz/adc/cf/bugs/agrias-butterfly.png< / img >

    < name > Butterfly Agrias < / name >

    < price > 3 000 bells < / price >

    < loc > near water (not during rain) < / loc >

    < month > June - Sep < / month >

    < time > 08:00 - 17:00 < / time >

    < Rare > Yes < / rare >

    < / bug >

    And bonus points, name the game so that this app is...

    your list has a different name for the selectedItem as you try to spend

    navigator.pushView (seen. BugsDetailView,bugsList.selectedItem);

Maybe you are looking for