Simple attempt to HTML5 - "OM is not defined"

Hi all

I'm looking for a visualization of HTML5, just a very simple track of the points against a card. I looked at examples of v406 SampleApp and wanted to try to do it on another machine virtual (BigDataLite). My code in the static text section like below. I cut out a bit of it for practical reasons. Just to clarify, I remembered to define all the variables used, for example baseURL etc.:

"< script src="/mapviewer/jslib/v2/jquery/jquery-1.7.2.js "> < / script >

< script src='/mapviewer/jslib/v2/oraclemapsv2.js' > < / script >

"< script src="/mapviewer/js/common.js "> < / script >

"< script src="/mapviewer/jslib/v2/jquery/colorpicker/js/colorpicker.js "> < / script >

"< script src="/mapviewer/jslib/v2/jquery/colorpicker/js/eye.js "> < / script >

"< script src="/mapviewer/jslib/v2/jquery/colorpicker/js/layout.js "> < / script >

"< script src="/mapviewer/jslib/v2/jquery/colorpicker/js/utils.js "> < / script >

< link rel = "stylesheet" type = "text/css" href='/mapviewer/jslib/v2/jquery/v2/jquery/colorpicker/css/colorpicker.css'/ >

< script >

var map;

OM.gv.setResourcePath("/mapviewer/jslib/v2/"); "

plotPoints function (data) {}

map = new OM Map (document.getElementById ('map'), {mapviewerURL: baseURL});

More code to draw points

}

function renderHeatMap (repData) {}

Code to call various functions, including plotPoints

}

< /script >

< table border = 0 >

< tr > < td valign = top >

< b > Shopper Positions < /b >

< DIV id = map style = "width: 800px;" height = 500px; padding: 10px; border: 1px solid grey; "> < / DIV >

< table > < td valign = top >

The issue I'm having is when I display the code in Firebug, it returns an error saying "OM is not defined. I can only imagine it means that I have imported something, or imports of js, I've done are different versions of those used in the SampleApp v406. I can't find all the information on how to make a simple visualization in HTML5 from scratch, it's always the SampleApp v406 content building, so I don't really know what I have to import in any case, I just lifted it from SampleApp.

Anyone know why OM is not defined?

Hello world

I managed to solve the problem. It turns out that the API Oracle cards may not work properly if you try to test it in an analysis. Points in a dashboard, view the dashboard, he worked all of a sudden. It must be something to do with the way the API is integrated. I can confirm that by trying to open the examples of HTML5 v406 sample application (which we know work) as independent analyses and produces the same error.

Tags: Fusion Middleware

