Moving from var to popup - property not defined - anything.

I'm having a problem of passage of a variable of a popup. I do this several more times with different pop-up windows in the same application and I can't understand what I'm doing wrong this time. He said a property is not defined, but as far as I know, I'm doing it correctly.

The error:

1120: access of undefined property hscreen. HELPINFO. MXML

The code of the main application that calls the popup:

hand. ACE
--------------------------
Import components.helpinfo;
private function showHelp (): void {}
var helpinfopop:helpinfo = helpinfo (PopUpManager.createPopUp (Thi, helpinfo, false));
helpinfopop.title = "Help";
helpinfopop.showCloseButton = true;
helpinfopop.hscreen = "main";
PopUpManager.centerPopUp (helpinfopop);
}


The pop-up box, which for now, I'm just trying to get the variable passed. I tried different ways, so for now, just trying to make a warning window. The error is only showing in the alert.show below.

HELPINFO. MXML
--------------------------
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:TitleWindow xmlns:mx = ' http://www.adobe.com/2006/mxml ' close = "closeDialog ()" layout = "absolute" width = "200" height = "150" backgroundAlpha = "0.5" alpha cornerRadius = "0.5" = "10" roundedBottomCorners = "true" dropShadowEnabled = "true" > "
< mx:Script >
<! [CDATA]
Import mx.controls.Alert;
Import mx.managers.PopUpManager;

[Bindable] public var hscreen:String;

private void closeDialog (): void {}
PopUpManager.removePopUp (this);
}
Alert.Show (hscreen);
[]] >
< / mx:Script >
< / mx:TitleWindow >


For the alert, I also tried hscreen.valueOf () without a bit of luck. Even if I keep it simple, if the value of statements to see if 'hscreen' is equivalent to some, it fails.

Any thoughts or ideas? Any suggestions would be greatly appreciated.

Thank you
Chris

Hi Chris,

As far as I can see that the following code does not belong to any function:
Alert.Show (hscreen);

You should wrap up in the function and call it certain events as "creationComplete".

Like this:

<>
creationComplete = "ends ()" > "


Import mx.controls.Alert;
Import mx.managers.PopUpManager;

[Bindable] public var hscreen:String;

private void closeDialog (): void {}
PopUpManager.removePopUp (this);
}

private void fInit()
{
Alert.Show (hscreen);
}

]]>

See you soon,.
Dmitri.

Tags: Flex

