标签: apache-flex

对于Flex/Flash后端的ColdFusion(来自PHP)?

我开始学习Flex/Flash并且来自PHP背景.似乎ColdFusion一直是Flash/Flex后端的首选语言.但是(对我来说很重要)我不打算建立严重依赖Flash(用于搜索引擎优化等)的网站,只是将Flash放在其中的一小部分的网站.我正在考虑这个原因,我不会将我的后端工作从PHP切换到ColdFusion.由于我是技术新手,我不确定这是不是正确的想法.有人可以帮助比较PHP和ColdFusion(我假设它是Adobe最喜欢的后端语言)吗?在我上面所说的内容中也会有所帮助.我不会在ColdFusion中执行我的后端工作,从而失去了大量的库,功能,便利性等.

php apache-flex flash coldfusion

4
推荐指数
2
解决办法
768
查看次数

合并2 arraycollection - Flex 3

我如何将两者合并在一起?

一个arraycollection将包含0 ... 30的值,对象名称为"sxx",另一个arraycollection从数据库中检索.

apache-flex

4
推荐指数
1
解决办法
6858
查看次数

Actionscript3/Flex中的HTML特殊实体代码

我有一个Flex/Actionscript 3应用程序,它在Text元素中显示RSS提要.它删除了任何HTML格式,但它没有正确处理HTML特殊实体代码 - 它呈现&mdash为文字字符串而不是用em-dash等替换它.有没有系统的方法我可以使它正确处理这些代码,或者我是否需要手动替换那些正则表达式的字符串?


编辑: 是相关的Flex的行为的一些方面:既text和htmlText妥善处理有限的字符集,没有进一步的调整- ,,&lt 等(事实上,实际处理他们一点更好比,因为后者对待作为字面低于字符),但有更大的一组字符(. ,和许多其他人)没有正确处理-至少不是默认.&gt&nbsptexthtmlText<&deg&mdash

html apache-flex actionscript-3

4
推荐指数
1
解决办法
4629
查看次数

以编程方式获取或设置Datagrid中的单元格值

在使用预填充数据网格的Flex 4中,如何以编程方式获取或设置特定值,IE我不会使用selectedItems等.

例如,如何引用第4行第6列中单元格的值.

请提前感谢您的帮助.

克雷格

apache-flex datagrid actionscript-3 flex4

4
推荐指数
1
解决办法
9599
查看次数

在 <compc /> ant 任务中使用编译器常量

我正在将现有的构建脚本从<mxmlc />to转换<compc />为生成 swc。

但是,构建失败,给出错误:

[compc] C:\xxxx\LogViewer.mxml(32):  Error: Access of undefined property VERSION.
[compc]
[compc] private static const VERSION:String = CONFIG::VERSION;
Run Code Online (Sandbox Code Playgroud)

在我的 ant 任务中,我定义了以下内容:

    <compc compiler.as3="true" output="${output.dir}/${swc.name}.swc" incremental="true" fork="true" maxmemory="512m" compiler.show-deprecation-warnings="false">
        <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
        <source-path path-element="${srcdir}" />
        <include-sources dir="${srcdir}" includes="*" />
        <external-library-path dir="${swc.libs.dir}" append="true">
            <include name="*.swc" />
        </external-library-path>
        <external-library-path dir="${output.common.swc.dir}" append="true">
            <include name="*.swc" />
        </external-library-path>
        <compiler.define name="CONFIG::VERSION" value="${build.version}" />
        <compiler.define name="CONFIG::RELEASE" value="${config.release}" />
        <compiler.define name="CONFIG::DEBUG" value="${config.debug}" />
        <compiler.define name="CONFIG::AUTOMATION" value="false" />
    </compc>
Run Code Online (Sandbox Code Playgroud)

这种方法可以很好地完成任务,但现在失败了。

在 compc 中使用编译器常量的正确方法是什么?

apache-flex ant mxmlc compc

4
推荐指数
1
解决办法
4606
查看次数

Flex 4 - 单元格中带按钮的DataGrid

如何在数据网格的单元格中添加按钮控件?我希望在datagrid中的一列中的每一行都有一个按钮.数据网格控件行不需要以任何方式进行选择.

apache-flex datagrid button flex4

4
推荐指数
1
解决办法
8531
查看次数

将文件从Flex上传到WCF REST Stream问题(如何在REST WS中解码多部分表单帖子)

