Problems running custom components with Flex

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Problems running custom components with Flex

    Hi,

    I'm trying to follow the tutorial in this PDF document (Chapter 2:Creating
    Basic Components in Flash MX 2004):

    [url]http://download.macromedia.com/pub/documentation/en/flex/15/flex_components_them[/url]
    es.pdf


    I'm using Flex 1.5 and Flash 8 IDE

    For some reason and although I followed the authors instructions Flex fails
    recognizing my new component:

    The following code:

    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*">
    <greensquare/>
    </mx:Application>

    Returns:

    1 Error found.

    Error /main.mxml:3
    Don't know how to parse element "*:greensquare". It is not a known type or a
    property of mx.core.Application.

    I followed the author's troubleshooting comments regarding this error message:

    This means that the compiler could not find the SWC file, or the contents of
    the SWC file did not list the component. The MXML tag must match the symbolName
    for the component. Also, ensure that the SWC file is in a directory that Flex
    searches, and ensure that your xmlns property is pointing to the right place.
    Try moving the SWC file to the same directory as the MXML file and setting the
    namespace to "*" as the following example shows: <mx:Application
    xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*">

    Checked and rechecked but could not find the problem.

    Any ideas?

    Thanks in advance,
    Loso.



    Loso Guest

  2. Similar Questions and Discussions

    1. running 32bit dcom components on x64
      I'm running windows 2008 x64, and have currently a 32 bit component called: ACBPdf. It's used in creation of PDF documents from data pulled from...
    2. How to load Flex 2.0 components on Flex 1.5 application
      Hello, I am currently working on an Flex 1.5 application and my client wants to import 2.0 components into it. Can we achieve that? if so how is...
    3. Organizing Flex Custom components
      This may sound dumb, but for me unorganized projects is one of my biggest pet peves. I have a project that I am working on that uses alot of...
    4. can custom-made flash components use flex drag-and-drop?
      hello, I am making a visual component in the flash IDE that I want to then incorporate into a flex application. If possible, I would like to have...
    5. Cannot find Flex server when running app in Flex Builder1.5
      :confused; After installing Flex and FlexBuilder 1.5 and setting up the "Sites" as described in the tutorials when running a flex ap in Flex...
  3. #2

    Default Re: Problems running custom components with Flex

    I found the problem; I'd like to post it here because I think other developers
    might equator this?

    The first tutorial in this article did not work for me (F8 and Flex1.5), the
    sample did work when I placed the component class in a package.


    Loso Guest

  4. #3

    Question While running flex application for nearly 2 weeks continuously. What will happen?

    Get me and share the experience.
    rajupchn Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139