Flex 4 - 柔性纸帮助
我正在尝试让 Flexpaper 文档查看器在我的 Flex 应用程序中工作,但似乎没有任何运气。
flexpaper - http://flexpaper.devaldi.com/default.jsp
我已经下载了 swc文件位于此处 - http://code.google.com/p/flexpaper/downloads/detail?name=FlexPaper_1.4.1_SDK_4.0_beta_swc.zip&can=2&q=
我已将 pdf 转换为 swf 并已将其放在我的项目 bin-debug 文件夹中。
当我运行项目时,该组件似乎显示在屏幕上,但查看器中没有加载文件。组件右上角的加载图标不停地旋转。
我想知道我做错了什么,为什么 Flexpaper 无法找到/加载我的 pdf swf?
这是我正在使用的项目中的代码。
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:fp="com.devaldi.controls.flexpaper.*">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fp:FlexPaperViewer width="960" height="450" Scale="0.6" SwfFile="test.swf" />
</s:Application>
有什么想法吗?
I'm trying to get the flexpaper document viewer working in my flex app, but don't seem to be having any luck.
flexpaper - http://flexpaper.devaldi.com/default.jsp
I've downloaded the swc file here - http://code.google.com/p/flexpaper/downloads/detail?name=FlexPaper_1.4.1_SDK_4.0_beta_swc.zip&can=2&q=
I've converted my pdf to a swf and have placed it in my projects bin-debug folder.
The Component seem to display on screen when I run my project but no file loads within the viewer. The loading icon in the upper right hand side of the component just spins and spins.
I'm wondering what I'm doing wrong, why can't flexpaper find/load my pdf swf?
Here's the code from my project I'm using.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:fp="com.devaldi.controls.flexpaper.*">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fp:FlexPaperViewer width="960" height="450" Scale="0.6" SwfFile="test.swf" />
</s:Application>
Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我想通了。
看来 SWF2PDF 默认添加了一个内置查看器。我更改了编辑->选项下的设置,并将其设置为“无查看器”重新导出,并将新文件添加到我的项目的 bin-debug 文件夹中。
现在一切似乎都运转良好!
Ok so I figured it out.
It appears that SWF2PDF adds a built in viewer by default. I changed the setting under edit->options and set it to ‘No viewer’ re-exported and add the new file into the bin-debug folder of my project.
Everything seems to work fine now!