I have a following .mxml code which doesn't run and gives an error directory/flexcode.html file not found.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="onLoad(event)" layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function onLoad(event:Event):void
{
Alert.show("Hello");
}
]]>
</mx:Script>
</mx:Application>
A couple suggestions here for debugging:
1) Create a new project. Perhaps something in your project is corrupted.
2) Create a new workspace. This is probably not the issue, but sometimes workspaces get corrupted, especially when upgrading Flex/Flashbuilder.
3) Ensure you're using an updated version of FLex-builder, now called Flashbuilder. Flashbuilder 4.5 is quite stable, from my experience.
Related
I am trying to use SimplePHPUnit package in Sublime Text 3, but when I am issuing the run command, it only and always returns:
[Finished in 0.4s with exit code 1]
[cmd: phpunit --stderr]
[dir: C:\Apache24\htdocs]
[path: ...]
phpunit.xml:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
colors="true"
strict="false"
bootstrap="phpUnitAutoload.php"
verbose="true">
</phpunit>
Is this package suposed to be working on windows? If so, any idea how to get it to work properly?
I am using phpunit-6.2.1 and php 7.0.6 on Windows 10
My phpunit.cmd was not properly set or accessible in the PATH. Hence it was not found by SimplePHPUnit.
I'm using latest Intellij to work with flex projects.
in the mxml files i have the following:
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" ...
all the urls here are in red and are complaining that "URI is not registered"
any ideas?
Directly open: Setting - > Project Setting - > Schemas and DTDs,it can be set according to the prompt.
Getting "invalid application descriptor: Unknown namespace: library://ns.adobe.com/flex/spark"
when using adl (command-line debugger) for a flash-builder 4.6 adobe air project
its a very simple project
mxml file starts like this :
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
invoke="onInvoke(event)" visible="false"> ...
i read about a similer problems, where solution was to swap the
xmlns value to "http://ns.adobe.com/air/application/3.1"/.
swapping values gave me another error :
"invalid application descriptor: application filename must have a non-empty value"
also,
the whole reason for this is that i have a program that must run my air app
so i need a way to run a flash-builder project in the command-line
im using adl
is this the best way ?
edit :
the descriptor file code :
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/3.1">
<id>exporter</id>
<filename>exporter</filename>
<name>exporter</name>
<versionNumber>0.0.0</versionNumber>
<initialWindow>
<content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
<autoOrients>false</autoOrients>
<fullScreen>false</fullScreen>
<visible>false</visible>
</initialWindow>
</application>
I'm attempting to use loadStyleDeclarations on a remote SWF with the following code (using Flex 4.6):
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" initialize="GetFonts()">
<fx:Script>
public function GetFonts():void {
styleManager.loadStyleDeclarations("http://dev.mycompany.com/fonts/fonts.swf");
fontLabel.setStyle('fontFamily', 'Arial');
}
</fx:Script>
<s:Label id="fontLabel" text="This should be Arial!" top="10" />
</s:View>
As a Flex web application, this works perfectly (both the target swf and the consuming application on the same server, different folders). As a Flex mobile (iOS) application, an error is encountered:
ReferenceError: Error #1065: Variable mx.core::RSLData is not defined.
at style_mx_core_FlexModuleFactory/info()[style_mx_core_FlexModuleFactory.as:77]
at mx.core::FlexModuleFactory()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:107]
at style_mx_core_FlexModuleFactory()[style_mx_core_FlexModuleFactory.as:35]
VerifyError: Error #1014: Class mx.modules::ModuleBase could not be found.
VerifyError: Error #1014: Class mx.core::FontAsset could not be found.
ReferenceError: Error #1065: Variable style__embed__font_Arial_medium_normal_657631602 is not defined.
ReferenceError: Error #1065: Variable _class_embed_css_Assets_swf_1392078518_mx_skins_cursor_BusyCursor_762190923 is not defined.
Any ideas? Found one solution to add "-static-link-runtime-shared-libraries=true" to the build path but that did not resolve the issue.
For some reason trace does not work on when I put trace into my ActionScript files. I use the Flex SDK to build Adobe Air applications. I am currently on Flex SDK 4.5.1 and Adobe Air 2.7.
I have checked that idl is not running, can't find a trace of it ( pun not intended ).
I have also added mm.cgf to ~/Library/Application\ Support/Macromedia, that hasn't worked either.
Any other suggestions?
Update:
Some suggested my app, so create basic HelloWorld.mxml
<?xml version="1.0" encoding="UTF-8"?>
<s:WindowedApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
title="Hello World">
<fx:Script>
<![CDATA[
trace("Hello World");
]]>
</fx:Script>
<s:Label
text="Hello AIR"
horizontalCenter="0"
verticalCenter="0"
/>
</s:WindowedApplication>
And HelloWorld.app.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/2.7">
<id>samples.flex.HelloWorld</id>
<versionNumber>0.1</versionNumber>
<filename>HelloWorld</filename>
<initialWindow>
<content>HelloWorld.swf</content>
<visible>true</visible>
<width>400</width>
<height>200</height>
</initialWindow>
</application>
But it still doesn't work. Provided the code, that by some weird chance it could be the app.
I've solved it. I found it on this website http://forums.adobe.com/thread/761395
I was trying to get trace() to work in Mac. I compiled my AIR app using the flex command line compiler "amxmlc" and included parameters -debug=false and -omit-trace-statements=false. Then i ran the application with adl your-app.xml -nodebug and i was able to get the traces into terminal.