Similar Questions

  • Cannot run a simple HTML export (' one is not defined "")

    I installed the presenter 11 and Office 365 on Windows 7 64 bit and exported by default "Welcome to PowerPoint" like a slide show only HTML.

    It does not run, show the place four animated spinner.

    Newspapers in FireFox

    TypeError: one is not defined

    b()

    Presenter.js:811

    Is < c.Iaa)

    Presenter.js:833

    Vs < b.prototype.oda)

    Presenter.js:837

    Vs < b.prototype.load)

    Presenter.js:836

    WT < b.prototype.f9)

    Presenter.js:895

    OA </c.m/<)

    Presenter.js:47

    Support Adobe says that it is a known bug. You need to replace the file with the here a https://www.dropbox.com/s/d3nsibl7kvdof6i/presenter.zip?dl=1 in... \Adobe 11.0\Templates\html presenter

    Why this is not fixed in the download version is a mystery to me.

  • Excel vba "DAQmxErrChk sub or function not defined".

    Hello

    I am trying to run a task created in NI Measurement and Automation Explorer inside excel exsisting.  I've seen MANY visual basic examples on how to run an existing job, my problem is the following:

    "DAQmxErrChk: sub or function not defined".

    In the visual basic editor, under 'Tools - References' I can choose different libraries to include.  I've included all the libraries, I have and the problem persists.  I know that the 'DAQmxErrChk' function accepts some arguments, but without it, I can't find a way to read a card value of the cDAQ I use (NOR cDAQ-9172).  All I have to do is read the voltage of a single entry.

    Any help would be greatly appreciated.

    There may be a few additional steps for VBA Excel that use a low file.  However, in the place of this investigation, it might be quicker to the subroutine to bugcheck (of the low file) just paste in your program.  The function is quite simple (just do some basic error handling).  Our examples of C perform a similar function that actually appears at the top of each example of .c file (rather than using a separate file).

  • Symbol not defined '___CompiledDebuggingLevel' referenced in... cvistart.lib

    Hi all

    With a big project that I'm working on that has several static libraries, I get the following error when building in release mode:

    Undefined symbol '___CompiledDebuggingLevel' referenced in "c:\program NIUninstaller instruments\cvi2012\bin\Msvc\cvistart.lib".
    Undefined symbol '___PtrInfoFixupTable' referenced in "c:\program NIUninstaller instruments\cvi2012\bin\Msvc\cvistart.lib".

    Undefined symbol '___CVI_Sections' referenced in "c:\program NIUninstaller instruments\cvi2012\bin\Msvc\cvistart.lib".

    Undefined symbol '___UFRNameTable' referenced in "c:\program NIUninstaller instruments\cvi2012\bin\Msvc\cvistart.lib".

    I have had this problem before and with the help of the following sons, was able to fix it by recompiling my static libraries.

    http://forums.NI.com/T5/LabWindows-CVI/error-undefined-symbol-CompiledDebuggingLevel-referenced-in-q...

    http://forums.NI.com/T5/LabWindows-CVI/urgent-8-5-1-link-errors-related-to-cvistart-lib/m-p/720628

    http://forums.NI.com/T5/LabWindows-CVI/problem-with-Shockwave-Flash-ActiveX-control/m-p/720209

    http://forums.NI.com/T5/LabWindows-CVI/errors-in-linking/m-p/203572

    http://forums.NI.com/T5/LabWindows-CVI/link-error-after-including-a-static-library/m-p/2185036

    Unfortunately, the recompilation, marking for the compilation or delete dosent records .cvibuild works for me this time.

    I can compile mode debugging without probs.

    I can not compile in release mode, at least all of my *.libs are excluded and the *.c library source files included.

    All projects are built in CVI2012.

    Can someone shed some light on why this link of error could happen?

    I'm not too familiar with how the CVI environment works at this level. I read in an other (related) positions that the functions of these undefined symbols are only used when debugging that adds to my confusion...

    see you soon,

    DIZ.

    Hi DIZ,

    Have you tried the step provided by D_Biel in http://forums.ni.com/t5/LabWindows-CVI/Link-error-after-including-a-static-library/m-p/2185036 ?  It seems that this may be a known issue in LabWindows/CVI 2012 and enabled a work around.  The error seems to come from the static libraries built in LabWindows/CVI.  Please try the suggestions below if you don't have it already.

    D_Biel wrote:

    Hi, CPP,.

    Using CVI 2012? If Yes, then you probably stumbled across known problem 372694. This is a bug with the build configuration for the static library introduced in 2012 of the CVI. The problem occurs when you switch the target Type of a Dynamic Link Library or executable file that was in a configuration of debugging for the static library. Static libraries are not allowed to be built in a debug configuration, so CVI attempts to pass the debug configuration for release when the target type is changed to the static library. In 2012 of the CVI, this of the debug to release not completely change it, so you're left in an inconsistent state of configuration. In this State, the static library is built with the debugging symbols that it does not define.

    The good news is that it is very easy to fix. After the passage of the Type of target to the static library, simply reselect release as being the configuration (the exit option is already selected, but go ahead and select it again in any case). Once again, you select that, the static library will be built correctly without the debugging symbols.

    Using the activate option. Obj option is not required and will not allow you to debug your application.

    Edit: This issue will be addressed in the next version of the CVI.

    Best regards,

  • BB10: Error 1065 SkinAssets is not defined

    Try to get a very simple application of AIR working with BB10 10.0.4 AIR SDK and I get:

    ReferenceError: Error #1065: qnx.fuse.ui.skins Variable:kinAssets is not defined.
    at::ThemeWhite/createCSS() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\theme\ThemeWhite.as:25] qnx.fuse.ui.theme
    at::ThemeWhite() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\theme\ThemeWhite.as:20] qnx.fuse.ui.theme
    at::ThemeGlobals$/getTheme() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\theme\ThemeGlobals.as:246] qnx.fuse.ui.theme
    to qnx.fuse.ui.theme::ThemeGlobals$/http://www.qnx.com/2009/qnx/internal:getCSS () [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\theme\ThemeGlobals.as:235]
    at qnx.fuse.ui.core::UIComponent/get [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\core\UIComponent.as:910] css()
    at::UIComponent/init() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\core\UIComponent.as:212] qnx.fuse.ui.core
    at::TextBase/init() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\text\TextBase.as:666] qnx.fuse.ui.text
    at::Label/init() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\text\Label.as:115] qnx.fuse.ui.text
    at::UIComponent() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\core\UIComponent.as:180] qnx.fuse.ui.core
    at::TextBase() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\text\TextBase.as:468] qnx.fuse.ui.text
    at::Label() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\text\Label.as:107] qnx.fuse.ui.text
    at bb1() [U:\workspace460\bb1\src\bb1.as:12]

    It occurs when you create a label:

    import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
    
        import qnx.fuse.ui.text.Label;
        import qnx.fuse.ui.theme.ThemeGlobals;
    
        public class bb1 extends Sprite
        {
            private var label :Label;// = new Label();
    
            ///////////////////////////////////////////////////////////////////////////
            public function bb1()
            {
                super();
    
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                ThemeGlobals.currentTheme = ThemeGlobals.BLACK;
    
                this.label = new Label();
                this.label.text = 'Hello World';
                this.label.setActualSize( 200, 50 );
                this.addChild( this.label );
            }
        }
    

    The exception is thrown when you try to run it as an AIR application on the desktop.

    For BB10.04, skins residence in a native extension, so you have to add it to your project properties.

    Unfortunately, FlashBuilder requires two steps to do:

    The project must have the QNXSkins.ane added to it (preferences-> Build Path-> Native Extensions) and marked to be included in the file as well bar (preferences-> ActionScript Build packaging-> BlackBerry-> Native Extensions). For these, you need to expand the window to really see the checkbox for the DONKEY.

    Native extensions are under frameworks/libs/qnx/donkey.

    See you soon

  • Eception ReferenceError: t1 is not defined

    very simple. I'm doing the collision between the circle and rect. Once I have faced the error comes from this line. but t1 is defined as the circle.

    I also tested as t1.circle. globalToLocal (stage.mouseX, stage.mouseY); but did not work.

    PT var = t1.globalToLocal (stage.mouseX, stage.mouseY);

    Eception ReferenceError: t1 is not defined

    / * js

    Drag the circle

    var tl = this;

    tl.circle.addEventListener ("mousedown", downF)

    function downF (e) {}

    stage.addEventListener ('stagemousemove', moveF);

    stage.addEventListener ('stagemouseup', upF);

    };

    function upF (e) {}

    stage.removeAllEventListeners ();

    }

    function moveF (e) {}

    TL. Circle.x = stage.mouseX;

    TL. Circle.y = stage.mouseY;

    }

    to move a rect that here is the code

    var t2 = this;

    T2. Rect.addEventListener ("mousedown", downFr)

    function downFr (e) {}

    stage.addEventListener ('stagemousemove', moveFr);

    stage.addEventListener ('stagemouseup', upFr);

    };

    function upFr (e) {}

    stage.removeAllEventListeners ();

    }

    function moveFr (e) {}

    T2. Rect.x = stage.mouseX;

    T2. Rect.y = stage.mouseY;

    hits and opacity circle goes to 0.1

    PT var = t1.globalToLocal (stage.mouseX, stage.mouseY);

    If (t2.hitTest (pt.x, pt.y)) {}

    T1.Alpha = 0.1;

    }

    }*/

    I think you might have one which hurt claimant named in your code.  you show "t1" for error, but your code in the drag circle section defines and uses 'tl' (it is TL in lowercase)

  • vCO WebView error - parameter value is not defined in the list of the Webview attribute

    Hello

    I tried to create a simple web view for Orchestrator (5.5.1 1617127), who will present a link to launch a single workflow. I followed the instructions in the Guide of VMware and the VCO Team Blog, but both find themselves with similar errors, which seem to have a common root: it seems that the display of web pages can not read the attributes.

    On the web page, I'll see something similar to the following:

    WebView - an exception has occurred.

    Reason: WorkflowLink component error: value of the parameter "attribute" (alias "workflow") ("createVM") is not defined in the list of the Webview attribute

    You may continue by restarting the session.

    In the server.log, I see the following: -.

    11:46:04.717 2014-10-02 + 0100 [http-bio-xxx.xxx.xxx.xxx-8281-exec-2] {} [WebviewExceptionPage] Exception Webview INFO - message:

    org.apache.hivemind.ApplicationRuntimeException: component error WorkflowLink: "attribute" parameter value (alias "workflow") ("createVM") is not defined in the list of the Webview attribute

    The createVM attribute is set in the correct web view as an attribute with a Type of Workflow and value to create simple virtual machine. I get a similar error any attribute type I try to get out of the workflow (the example of getVirtualMachineList does not create an error on the page, but is not fill the window and creates a similar message appears in the log).

    Can someone give me directions on what to watch next? I can't find anyone else with this error, which makes me think it might be something specific to this medium, but I can't work on what it could be.

    Thanks in advance,

    Ben

    I had the time this by restarting the service after each new attribute has been added, which was far from perfect, but looking around the forums, I have seen that WebViews were being obsolete, so I'll have to look at alternatives in any case.

  • Tabular.Tabular is not defined

    I have a tabular form and the following situation:

    -Add two new lines

    -Enter invalid data (that I know will fail under validations)

    -Send page

    -Validations detect invalid data and the page is reloaded with validation messages

    The problem is that only the first added line is displayed. The second row (new) does not appear. When I look at the console I see the following js error: tabular.tabular is not defined. I looked at the page source and the second line are in the JS table APEX users to reload the page (if the content is there).

    I'm under APEX 4.2.2.00.11

    Thanks in advance,

    Martin

    Found the problem. In /libraries/apex/widget.tabular.js around the 361 line, it looks like:

    ...
    Starting at Line 357
                    // For SIMPLE CHECKBOX
                    if ( pDispTypeMap[ i ].indexOf( "SIMPLE_CHECKBOX" ) >= 0 ) {
                        $( "#" + pNewRowMap[ i ] + "_" + lNewRowIdentifier + "_01", apex.gPageContext$ ).each( function() {
                            lItem = $x( pNewRowMap[ i ] + "_" + lNewRowIdentifier + "_01" );
                            if ( lItem.value === pNewRowVals[ i ][ ( tabular.tabular.gNewRows - 1 ) ] ) {
                                $( this ).prop( "checked", true );
                            }
                        });
                    }
    

    On line 7 in above example (line 361 in actual file) tabular.tabular.gNewRows does not exist. It looks like a typing mistake and should probably be tabular.gNewRows.

    To fix in the compressed version change /libraries/apex/minified/widget.tabular.min.js and search for "tabular.tabular.gNewRows" and replace by "tabular.gNewRows".

    You will not file a bug to the APEX team report as it seems like it has been fixed in version 4.2.3. There may be a patch for this particular problem for 4.2.2 case however I was unable to find it.

    Martin

  • Loading of jquery ui - ReferenceError: jQuery is not defined

    I'm following a simple tutorial to add dragging capabilities to a composition.

    I added this code to the event creationComplete of the stadium:

    var = function onComplete() {} onComplete

    Alert('loaded"); --> fired

    SYM.$('blueDD'). Draggable();

    throw these errors in Firefox:

    //

    ReferenceError: jQuery is not defined

    TypeError: sym. $(...). movable is not a function

    }

    yepnope ({nope: [' js/jquery-ui.min.js'], complete: onComplete});

    JQuery UI is the most recent a (1.11.2)

    Issues related to the:

    * What I'm doing wrong? Maybe its because JQuery UI is an AMD - Module?

    * How can I find out which version of jquery edge is currently using?

    * Is it possible to "update" the version of jquery that is using edge of my own?

    Thanks, Ingo

    I assume you are using the latest version of edge animate which is 20141.

    The new version no longer has dependency on jQuery, so before you try to load the jQuery - UI.js, you must load the jQuery.js file.

    Then it should work.

    HTH,

    Vivekuma

  • Eception ReferenceError: cp is not defined

    When you download a course of HTML5 Captivate published (with questionnaire) I get the error:

    SyntaxError: ILLEGAL of unexpected token to eval (native) to b (assets/js/CPXHRLoader.js:36:374) to XMLHttpRequest. < anonymous > (assets/js/CPXHRLoader.js:37:45)

    Eception ReferenceError: cp is not defined


    What's new since I added the quiz even though, as I have not had any problems before. No idea what could be the cause and how to fix it?

    In case anyone else gets on this, my mistake was created by line breaks in Messages from Quiz results.

  • Element not defined by structure error

    Receiving an error when I run the code that says "Evaluation of the element is not defined in a structure CFML referenced as part of an expression.  I can't paste the code into the editor for some reason any.  Please click on http://pastebin.com/2A059LEE to go to the source code.  Please click on http://pastebin.com/31a2qEYS to go to the error page.  Any help would be greatly appreciated. 

    Actually no, it's more simple than that. On line 53, you set the value in a structure called "structJobType". On line 79, you reference a structure called "structJobStatus". Completely different struct.

  • [AIR 3.0] New JSON feature does not work in Flashpromanager.new: Error #1065: Variable JSON is not defined

    After the upgrade of the AIR SDK 3.0 in Flash Professional CS5.5, I found a few problems.

    First of all, the JSON class in the library of as3corelib.swc get now a few compile errors:

    1061: call to a possibly undefined method decode a reference of static type Class.

    1172: definition com.adobe.serialization.json:JSON could not be found.

    At first, I was completely puzzled, because I had the good ' import com.adobe.serialization.json.JSON; ' reference.

    and I got the "as3corelib.swc" referenced in my ActionScript properties, so how that was not found?

    Then, I discovered that it is because it is in conflict with the new internal JSON class included in AIR 3.0

    (perhaps it should have been called something else, to avoid conflicts with the own Adobe as3corelib library).

    The new native JSON class's decode() method. It is now called parse()

    OK, so I tried to use the new class JSON, but after changing the decode() with parse() and removing

    the "import com.adobe.serialization.json.JSON; ' reference, Flash tells me that"Variable JSON is not defined.

    Really? The JSON class is displayed in the window pop-up Flash Builder code completion,

    complete with its all new parse() and stringify() methods! So why it say it is not defined?

    Also, my SWF file gets compiled without error at all, so that checks that the new 3.0 libraries are in place.

    I get the error "JSON is not defined" when running in ADL, not at compile time. Why?

    In order to spend in the AIR SDK 3.0, I've followed this guide:

    http://kb2.Adobe.com/CPS/908/cpsid_90810.html

    I know that this is on the upgrade to AIR 2.7, but I guess the steps to switch to AIR 3.0 would be very similar.

    only with the AIR3.0 SDK package, instead of 2.7.

    I also took care of type version = '13' in all the XMLs, instead of version = "12" as indicated in this guide, which is intended to 2.7.

    Also, I followed this advice on the addition of -swf-version = 13 in the properties of the project in Flash Builder window:

    http://blogs.Adobe.com/Cantrell/archives/2011/08/how-to-use-the-air-3-Beta-SDK.html

    But this does not seem to make a difference, because, even if I use Flash Builder for editing code (which is usually used for Flex).

    my project is a Flash Professional project, not a Flex, and when you test the project, Flash Builder works Flash Professional

    to compile, then run adl.exe (it's the same thing that if you click on the option "control / essay film / in the AIR Debug Launcher (Mobile)" within Flash Pro).

    In the window 'settings of ActionScript"in Flash Professional, I also have the good airglobal.swc referenced (from the AIR SDK 3.0).

    and the same airglobal.swc is referenced in Flash Builder as well (in 'referenced libraries') in order to get the correct code completion.

    I tried all sorts of things to try to make it work, but no luck. Still getting the error "JSON is not defined" when running.

    I'm getting desperate in this regard. I'll have to return to AIR 2.7.1 to stop wasting time on this issue.

    BTW, I also have another problem unrelated (though maybe it happens for the same reason as the other problem).

    Now Flash Builder says the method getTime() in my code, as if it was no longer a method of an instance of class Date.

    I have a line where I ask the timestamp like this:

    TS = new Date () .getTime ();

    Worked perfectly well until now with AIR 3.0.

    Now, when hovering the mouse cursor over the orange icon "(?)" appearing to the left, Flash Builder says

    "Access of undefined property getTime. Why?

    Documentation AS3 says nothing about getTime() get depreciated any thing of the kind:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/date.html

    In fact, in the completion popup code to watch as Flash Builder, now, it is not any mention

    set or get methods, as you can see here:

    http://img836.imageshack.us/img836/4793/dateinstancepopup.png

    I guess I can use property hung up instead of . getTime() but I don't know why I'm getting all the methods I had before.

    Any ideas why this is happenning? Especially the dreaded error 'JSON is not set.

    Well, after a lot of tinkering, I think I've finally found a way to finally make it work!

    I created XML files modified with the profiles required for AIR 3.0 and after many tries, it finally works!

    I downloaded here: http://www.mediafire.com/?d5e761frl5px4

    Here are the steps needed to get AIR 3.0 works correctly:

    1. Place the three files in the folder "c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\Common\Configuration\Players.
    2. Then, make sure that you have unpacked the AIR SDK 3.0 in the folder "c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\AIR3.0" do not crush the contents of the folder "AIR2.6", as suggested by the "Overlay AIR SDK" article (linked in the post above). He gave me problems. It is preferable to use another separate folder. My XML files are pointing to this new folder "AIR3.0".
    3. In the folder "c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0 ' create a new folder named"AIR3.0 ". Inside this folder, copy the "airglobal.swc" file located in "c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\AIR3.0\frameworks\libs\air.
    4. Finally, you will need to keep the file "sample.xml - descriptor ' the ' c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\AIR2.6\samples" folder, but change the attribute xmlns to 'http://ns.adobe.com/air/application/3.0'.

    Yes, you must change this in the AIR2.6 folder, even if the SDK has been in AIR3.0. It's because of the way the publication settings work in Adobe Flash. It is hardcoded in a DLL, so that cannot be changed. Is not very intuitive.

    I think the AIR SDK installation should be much simpler than that! I know that Adobe AIR is intended for developers, not for end-users, but yet, all these procedures upgrade not well documented are a pain in the *. I lost a LOT of hours in this (more than half a day), with what should be a simple update!

    Adobe should make an SDK installation if we do not have to be tinkering with all these procedures errors whenever a new update is released!

    Well, I hope that these XML files are useful to someone and avoid more frustration.

    Kind regards

    OMA2k

    PD: BTW, I still have the problem of. getTime() described in my post above, but it is not very important.

    because I can still use the property hung up. Yet, it puzzles me why this is happening.

  • E4X - Variable is not defined

    Hi all

    I built an AIR application to store contact information in my office activity. The data from an XML file, and it was all working until I started fiddling around and broke. To draw the problem, I have built a test of 20 lines application but still can't make it work.

    I have a file xml with the following structure (it has about 100 knots contact):

    < contactSheet >
    < contact >
    Joe < firstName > < / name >
    < secondName > Bloggs < / secondName >
    < Country > UK < / country >
    < office > office towers < / office >
    < extension > 000 < / extension >
    < and > 000 000 000 < / WC >
    @work.com < email > < / email >
    < mobile > 0123456789 < / mobile >
    < / contact >

    < / contactSheet >

    In my application, I have a HTTPService with a result type of "e4x". On creationComplete I send this service and the result is processed by a method that implements a var called contactData:

    contactData = new XML (e.target.lastResult);

    If I then draw contactData ... Contact or contactData... contact. Country I get the results, I think, but then I try to trace the contacts of a certain country, with the help of contactData... contact. (country is "UK") and I get an error saying Error #1065: country Variable is not defined.

    I'm sure I had this job before and there is nothing that happens in the generation to break, so I'm stumped.

    Any suggestions gratefully accepted.

    Cheer

    Simple: some of your contacts have no node of 'country '.

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

  • ReferenceError: Error #1065: Variable is not defined.

    Hi people.

    Whatever I do (think) I get the following message in Flash CS3:

    "ReferenceError: Error #1065: Variable is not defined."

    I have no idea what causes it, and therefor I can't seem to fix it. I tried looking for answers online, but I got that should declare my classes in public, what I had already made.

    Even a very simple class that runs a command track of his 'the constructor method won't work. It still gives me this message even if I have all the variables or track orders or whatever it is.

    It's really annoying, so help me please :)

    A

    I removed the full stop after the document class in the FLA and it worked now! What a stupid mistake :)
    I'm the book Essential Actionscript 3.0, and looks like they want to do you this... which is obviously not the case. Thank you for taking the time to help me!

Maybe you are looking for

  • The DATA EXECUTION PREVENTION won't let me continue my game.

    DEP refused to turn it off for my game program.  DEP MUST be disabled for me to continue with my game. This is not the first time that this program has fubared my games.  I want to turn OFF DEP for THESE GAMES, or GET RID OF THE adj. (I'd rather my c

  • How to started chk dsk on a drive in Vista?

    I have an external drive which now ask me to chk dsk on start up and takes forever. I want to start it manually. How can I do it in Vista?

  • Cannot create the user account.

    I activated the account "guest" and even tried to create a new. Both times, it says "preparing your desktop" the first time I connect, then an error message appears on the way in which it cannot load Windows Mail, and then I get a blue screen - like

  • Latest Windows patches and the update wiped out my files and folders

    The last update of Windows that just happened on the 9th took all my original settings. My computer restarted and looked as if it was fresh from the factory. My files, folders, shortcuts, etc., all have disappeared. I found a restore point for the 07

  • My button blackBerry smartphones 'About' does not work HELP

    Hello fellow BB owners ive been tweaking and updating my new 8330 and it appears that now my about button does not respond. All other menus and sites work fine, but when I click on the subject of button it does not. Thanks in advance Jason