It looks like you are using Flex 4. It's not supported...
Shouldn't I be using Flex 4? All the documentation says that extensions should be built in Flash Builder 4, which I assume means a priori Flex 4, ne c'est pas?
You can use the Flex 3 Framework with FB 4. Flex 3.4 to be precise...
I am trying to use;
SDK Version :
from within Flash Builder Eclipse Plug-In :
Version 4.0.1 Build: 277662
I have some compile-time problems:
Description Resource Path Location Type
Could not resolve <fx:Declarations> to a component implementation. flex_simple_client_example.mxml /flex_simple_client_example/src line 11 Flex ProblemHere is my MXML file:<?xml version="1.0" encoding="utf-8"?><s:Applicationxmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="library://ns.adobe.com/flex/spark"xmlns:mx="library://ns.adobe.com/flex/mx"><fx:Declarations></fx:Declarations></s:Application>It seems it's related with the compatibility issue of FB and the Flex SDK that you mentioned in your posts.I would like to know if there is a compatibility matrix between these two products. Furthermore there is two builders that you can configure your IDE which is Flex and Maven Builder. Can I use the above configuration by means of configuring a maven builder in FB 4 Eclipse Plug-In? Or it's best to switch to a officially supported versions for these two products?Best Regards,Salim
Just to reiterate Harbs's point above, the use of any Flex SDK other than "Extension Builder 3.4" is unsupported for building CS5 extensions. This is a patched version of Flex 3.4 SDK which is provided with the CS SDK/ExtensionBuilder.
Your code compiles fine for me in EB + FB4 plugin + Eclipse 3.5.1, if you've not already done so you could check that the Flex SDK your project is compiling with is not 4.0/4.1.
Right click the project and go to Properties -> Flex Compiler -> Flex SDK Version. Check that "Use a specific SDK: Flex 4.1" is selected. Then rebuild the project by going to Project -> Clean... and select your project from the list.
Thank you for this quick reply. I understand that this is not the appropriate forum for this type of question. Bu my configuration is exactly the same as yours, I tried many combinations. But I noticed something new for me which you stated in your post, namely "EB" I haven't heard what's it? In addition, I am on a Windows 7 Box. Does it make a difference? I don't understand what do you mean by saying "if you've not already done so you could check that the Flex SDK your project is compiling with is not 4.0/4.1." I have Flex SDK 4.1 and 3.5 installed. I tried both of them and it seems 3.5 would compile with mx component tags. But I want to use Flex 4 SDK and spark components. Am I the only person experiencing these difficulties?
EB == Extension Builder.
You are trying to use Flex 4 components (i.e. Spark). You can't.
CS SDK / Extension Builder will only work with the 3.4 sdk provided.
By "EB" I mean Extension Builder
I don't understand what do you mean by saying "if you've not already done so you could check that the Flex SDK your project is compiling with is not 4.0/4.1." I have Flex SDK 4.1 and 3.5 installed.
I just meant you should check that your project is definitely building with Flex 4.1 SDK (and not, for example, using a workspace default SDK).
Technical reason why Flex 4.1 is not supported (though your app should still compile at least): CS extensions are loaded as sub-applications of a single Flex app called StageManager. StageManager is built with the Extension Builder 3.4 SDK (patched version of Flex 3.4 SDK). Loading of sub-applications built with a more recent version of the Flex SDK is unsupported by the Flex SDK.