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.

Tags: Adobe Animate

Similar Questions

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

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

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

  • 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

  • The RichEditableText width property is not updated

    Hi guys, this is my problem.

    I'm a RichEditableText control that I use for user input. The user has the possibility to change the font and the size of the input. When a new font or font size is selected, the width of the input text is larger or smaller, and so the width of the control RichEditablText also changes.

    However, if I make a call to the width property, it has not updated. Only on the following font or the font size change is it updated, but it's the width of the previous size, not the current one. Code example below. How can I force update its width according to the current/actual width property?

    < fx:Script >

    <! [CDATA]

    public exampleFunction()

    {

    trace ("width:" + richtext1.width);   This gives 130

    richtext1. SetStyle ("fontSize", 44);  increase the font size, therefore, the current text becomes bigger and therefore the width of the RichEditableText control

    trace ("width:" + richtext1.width) / / the width property however, still 130?

    }

    }

    []] >

    < / fx:Script >

    < mx: RichEditableText id = "richtext1" text = "example" >

    Thank you guys

    Try validateNow() on the container of the control.

  • 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;
    
  • Windows media center on windows 8 may not set up the signal of the TV tuner or find channels

    Just upgraded to win8.

    Downloaded windows media center.

    When you configure channels I get the message 'no downloadable guide found.

    Set up TV signal I get-"no channels not found. "Please check your tv equipment is properly connected to the computer"

    The tuner works and the signal from the antenna is fine as I can implement my Arcsoft media program and watch live TV from there.

    Media Center has worked in windows 7, before the upgrade to windows 8

    The region is the Australia.

    Any help would be welcome.

    Concerning

    Hi S3than,

    Somehow, I solved the problem.

    I ran the installer again.

    I jumped the channel configuration part (where you put the post code)

    I ran the TV signal configuration and it searched and found channels.

    He has also uploaded the TV guide.

    I use Kaiser Baas TVstick

    Hope this works for you, it's very frustrating.

    See you soon

  • HP 2011 x may not set the resolution 1600 x 900


    I found on internet a site that suggested that I go on the Intel site and run the driver Intel update utilities.

    I went and ran the ultility and he identified that my built chipset grphics driver should be updated. He has been

    associated with windows 7 x 64.  Once I installed this driver update and rebooted, I went to tried to change my

    low resolution and behold, there were resolutions of screen much more choice and my recommended

    1600 x 900 was in the selection list.  I chose this resolution and I was placed in me the screen resolution to what was recommended.

    I hope that HP will come out and bundle in maintenance packages.  He said that the problem is related to the EDID and some

    meet screen monitors flat questions communicators settings there.

  • Call for a stop of the method may not set via a static reference with type.flash.media.Sound

    This error appears when I tried to put this code "soundFx_1.stop ()"; inside a function implementation. What does that mean?

    you don't have to stop all sounds in your earpiece mouseover, only your listener reversal function function:

    var soundFx_2:Sound = new Sound (new URLRequest("Cabinet_Close.mp3"));

    var soundFx_3:Sound = new Sound (new URLRequest("Cabinet_Open.mp3"));

    var SC: SoundChannel;

    Cabinet1_00.addEventListener (MouseEvent.MOUSE_OVER, fl_MouseOverHandler);

    Cabinet1_00.addEventListener (MouseEvent.ROLL_OUT, fl_RollOutHandler);

    If (this ["showAcid3"] is nothing)

    {

    var showAcid3:Boolean = true;

    }

    showAcid3 = true;

    function fl_MouseOverHandler(event:MouseEvent):void

    {

    Cabinet1_00.gotoAndStop ('Open_0');

    SC. Stop();

    SC = soundFx_3.Play ();

    setChildIndex (Cabinet1_00, numChildren-1);

    If (showAcid3 is true)

    {

    Cabinet1_00.Acid_3.gotoAndStop ('Still');

    Cabinet1_00.Acid_3.addEventListener (MouseEvent.CLICK, removeSelf);

    }

    on the other

    {

    Cabinet1_00.Acid_3.visible = false;

    }

    }

    function removeSelf(e:MouseEvent):void

    {

    showAcid3 = false;

    soundFx_1.play ();

    DisplayObject (e.target) .removeEventListener (MouseEvent.CLICK, removeSelf);

    }

    function fl_RollOutHandler(event:MouseEvent):void

    {

    Cabinet1_00.gotoAndStop ('Still');

    SC. Stop();

    SC = soundFx_2.play ();

    }

  • 1180: call to a method may not set...?

    Hello

    I'm doing a menu button when the mouse enters it, the rest of the menu is displayed. I wanted to simply controlling timeline of video Clip (menu_mc). I have a stop(); action at the beginning of the Clip. But alas, once more AS3 tells me I did something wrong, this is the code I use...

    menu_mc.menu_btn.addEventListener (MouseEvent.MOUSE_OVER, menuUp);

    function menuUp(e:MouseEvent):void {}

    menu_mc (root) .gotoAndPlay (2);

    }

    I am a very slow beginner. So I apologize if this is a ridiculously simple problem.

    Try:

    menu_mc.menu_btn.addEventListener (MouseEvent.MOUSE_OVER, menuUp);

    function menuUp(e:MouseEvent):void {}

    menu_mc.gotoAndPlay (2);

    }

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

  • 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