Skip navigation
kearn7777
Currently Being Moderated

can't create Modules

Feb 17, 2010 1:28 PM

Hi Folks

 

I just updated to Flex4.0 build 13875 (in Flash Builder Beta 2), which solved a long standing problem of not being able to embed fonts. Now that can be done with an @font-face declaration within an <fx:Style> tag.

 

However, now I'm trying to create modules (by right-clicking on the main.mxml app and choose New > MXML Module) and once the module is made, I'm given:

 

Could not resolve <Module> to a component implementation.

 

This line is highlighted in the module when double-clicking the little red error thing-y:

 

xmlns:mx="library://ns.adobe.com/flex/halo" layout="absolute" width="400" height="300">

 

What's the solution?

 

Also, where does the "flex_langRef_4" file that's downloaded to go with this version of SDK? The help that opens with this version doesn't mention the change from mx to ns. I wonder what else I'm missing and how to get to the appropriate help for this version...

 

Thank you for your attention.

 

Kearney Buskirk

 
Replies
  • Currently Being Moderated
    Feb 18, 2010 7:21 AM   in reply to kearn7777

    Hi,

     

    this could be an issue of flashbuilder not using the correct libraries, have you tried creating a new work space and then with a clean slate tried to create a module. Or even just create an mxml file and past in a module script to see if it compiles

     

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

    <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"

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

       xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute" width="400" height="300">

    <fx:Declarations>

    <!-- Place non-visual elements (e.g., services, value objects) here -->

    </fx:Declarations>

    </mx:Module>

     

    Just to note the latest build of FB has no issues with module creation.

     

     

    David.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 18, 2010 9:56 AM   in reply to kearn7777

    When using a newer SDK 4 nightly build with Flash Builder Beta 2, please follow this workaround http://blogs.adobe.com/jasonsj/2010/02/workaround_for_using_the_latest _nightly_sdk_40_builds_with_flash_builder_beta_2.html.

     

    There were changes to the location of playerglobal.swc in the SDK. Beta 2 does not handle those changes without the workaround described above.

     

    Jason San Jose

    Quality Engineer, Flash Builder

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 18, 2010 10:07 AM   in reply to kearn7777

    Hi,

     

    I am on a pre-release program so I continually update FB, I just wanted to assure you that Adobe wouldn't let an issue like the templates not functioning correctly slip through, I think that your problem is to do with changes in the SDK since fb beta 2 was released, the code I pasted in was generated by FB. One other thing what FB install are you using mac/win, standalone or eclipse plugin.

     

    Have you looked at the posts relating to problems with fb beta 2 and nightly builds of the SDK, there is a sticky at the top of the forums, this may help.

     

    David

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 18, 2010 10:09 AM   in reply to Jason San Jose

    Hi Jason,

     

    I shouldn't have multiple windows open at the same time, didn't see you had already mentioned the sdk fixes

     

     

    David

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 18, 2010 10:11 AM   in reply to Jason San Jose

    Hello

    Recently adobe announced oficial flash player for  android for the end

    of the first semester.

     

    http://www.pcworld.com/article/189338/adobe_shows_flash_and_air_apps_f or_google_android.html?tk=rss_main

     

    This new said also that it is going to be posible to display adobe air

    apps.My question is if do you know if the adobe air application

    for android phones are going to be posible to be developed with flex

    builder?

     

    thanks

     

    Jason San Jose escribió:

    When using a newer SDK 4 nightly build with Flash Builder Beta 2, please follow this workaround http://blogs.adobe.com/jasonsj/2010/02/workaround_for_using_the_latest _nightly_sdk_40_builds_with_flash_builder_beta_2.html.

     

    There were changes to the location of playerglobal.swc in the SDK. Beta 2 does not handle those changes without the workaround described above.

     

    Jason San Jose

    Quality Engineer, Flash Builder

    >

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 18, 2010 10:32 AM   in reply to jpdelatorrep

    Hi,

     

    Some light reading for you, this is about flex/air for mobiles.

     

     

    http://labs.adobe.com/technologies/flex/mobile/

     

     

    David.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 13, 2010 12:10 AM   in reply to Jason San Jose

    Hi.
    TanQ for your workaround described.
    I did these things, but I have problem with making Module, yet.


    The same error:
    Could not resolve <Module> to a component implementation.

    I'm using the lateast nightly build sdk version flex_sdk_4.1.0.14651

    What should I do?!

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 13, 2010 10:17 PM   in reply to Mohammad Pourhossein

    What are your mxml namespaces?  Maybe you need <mx:Module

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 16, 2010 3:48 AM   in reply to Flex harUI

    <mx:Module> or <Module>

    both of them make the same error!



     
    |
    Mark as:
  • Currently Being Moderated
    Mar 16, 2010 9:00 AM   in reply to Mohammad Pourhossein

    Show more code with mxml namespaces and/or try with a new small project.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 17, 2010 2:15 AM   in reply to Flex harUI

    You can see that, in these images:

     

    s1.jpg

     

    s2.jpg

     

    I did all things that Jason has been said in his blog (in this link), and restart my flash builder for several times...

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 17, 2010 9:48 AM   in reply to Mohammad Pourhossein

    Fix your mx namespace declaration. Guess I left that out, I'll update my post.

     

    xmlns:mx="library://ns.adobe.com/flex/mx" ... not "halo"

     

    Jason San Jose

    Software Engineer, Flash Builder

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points