XML of LiveDocs code example does not work

Hello, I am new to Flex with a background in JS, HTML, CSS and PHP. I am trying to learn by following examples of LiveDocs. Example XML file loading, found here, will not work for me. I created a basic XML file and pasted the code in an MXML application inside '< mx:Script >' vanilla. When I run the application, I get two errors number 1120 similar on the line indicating "myLoader.addEventListener ("complete", xmlLoaded);". Error messages are telling me that "telephone" and "xmlLoaded" of properties is not valid. How can I fix this to work properly?

Here is an example of the XML file that I use.

There are several problems with this article of dip. The url does not appear to exist, so I put the xml data in a data4.xml file in a local xml file 'data' that should be a subdirectory of the directory containing the file mxml app.

In addition, the variables must be declared outside a function to be global, but the addEventListener line must be in a function, so I put it in an init() function to call on the initialization of the application.

Tags: Flex

Similar Questions

  • Rich Textbox example does not work in Windows 7

    In the past, I use the example of the Rich Textbox (\samples\userint\activex\richTextxbox.prj) in Windows XP (CVI 2010 SP1).

    Now, I noticed that this example does not work in Windows 7 64 bit because the ActiveX is not registered on the system (see error.jpg).

    This control is not installed by CVI IDE itself?

    How can I get this example to work on my Win 7 64 bit machine?

    Hey Vix

    It seems that the Rich Textbox control component provided by one of the VB Runtime is more included by default with Windows 7.

    I was able to manually record using Regsvr32 ActiveX control as described in the following Microsoft KB.

    I managed to download the ActiveX control needed here and there, you must copy the .ocx for the ActiveX control in your C:\Windows\SysWOW64 directory. Open an administrator command prompt and run "REGSVR32 RICHTX32. OCX'.

    SysWOW64 is the "Windows on Windows" emulation directory which is used for the execution of 32-bit controls in a 64-bit environment.

    I realize this isn't the best solution by making the deployment of applications a little more complicated, another solution would be to use another control ActiveX RTF like the one here: http://www.lebans.com/richtext.htm.

    Thank you

  • Code hints does not work.

    code hints does not work. Options are checked in the preferences, but no list of suggestions appears when I write the code.

    Any ideas? (Sorry for my English)

    Nicolas

    I find the problem!

    There seems to be a conflict with the port with an extensionnel screen display!

    When I start Dreamweaver with display port unplugged, dreamweaver works fine. And I can plug it after and it stills work. Other wise, if I plug the display port before launching dreamweaver, code hinting doesn't work anymore.

    Thanks to you all

  • 10.2 PushCollector example does not work

    Hi, I tried to compile and test the PushCollector example for 10.2 SDK but I does not compile properly and the message did not provide sufficient information to be able to fix it.

    Examples of projects are at this location: https://github.com/blackberry/Cascades-Samples/blob/master/pushCollector/10.2/

    E:\bbndk-beta\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: jump incompatible... /... /pushCollectorCommon/arm/libpushCollectorCommon.so in the research - lpushCollectorCommon

    make [2]: leaving directory E:/area of work/pushCollector / x 86

    make [1]: leaving directory E:/area of work/pushCollector / x 86

    E:\bbndk-beta\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: could not find lpushCollectorCommon.

    CC: E:/bbndk-beta/host_10_2_0_15/win32 / x 86/usr/bin/ntox86-ld caught signal 1

    make [2]: * [o-g/pushCollector] error 1

    make [1]: * [debug] error 2 make: * [Simulator-Debug] error 2

    Sorry, I'm noob in developing c ++. Is it possible by using various projects such as libraries? I have not used before projects before library in c ++ and I do not know how to configure them properly.

    It is possible to use this library with an absolute path?

    https://github.com/BlackBerry/Cascades-samples/BLOB/master/pushCollector/10.2/pushCollector/.cprojec...

    I was able to run the example.

    The order in the sequence of generation is very important. When I built the correct order, that I was able to correctly generate the package of the project PushCollector and then I could deploy on the device. The sequence is, in case anyone has the same problem:

    -Clean all projects

    -Create a 'pushCollectorCommon '.

    -Create a 'pushCollectorHeadless '.

    -Create a 'pushCollector '.

    -Run 'pushCollector' to the device (I used a Dev Alpha B with 10.2.0.1445, the Simulator does not work)

  • Adding images dynamically - tutorial for examples does not work

    I am using the SDK Gold and work through the tutorials. I want to add dynamically images of C++. The tutorial that I use is here:

    https://developer.BlackBerry.com/cascades/documentation/dev/integrating_cpp_qml/ (under the heading "Injecting C++ objects in QML").

    I have copy and paste the main.cpp, TestApp.hpp and TestApp.cpp into a new project. He compiled and ran on my device, but when I click on the button 'Add the container' seg application vulnerabilities and ends.

    I understand that this is caused by a NULL pointer, so I added:

    This-> mRootContainer = new bb::cascades::Container();

    for the Builder. Now it does not segfault when I press the button 'Add the container', but again, it does not actually add the container (it adds nothing visible).

    How can I use the concepts described in this tutorial to add an image at run time?

    I managed to understand. The example provided in the tutorial defnitely badly, which is very annoying and frustrating for those of us learning to code for BB10. Not only that, but the "barrier to entry" is hard enough, and if Blackberry to their ecosystem to flourish, documentation and tutorials must be accurate and easy to follow.

    The constructor should be something like:

    TestApp::TestApp(bb::cascades::Application *app) : QObject(app)
    {
      QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
      qml->setContextProperty("injection", this);
      Page *appPage = qml->createRootObject();
      mRootContainer = appPage->findChild("rootContainer");
      app->setScene(appPage);
    }
    
  • RichList code example does not

    I tried to use the code example provided for the RichList UI component, but it did not work. I get illegalStateException or another similar error. I didn't with my richlist photos so I changed it to look like this:

    List of RichList =

    new RichList (getMainManager (), false, 1, 1);

    List.Add)

    new Object [] {"Device 1"});

    BTW, when I copied and tried the unmodified original code, it didn't always work (I got the photos stored in the folder too and still did not work)

    If anyone can explan the parameters to the constructor in plain English he could really help me, thanks.

    Nevermind, I solved it. I had to add super(Manager,NO_VERTICAL_SCROLL) to the upper part of the constructor, and then I had to change the bitmap to bitmapfield and set it like this:

    BitmapField bmp = new BitmapField (Bitmap.getBitmapResource ("pic.png"))

    When I used just bitmap he says illegalstateexception and says that I can only use channels, fields and images bitmap, but bitmaps don't work lol.

  • code javascript does not work in a .jspx page

    For the experienced:

    I am trying to improve some pages in my application. In one of the pages, there are only two elements in the form: an input field (for the user to upgrade his user name) and a "submit" button. What I am trying to do are:

    1 make the entry in short area when the page is loaded, so that the user can start typing immediately without having to fumble for the mouse and click the entry so that he can focus.
    2. once the user has typed the username, by pressing the Enter key to send the form instead of fumbling again for the mouse and click on the submit button.

    These are not hard to make. I wrote a page of test, and here are excerpts from the test page:

    < pre >
    & lt; < b > body onload = "document.getElementById('username').focus (); "< /b > & gt;
    & lt; form method = "post" action = "http://host.domain.edu/pages/staffLogin.jspx" & gt;
    & lt; table & gt;
    & lt; TR & gt; & lt; TD & gt; UID: & lt; table & gt; & lt; TD & gt; & lt; Entry id < b > = "username" < /b > type = "text" name = "LoginName" & gt; & lt; table & gt; & lt; /TR & gt;
    & lt; TR & gt; & lt; TD & gt; & lt; table & gt; & lt; TD & gt; & lt; input type = "submit" value = "Submit" & gt; & lt; table & gt; & lt; /TR & gt;
    & lt; / table & gt;
    & lt; / form & gt;
    & lt; / body & gt;
    < / pre >

    This page is two things I want to accomplish, in Internet Explorer and FireFox. I didn't need to add any code for the Enter key to act for the submit button - it behaves this way by default.

    But not in the page of my application, with snippets of code here:

    < pre >
    & lt; f: view & gt;
    & lt; AFH:HTML... & gt;
    & lt; AFH:head... & gt;
    & lt; script type = "text/javascript" & gt; < b > self.resizeTo (900,1000); < /b > & lt; / script & gt;
    & lt; meta... / & gt;
    & lt; / afh:head & gt;
    & lt; AFH:body binding = "#{staffLogin.body1}" id = "organe1" < b > onload = "document.getElementById('inputText1').focus (); "< /b > & gt;
    ... ...
    & lt; AF:inputText binding = "#{staffLogin.inputText1}" secret = "true" < b > id = "inputText1" < /b > "
    required = "true" requiredMessageDetail = "password required".
    value = "#{staffLogin.submittedPassword} '"
    < b > onkeydown = "if(event.keyCode == 13) () document.getElementById('commandButton1').click;' < /b > / & gt;"
    & lt; AF:CommandButton text = "Submit".
    Binding = "#{staffLogin.commandButton1}"id < b > = "commandButton1" < /b > "
    action = "#{staffLogin.commandButton1_action}" / & gt;
    < / pre >

    What I'm doing wrong? DOM is recognized in .jspx? Note that the self.resizeTo (900,1000) < code >; < code > part of the work.

    Thank you very much!


    Newman

    Hello

    Use af:document instead of afh: html (etc.)

    http://download.Oracle.com/docs/CD/B25221_05/Web.1013/e18745/tagdoc/core/document.html

    initialFocusId

    the id of the component that you want to only be when appears the entire page. Accessibility mode must be on 'inaccessible' for this function to be on. This attribute is not supported on the following types of agent: pda, phone, voice.

    AF:form allows you to define the shape

    http://download.Oracle.com/docs/CD/B25221_05/Web.1013/e18745/tagdoc/core/form.html

    defaultCommand

    The id attribute of the control whose action button would be invoked by default this form on hit enter on any of the fields of the form input.

    You don't need JavaScript at all!

    Frank

  • Request activation code offline does not work...

    I try to activate my costume CS6 offline because I have no internet connection on my desktop. However, the series/code number of application do not work when I try to download an offline response code of (http://www.adobe.com/go/getactivated) for offline activation. Adobe doesn't seem to have a phone number to call me for help to solve the problem, and I have 7 days to activate the product. I have my serial number and I can generate a request code on my PC, but I can't get a response code.

    Use a browser that allows cookies and pop ups, contact support to adobe for hourly pst by clicking here and, when available, click on "still need help," https://helpx.adobe.com/contact.html

  • My redemption code DOE does not work

    My redemption do not work

    Hi marcellar,

    For help, please visit this link: redemption code help

    Kind regards

    Meenakshi

  • Example of bar code reader does not work with daramatrix white on black

    I downloaded, built and installed the example of barcoderreader on a Z10.  I was very impressed by its ability to detect and decode codes data matrix.  However, most of our codes data matrix are then on a black background.  I found that the barcodereader would not detect them.  I looked at the camera SDK to see if there was a negative mode, but could not find one.  Is there anyway to make easier to read all about the black datamatrix codes?

    For this you probably want to look at the CustomBarcodeScanner (https://github.com/blackberry/Cascades-Samples/tree/master/custombarcodescanner)

    It shows you how you can implement your own scanner barcode using the camera of Cascades API and included ZXing library. From there it would be up to you as to how you detect actually reversed the barcode.  You might try to reverse the buffer overview before he gets to ZXing, or provide your own implementations of one of the classes it uses which makes the inversion (they are licened Apache open source) or find another approach.

    I don't know which would be the best way, but I'd be interested to hear how it goes.

  • Drawbot example does not work on AE 2014

    Hi all

    I have a rather strange question when executing the example of the CCU.

    Whenever I use the SDK of AE 2014, all right.

    Whenever I use the 2015 AE SDK example works fine for AE/2015.3 2015 but hangs on AE 2014.

    Dig a little in the code that I saw that the problem occurs when drawbot suite is acquired.

    In the function "AEFX_AcquireDrawbotSuites" in the AEFX_SuiteHelper.c, the third acquisition fails with the following error: PF_Err_BAD_CALLBACK_PARAM

    Any ideas why that may happen?

    (AEFX_AcquireDrawbotSuites) PF_ErrPF_InData* in_data,/ * > > * /.
    PF_OutData* out_data,/ * > > * /.
    DRAWBOT_Suites* suitesP)/ < * < * /.

    {

    PF_ErrERR = PF_Err_NONE;
    If (suitesP == NULL) {}
    out_data-> out_flags | = PF_OutFlag_DISPLAY_ERROR_MESSAGE;

    PF_SPRINTF (out_data-> return_msg, "more NULL pointer passed to AEFX_AcquireDrawbotSuites");

    ERR = PF_Err_UNRECOGNIZED_PARAM_TYPE;
    }

    If (! err) {}
    ERR = AEFX_AcquireSuite (in_data, out_data, kDRAWBOT_DrawSuite, kDRAWBOT_DrawSuite_VersionCurrent, NULL, (void *) & suitesP-> drawbot_suiteP);
    }
    If (! err) {}
    ERR = AEFX_AcquireSuite (in_data, out_data, kDRAWBOT_SupplierSuite, kDRAWBOT_SupplierSuite_VersionCurrent, NULL, (void *) & suitesP-> supplier_suiteP);
    }
    If (! err) {}
    ERR = AEFX_AcquireSuite (in_data, out_data, kDRAWBOT_SurfaceSuite, kDRAWBOT_SurfaceSuite_VersionCurrent, NULL, (void *) & suitesP-> surface_suiteP);
    }
    If (! err) {}
    ERR = AEFX_AcquireSuite (in_data, out_data, kDRAWBOT_PathSuite, kDRAWBOT_PathSuite_VersionCurrent, NULL, (void *) & suitesP-> path_suiteP);
    }
    return err;

    }

    This is because the kDRAWBOT_SurfaceSuite_VersionCurrent macro points to a version of the suite of surface which is not supported in AE2014. I had this problem and found the best way to get around it is to edit the AEFX_SuiteHelper.c file directly, replacing the kDRAWBOT_SurfaceSuite_Version1, then:

    ERR = AEFX_AcquireSuite (in_data, out_data, kDRAWBOT_SurfaceSuite, kDRAWBOT_SurfaceSuite_Version1, NULL, (void *) & suitesP-> surface_suiteP);

    You can change the place DrawbotSuite.h, by changing the macro kDRAWBOT_SurfaceSuite_VersionCurrent to kDRAWBOT_SurfaceSuite_Version1 and leaving AEFX_SuiteHelper.c as it was.

  • The httpfileaccess. ColdMigration for SDK4.0 example does not work

    Hello

    With SDK2.5, this example com.vmware.samples.httpfileaccess.ColdMigration works for me.

    However, with SDK4.0, it no longer works.

    I got the following error message, the problem is to record the vmx:

    Join the Virtual Machine...

    Exception in thread "main" AxisFault

    faultCode: ServerFaultCode

    faultSubcode:

    faultString: fault. RestrictedVersion.summary

    faultActor:

    faultNode:

    faultDetail:

    SecurityErrorFault:null

    fault. RestrictedVersion.summary

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

    at java.lang.Class.newInstance0(Class.java:355)

    at java.lang.Class.newInstance(Class.java:308)

    to org.apache.axis.encoding.ser.BeanDeserializer. (BeanDeserializer.java:90)

    at com.vmware.vim.SecurityError.getDeserializer(SecurityError.java:83)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)

    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)

    at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)

    at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)

    at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)

    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)

    at org.apache.xerces.parsers.AbstractSAXParser.startElement (unknown Source)

    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement (unknown Source)

    to org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$ FragmentContentDispatcher.dispatch (unknown Source)

    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse (unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse (unknown Source)

    at org.apache.xerces.parsers.XMLParser.parse (unknown Source)

    at org.apache.xerces.parsers.AbstractSAXParser.parse (unknown Source)

    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)

    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke (MustUnderstandChecker.java:62)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

    at org.apache.axis.client.Call.invoke(Call.java:2767)

    at org.apache.axis.client.Call.invoke(Call.java:2443)

    at org.apache.axis.client.Call.invoke(Call.java:2366)

    at org.apache.axis.client.Call.invoke(Call.java:1812)

    at com.vmware.vim.VimBindingStub.registerVM_Task(VimBindingStub.java:21299)

    at com.vmware.samples.httpfileaccess.ColdMigration.registerVirtualMachine(ColdMigration.java:165)

    at com.vmware.samples.httpfileaccess.ColdMigration.coldMigration(ColdMigration.java:67)

    at com.vmware.samples.httpfileaccess.ColdMigration.main(ColdMigration.java:401)

    I appreciate all help.

    Thank you very much.

    Shi

    NP. Don't forget price 'useful' or 'correct' points

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    Twitter: @lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Page of code signing does not work

    The steps:

    (1) open the URL with IE 8: https://www.blackberry.com/SignedKeys/nfc-form.html

    (2) select "I wish a device Code signing key.

    (3) fill in all information

    4) click the button 'send '. The demand is not there and get an error "Please ensure that all required fields are filled."

    Does anyone have a solution for this?

  • LDAP example does not work

    Hello.

    There is a sample script for the use of LDAP in the developer's guide of VCO, which generates an error when I run a workflow that contains this example. Error message indicates that ActiveDirectory object is not set despite the fact that the text in the guide says I can "cut, paste and adapt these examples in your scripted elements" (which implies that these are examples of work).

    Am I missing something here?

    Thank you.

    Hello

    You must install the Microsoft plug-in to be able to use this example. You can download the plugin here: vmo_microsoft_4_0_0_4240.vmoapp [[md5] | http://download3.VMware.com/Software/VMW-Preview/VCO/4.0.0.4240_GC4/vmo_microsoft_4_0_0_4240.vmoapp.MD5]

    I will change the documentation to make this clear.

    Thank you and best regards,

    Stuart (lead documentation vCO)

  • BookMIFWash example does not work in FM 10

    Hello!

    I try to get the example of BookMIFWash (available from C:\Program Files\Adobe\AdobeFrameMaker10\Samples\ScriptsAndUtilities\BookMIFWash) to work in FM 10, but I still get the following error message when I opened FM:

    «Failed to initialize client API C:\Program Files\Adobe\AdobeFrameMaker10\fminit\BookComponentMIFWash.dll.»

    Look for errors in the section APIClients from C:\Program Files\Adobe\AdobeFrameMaker10\maker.ini,verify that the client program is, and make sure you have enough space to start the Exchange client. »

    As explained in the comments of the file fm_bookmifwash.c, I followed the recommended steps:

    1. Copy the BookComponentMIFWash.dll to the fminit on my computer folder.
    2. In the [APIClients] section of the maker.ini file, add ""MIFwash = Standard, washing of the MIF, fminit\BookComponentMIFWash.dll, all the ". "
    3. Open FrameMaker.

    Does anyone have an idea of what's going on?

    Thank you very much!

    NAT

    NAT,

    Given that the options provided by the customer are for books of FM, the client adds the "Book Utilities" menu item when a book is to the point.

    Nakshatra

Maybe you are looking for

  • This site is a virus?

    Sometimes, when I access the site: www.animatoons.com.br, the screen changes and enter this site: http://createspaceforlife.org/update.html. It is a site of virus?modify the links do no clickable - j99

  • r7000 has no internet access at 2.4 ghz but works fine at 5 GHz

    Hello Someone at - he dealth with this before. computers and devices mobile phones can connect to the router to 2.4 ghz with good signal but do not have access to the internet. devices of same connect at 5 GHz and access the internet. the router stat

  • MTS file extension

    I use Vista 64 and Windows Media 11.    Cannot display all of the MTS files with this combination, but can view the MTS files and video on a Windows 7/Windows Media 12 combination.   Is it possible that I can see these films/videos on my Vista/WMP 11

  • Access denied to my drive H: on windows vista. How to regain access?

    Ok? I; m do not know what I did exactly... I am the administrator of my desktop computer. I have Windows Vista. I created another user account, and I wanted to restrict this other user account access to my H: drive and my drive J: (my external hard d

  • Unable to burn a CD: message received: connect to burner

    Connect to a CD burner I have windows vista and I recently went to make a cd but it says 'Connect to burner' before the accident I had just done a cd about a week ago. How can I connect my laptop to the burner?