[英]how to make swf player with flex builder?
I make Sampal.swf with adobe flash. 我用Adobe Flash制作Sampal.swf。 It has some external links to load some swf files into this main Sampal.swf.
它具有一些外部链接,可以将一些swf文件加载到此主Sampal.swf中。 Now I want to run this main swf with flex builder application.
现在,我想使用Flex Builder应用程序运行此主SWF文件。 I used mx:SWFLoader to that.
我使用了mx:SWFLoader 。 This is code I had given...
这是我给的代码...
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:ns1="*"
applicationComplete="init()" name="Content" showStatusBar="false">
<mx:Script>
<![CDATA[
private function init():void
{
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
]]>
</mx:Script>
<mx:SWFLoader x="6" width="770" height="336" source="E:\Office\Sampal.swf"/>
</mx:WindowedApplication>
When I run the application Main swf work properly. 当我运行该应用程序时,主swf可以正常工作。 But that external links not works.
但是该外部链接不起作用。 If I click that kind of link, It gives this Error message.
如果我单击这种链接,则会显示此错误消息。 Error #2044: Unhandled ioError:.
错误#2044:未处理的ioError :。 text=Error #2035: URL Not Found.
text =错误#2035:找不到URL。 URL: file:///Flash/IRI02-I-07-I.swf
网址:file:///Flash/IRI02-I-07-I.swf
Please give me some solution... 请给我一些解决方案...
According to the documentation : 根据文档 :
The value of the source property represents a relative or absolute URL;
a ByteArray representing a SWF, GIF, JPEG, or PNG;
an object that implements IFlexDisplayObject;
a class whose type implements IFlexDisplayObject;
or a String that represents a class.
It appears that you have specified a disk path. 看来您已经指定了磁盘路径。 Change this to a URL, or use another method to put the data in a format that SWFLoader can use.
将其更改为URL,或使用其他方法将数据放入SWFLoader可以使用的格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.