该系统是与WCF REST Web服务通信的Flex应用程序.我正在尝试将文件从Flex应用程序上传到服务器并遇到一些问题,我希望有人可以帮忙.我在Flex应用程序中使用FileReference来浏览和上传此处定义的文件:

http://blog.flexexamples.com/2007/09/21/uploading-files-in-flex-using-the-filereference-class/

然后,我在WCF REST Web服务中使用流(在调试器中显示为System.ServiceModel.Dispatcher.StreamFormatter.MessageBodyStream)接收文件(使用WCF 4 REST服务的项目类型)

[WebInvoke(Method = "POST", UriTemplate = "_test/upload")]
public void UploadImage(Stream data)
{
    // TODO: just hardcode filename for now
    var filepath = HttpContext.Current.Server.MapPath(@"~\_test\testfile.txt");
    using (Stream file = File.OpenWrite(filepath))
    {
        CopyStream(data, file);
    }
}
private static void CopyStream(Stream input, Stream output)
{
    var buffer = new byte[8 * 1024];
    int len;
    while ((len = input.Read(buffer, 0, buffer.Length)) > 0)
    {
        output.Write(buffer, 0, len);
    }
}
Run Code Online (Sandbox Code Playgroud)

注意:此帖子中使用的CopyStream方法:如何将流保存到C#中的文件?

该文件保存没有任何问题.我遇到的问题是该文件包含的信息比我想要的多.以下是保存文件的内容(源文件仅包含"这是文件的内容"):

------------ae0ae0Ef1ae0Ef1ae0gL6gL6Ij5cH2
Content-Disposition: form-data; name="Filename"

testfile.txt …
Run Code Online (Sandbox Code Playgroud)

c# apache-flex rest wcf stream

4
推荐指数
2
解决办法
9015
查看次数

错误#3219 AIR中的NativeProcess

我在AIR 2.6 for Windows和Mac Os平台上有一个程序.使用NativeProcess类来执行我已包含在项目中的本机应用程序.

在Windows中所有工作正常,但在Mac不工作.

代码是:

var executable:File = File.applicationDirectory.resolvePath('bin/mac/convert') 
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = executable;
nativeProcessStartupInfo.arguments = params;
nativeProcessStartupInfo.workingDirectory = workingDirectory;

if(NativeProcess.isSupported)
    start(nativeProcessStartupInfo);
Run Code Online (Sandbox Code Playgroud)

错误在start(...)行:

Error #3219: The NativeProcess could not be started. 'launch path not accesible'.
Run Code Online (Sandbox Code Playgroud)

可执行var是一个带有路径的文件在debug =/Users/awakening/Documents/workspace/flashbuilder/SDTDV/bin-debug/bin/mac/convert

它说存在=真.发布版本的问题相同.

提前谢谢你.

apache-flex air macos actionscript native

4
推荐指数
1
解决办法
4270
查看次数

AS3:目标与当前目标之间的差异

可能的重复:
e.target 和 e.currentTarget 之间的差异

我真的不明白这两者之间的区别

event.target and              

event.CurrentTarget and explanation.
Run Code Online (Sandbox Code Playgroud)

有人可以用一个简单的例子向我解释这一点吗?

apache-flex flash actionscript-3

4
推荐指数
1
解决办法
1万
查看次数

Flex 4.6 中心图像

我正在使用 Adob​​e Flex 4.6,我有这个图像:

<mx:Image source="assets/logo.png" horizontalAlign="center" verticalAlign="middle"></mx:Image>
Run Code Online (Sandbox Code Playgroud)

图像出现,但它没有水平或垂直居中,如何使该图像居中?

我还尝试过以下方法:

<mx:Canvas width="100%">
        <mx:HBox horizontalCenter="0" verticalCenter="0">
            <mx:Image source="assets/logo.png" horizontalAlign="center" verticalAlign="middle"></mx:Image>
        </mx:HBox>
    </mx:Canvas>
Run Code Online (Sandbox Code Playgroud)

还是什么都没有,我的形象不会居中

apache-flex flash actionscript actionscript-3

4
推荐指数
1
解决办法
224
查看次数

标签 统计

apache-flex ×10

actionscript-3 ×4

flash ×3

actionscript ×2

datagrid ×2

flex4 ×2

air ×1

ant ×1

button ×1

c# ×1

coldfusion ×1

compc ×1

html ×1

macos ×1

mxmlc ×1

native ×1

php ×1

rest ×1

stream ×1

wcf ×1