Make sure the mx.swc is in the set of libraries for the project.
Thank you for your reply. But that alone doesn't solve the problem.
As you can see in the image below the mx.swc is in the library path:
However when I run the above example, I still get this stream error because the mx_4.5.1.xxxxx.swf is missing in bin-debug as zou can see here:
As I wrote in my post above, it seems I need to add at least one IVisualElement declaration to the code to force the swf into the bin-debug folder.
I'd really like to understand why.
To add an IVisualElement or to uncheck the "use debug RSLs" option seems to me like a workaround. I'd like to understand the difference between declaring amx:HierarchicalData or a mx:Alert (e.g.)
I don't know, maybe this question is better asked in the FlashBuilder forum. If so, then let me know.
I’m a bit confused by your description of the problem. The title says 4.5.1, your actual message says 4.5.0. Is this a project you are migrating from 4.5.0? Makes me think there is some setting about RSLs that needs updating. Only the RSLs that provide classes used by the application are put in bin-debug. If you don’t use an mx: class, then mx_4_xxx.swf or swz shouldn’t be in the output folder.
I think the copying of the files is done by the tool though, so maybe you have a configuration that is fooling it.
Hey, no there's no migration or anything like this. I just ried this with with both SDKs and accidently posted the wrong title here. Both SDKs produce this error
I get this error when I create a totally fresh flex project and simply add for example a HierarchicaData Class to the declarations tag.
So the application looks like the code snippet in my starting post. When I build this the corresponding mx_4.5.xxx.swf/swz is missing.
Can you reproduce that or is there something going totally wrong on my side?
As soon as I declare any kind of mx Class that implements IVisualElement, everything is fine and I get the mx RSL
Should I try a newer release of the SDK or is this totally unrelated.
A colleague of mine is still running FB 4 and he's not able to reproduce this error, because he has other RSLs
Stripping out unused RSLs is new to 4.5. I can reproduce it. Please file a bug at bugs.adobe.com/jira