Similar Questions

  • 1120:access of property not defined error

    to import flash.net.NetStream;

    Import mx.events.FlexEvent;

    private const CirrusAddress:String = "rtmfp://p2p.rtmfp.net/";

    private const DeveloperKey:String = "mydevkey";

    private var nc:NetConnection;

    private var myPeerID:String;

    private var recvStream:NetStream;

    private var myName:NetStream;

    protected function application1_creationCompleteHandler(event:FlexEvent):void

    {

    NC = new NetConnection();

    nc.addEventListener (NetStatusEvent.NET_STATUS, ncStatus);

    NC. Connect ("rtmfp://p2p.rtmfp.net/mydevkey/");

    }

    protected function ncStatus(event:NetStatusEvent):void {}

    myPeerID = nc.nearID;

    peerIdArea.text = myPeerID;

    }

    myName = new NetStream (nc); ERROR IS HERE

    ---------------------------------------------

    The path location type Resource Description

    1120: access of undefined property username.     P2PSample.mxml/P2PSample/src/line 30 Flex problem

    The path location type Resource Description

    1120: access of undefined property nc.     P2PSample.mxml/P2PSample/src/line 30 Flex problem

    NC is not defined in your code when this line 30 running because it runs before application1_creationCompleteHandler() is running.

    fix this.

    to import flash.net.NetStream;

    Import mx.events.FlexEvent;

    private const CirrusAddress:String = "rtmfp://p2p.rtmfp.net/";

    private const DeveloperKey:String = "mydevkey";

    private var nc:NetConnection;

    private var myPeerID:String;

    private var recvStream:NetStream;

    private var myName:NetStream;

    protected function application1_creationCompleteHandler(event:FlexEvent):void

    {

    NC = new NetConnection();

    nc.addEventListener (NetStatusEvent.NET_STATUS, ncStatus);

    NC. Connect ("rtmfp://p2p.rtmfp.net/mydevkey/");

    nsF();

    }

    protected function ncStatus(event:NetStatusEvent):void {}

    myPeerID = nc.nearID;

    peerIdArea.text = myPeerID;

    }

    private function nsF (): void {}

    myName = new NetStream (nc);

    }

  • Property not defined when there is no

    Can someone help me understand why it does not work? I get an Error 1120 on the property, but I know it exists. It's the HTTPService:

    < mx:HTTPService id = "userupdate" url = "https://server/flex/usrchgpwd.php" result = "checkADMUsrPWD (event)" useProxy = "false" method = "POST" showBusyCursor = "true" > "
    < mx:request xmlns = "" >
    {admType.valueOf ()} < admtype > < / admtype > < user name > {adm_username.text} < / username > < new_password > {ADM _password.text} < / new_password >
    < group > {adm_usergroup.text} < / group > < level > {adm_level.text} < / level > < status > {adm_activestatu s.text} < / status >
    < / mx:request >
    < / mx:HTTPService >


    This is the ACE which is less error on:

    private void checkADMUsrPWD(evt:ResultEvent):void {}
    If (userupdate.lastResult.changesuccess == "nodb") {}
    mx.controls.Alert.show ("No. DB connection, contact your administrator.");
    }
    }

    I get the error: "1120: access of undefined property userupdate.»

    I don't understand why. He's right there. And if I start to type userupdate, and then put a period, it lists the functions availabe it doesn't let me do. The other thing is that the script and app actually do work properly, no problem at all. So I do not understand why it is throwing these errors.

    Any thoughts?

    Thank you
    Chris

    Thanks to Mike, the problem was found. I had created a backup of my main application and renames it. However, it was still linked to the project. If all the errors I was getting in my file have been because new properties I have setting in my current production version of the MXML were NOT defined in the version of backup.

    If this is your problem, you need to detach from the app. You can do this by going here:

    Project > properties, then the Flex Applications

    If there is more than one app listed, you should deleted the one unused.

    Chris

  • Error 1119 help property not defined

    Here is my code:

    var gameSounds:Sound = new Sound (new URLRequest("inGame.mp3"));

    gameSounds.play ();

    var gunShotSound:Sound = new Sound (new URLRequest("gunshot.mp3"));

    import flash.events.MouseEvent;

    import flash.display.MovieClip;

    to import flash.geom.Point;

    Stop();

    gunBarrel.addEventListener (Event.ENTER_FRAME, gunEnterFrame);

    function gunEnterFrame (pEvt) {}

    var pEvt.currentTarget = MC;

    var angleRadian = Math.atan2 (mouseY - mc.y, mouseX - mc.x);

    var angleDegree = angleRadian * 180 / Math.PI;

    MC.rotation = angleDegree;

    }

    Mouse.Hide ();

    main_crosshair.StartDrag (true);

    main_crosshair.addEventListener (MouseEvent.MOUSE_DOWN, crosshairFX);

    function crosshairFX (e:MouseEvent): void {}

    gunShotSound.play ();

    var shot: ball = new bullet();

    projectile.x = parent.mouseX;

    projectile.y = parent.mouseY;

    projectile.x = gunBarrel.x;

    projectile.y = gunBarrel.y;

    Save the randian angle between the tank and the mouse

    This angle will define the direction of the ball

    projectile.angleRadian = Math.atan2 (mouseY - gunBarrel.y, mouseX - gunBarrel.x);

    Add a frame event enter on each ball

    projectile.addEventListener (Event.ENTER_FRAME, bulletEnterFrame);

    addChild (projectile);

    main_crosshair.gotoAndPlay (3);

    }

    Each point speed

    var speed = 8;

    function bulletEnterFrame (can) {}

    Get the current object (Bullet)

    var p = pEvent.currentTarget;

    Move that ball on each image

    On X axis use the angle cosine

    p.x += Math.cos (p.angleRadian) * speed;

    On the y-axis, use the sinus angle

    p.y += Math.sin (p.angleRadian) * speed;

    Guide the ball to the direction

    p.rotation = p.angleRadian * 180 / Math.PI;

    You have to remove each created bullet

    So after every moves you have to check the position of the ball

    If the ball goes out of the screen

    If (p.x < 0 | p.x > 400 | p.y < 0 | p.y > 400) {}

    Remove it from the display list

    removeChild (p);

    / ! ------AND REOMOVE HIS EVENT LISTER

    p.removeEventListener (Event.ENTER_FRAME, bulletEnterFrame);

    }

    }

    When I try to run it if I get "1119: access to property may be undefined angleRadian through a reference with static type ball."

    What is wrong with my code?

    You must make ball a dynamic class:

    public dynamic class ball extends MovieClip

  • property not defined?

    I have an application of slide show I want to go to some executives when a thumbnail button is clicked. I get this error

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

    Here is my inexperienced actionscript

    Stop();

    var numFrames:Number = 14;

    tmb1_btn.targetPic = 1;
    tmb2_btn.targetPic = 2;

    right_btn.addEventListener (MouseEvent.CLICK, nextPic);
    left_btn.addEventListener (MouseEvent.CLICK, prevPic);
    tmb1_btn.addEventListener (MouseEvent.CLICK, picFrame);

    function nextPic(e:MouseEvent):void
    {
    If (currentFrame < numFrames)
    {
    nextFrame();
    }
    on the other
    {
    gotoAndStop (1);
    }
    }

    function prevPic(e:MouseEvent):void
    {
    If (currentFrame > 1)
    {
    prevFrame();
    }
    on the other
    {
    gotoAndStop (numFrames);
    }
    }

    function picFrame(e:MouseEvent):void
    {
    gotoAndStop (e.currentTarget.targetPic);
    }

    Thanks for your time

    the simple button class will not allow you to add new properties like targetPic.  use a movieclip button.

  • Code of the property not defined! Help, please! Can't find what the problem is!

    So I do this coding for a school project and I repeated retype the code 3 times and the same problems still appear!

    Here is the code

    function keyDownHandler(Event:KeyboardEvent):void

    {

    if(Event.keycode == 38)

    {

    SpeedVert-=. 2;

    avatar_mc.gotoAndStop ("up")

    }

    another if (event.keyCode is 37)

    {

    SpeedHor-= 1;

    avatar_mc.gotoAndStop ("left")

    }

    another if (event.keyCode is 39)

    {

    SpeedHor += 1;

    avatar_mc.gotoAndStop ("Right")

    }

    The problem

    1119: access of the keyCode property possibly undefined via a reference with a static type flash.events:MouseEvent

    1119: access of the keyCode property possibly undefined via a reference with a static type flash.events:MouseEvent

    1119: access of the keyCode property possibly undefined via a reference with a static type flash.events:MouseEvent

    The problem is the keyCode! I can't understand August what is the problem!

    Thanks to all who help!

    In your function definition line, you use "Event" (false) while the code within the function uses 'event' (better).  Difficulty for beginners.  Also, given that the messages that all have "MouseEvent" identified in them, I have to wonder if the event listener that you assigned is not specified as a listener KeyboardEvent

  • Data storage property not defined successful dimension build data loading

    Hello

    I am trying to load data as below on a dimension without members - that works - but the dynamic Calc property does not set even though I map to the appropriate field and I get no error?

    My rule file using parent / child and maps the fields as Parent, child, Alias and property respectively.

    Below is a small snippet of my data.
    Period,YearTotal,"Year Total","Dynamic Calc"
    Period,OpeningBalance,"BegBalance","Store Data"
    But, all things being equal, if I load the aggregation rule - (minus sign that is) in the same column, it works fine.

    Is there an outside tip to set the property to store data that I need to know?

    Thank you

    Robert.

    If you load that using a rule of the load, use X for dynamic Calc.

    There is a chapter in SER60 who talks about it.

    http://docs.Oracle.com/CD/E12825_01/EPM.111/esb_dbag/frameset.htm?dotrules.htm

  • Property not defined in inline itemrenderer data

    I get: -.

    1120: access of undefined property.

    in the following code: -.

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

    < s:View ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "

    " xmlns:s = 'library://ns.adobe.com/flex/spark"" "

    title ="HomeView">

    < fx:Script >

    <! [CDATA]

    Import mx.collections.ArrayCollection;

                                  [Bindable]

    private var imageList:ArrayCollection;

    []] >

    < / fx:Script >

    "" < s:List dataProvider = "imageList{}" width ="100%" height = "100%">

    < s:layout >

    < s:TileLayout / >

    < / s:layout >

    < s:itemRenderer >

    < fx:Component >

    "" < s:BitmapImage source = "data.image{}" width ="150" height = "150"/ > <!--HERE--> "

    < / fx:Component >

    < / s:itemRenderer >

    < / s:List >

    < / s:View >

    I use Flex 4.10 but I tried against 4.6 and I still get this error.

    I have no prior problems in creating online converters, until I'm missing here?

    I am answering my own question.

    There is a difference between mx and spark when creating online converters point. To create a converter spark inline element, you need to extend a point converter class:-

    I suspect it's due to being designed by the kitchen sink approach, mx components where as the spark components has eliminated all unnecessary bloating.

  • Access event property not defined error

    [as a code]

    submit_button.addEventListener (MouseEvent.CLICK, btnDown);

    function btnDown(event:MouseEvent):void {}

    If (username.text == "" |) Password.Text == "") {}

    If (username.text == "") {}

    username. Text = "enter your username";

    }

    If (password.text == "") {}

    Password.Text = "enter your password";

    }

    } else {}

    processLogin();

    }

    }

    function processLogin (): void {}

    var phpVars:URLVariables = new URLVariables();

    var phpFileRequest:URLRequest = new URLRequest ("login.php");

    phpFileRequest.method = URLRequestMethod.POST;

    phpFileRequest.data = phpVars;

    var phpLoader:URLLoader = new URLLoader();

    phpLoader.dataFormat = pouvez;

    phpLoader.addEventListener (Event.COMPLETE, showResult);

    phpVars.systemCall = "checkLogin;

    phpVars.username = username.text;

    phpVars.password = password.text;

    phpLoader.load (phpFileRequest);

    }

    function showResult (): void {}

    result_text. AutoSize = TextFieldAutoSize.LEFT;

    result_text.text = "" + event.target.data.systemResult; -> It says I have a problem with this code. Any ideas?

    If (String (result_text. (Text). IndexOf ("Welcome") == 0) {}

    gotoAndPlay (1, "scene 2");

    }

    }

    This should be:

    function showResult (event: Event): void {}

    result_text. AutoSize = TextFieldAutoSize.LEFT;

    result_text. Text = "" + event.target.data.systemResult;

    If (String (result_text. (Text). IndexOf ("Welcome") == 0) {}

    gotoAndPlay (1, "scene 2");

    }

    }

  • EventListener (property not defined Scene2) help?

    I created a button (kitchen_btn1) in the stage 1 on my calendar where I want the user to click and access the stage 2 and stop.

    Stop();

    import the classes so we can make in our movie

    import flash.display. *;
    import flash.events. *;
    import flash.display.MovieClip;
    import flash.display.Sprite;

    kitchen_btn1.addEventListener (MouseEvent.CLICK, kitchenCLICK);
    function kitchenCLICK (event: MouseEvent): void {}
    gotoAndStop (Scene2);
    }

    Whenever I have try and test the movie I get an error message and my movie loop stage 1 stage 2 wiith on stop.

    The error message reads:

    Scene 1, layer 'actions', image1, Line12 1120: access of undefined property Scene2.

    In scene 2 in my Actions layer, I program the scene to stop the Framework 1.


    Stop();

    How can I set the scene 2 and that it works correctly?

    Thank you...

    In AS3, the first argument in a gotoAnd... call is the identifier of the image, so you must use stop (1, "scene 2");

    If you have changed the name of scene 2 be Scene2 (without space) who use instead.

    If you have an error in your code, it is normal that the right file loop constantly without care for any code, such as the stop() you in scene 2 (its how to throw a fit)

  • Error 1010? Property not defined...

    I am just having some problems with a simple code and not exactly why. Here is the error I get:

    TypeError: Error #1010: a term is undefined and has no properties.
    at sliSiteUpdate_fla::MainTimeline/aboutOut()


    According to me, he is asked for the function properties, however, those who are specified in the box below:

    btn_aboutHit.addEventListener (MouseEvent.MOUSE_OUT, aboutOut);

    function aboutOut (e:MouseEvent): void {}
    This.mc_about.gotoAndPlay ("aboutOut")
    }

    So, I'm a bit confused as to what he actually asks me do / provide? Thank you.

    Check and doublecheck all your instance names to ensure that they agree with your code.  You mentioned mc1 and is unrelated to the code that you have demonstrated.

    Then, make sure the items you are trying to assign a code to exist in the same context, whence the code.  If these object is inside other objects somewhere near the bottom of a timeline, they are not when the code is.

  • Im getting the database not found or sql error when I open some files from muse. I had not changed anything?

    Screen Shot 2014-07-11 at 5.54.07 PM.png

    Hello

    in case you still have questions, could you please share your with us .muse file to study? Please send it to [email protected]. If your file is more than 30 MB, you can use something like Adobe SendNow or SendThisFile. Don't forget to mention the link to this forum thread in your email (with Air/Muse/operating system version you are using) so that we can identify the file.

  • Messages do not automatically moved from the Outbox to the sent items

    Hello. Everything worked fine until 08:00 this morning.

    Now, when I send an email, it is sent but is not automatically moved from Outbox sent items. So, I get an error message (but no error code. He says only: "some errors occurred while processing the requested tasks"). Because the message remains in the Outbox if there is another message to send that it will send the first once again, and then the second, then the first again, then the second again, etc. The only way I can work around it must manually move each e-mail sent from the Outbox to sent items. The messages are efinitely goes recipients because they are responding to their

    I am running Windows XP Professional Version 2002 Service Pack 3 and Outlook Express

    Any thoughts would be very welcome

    Best regards

    You have apparent dbx file corruption.
     
    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.
     
    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
     
    In Windows XP, the files of user OE (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
     
    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.
     
    After you're done, followed by compacting your folders manually while working * off * and do it often.
     
    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.
     
    General precautions for Outlook Express:
     
    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.
     
    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095
     
    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3 
     
    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm
     
    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.
     
    Compact often as specified above.
     
    And backup often.
     
    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx 
  • 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.

  • 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

Maybe you are looking for