打印

问个弱弱的问题!

我用expression blend 做的另一个3d效果的文件
想在浏览器里面使用,如何使用?
hi.baidu.com/sr521
3d效果的文件?你是值用摄像机(camera)做的动画么?
如果是的话 silverlight是不支持的 只有在WPF里才可以
Silverlight支持伪3D
O 是的 但是 如果做普通的效果
浏览器如何浏览呢  直接浏览的时候出现错误 !
hi.baidu.com/sr521

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!
如果是WPF,可以编译为XBAP格式,类似于http://ttpdownload.bl.uk

TOP

这个是错误提示信息 如何将他引用到网页里面呢?
Startup URI: E:\expression blend\mydemo\democn\Page1.xaml
Application Identity: file:///C:/WINDOWS/Microsoft.Net/Framework/v3.0/WPF/XamlViewer/XamlViewer_v0300.xbap#XamlViewer_v0300.application, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=msil/XamlViewer_v0300.exe, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=msil, type=win32

System.Windows.Markup.XamlParseException: 'Class' attribute does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml' namespace. Line '5' Position '2'.
   在 System.Windows.Markup.XamlParser.ThrowException(String message, Int32 lineNumber, Int32 linePosition)
   在 System.Windows.Markup.XamlParser.ThrowException(SRID id, String value, Int32 lineNumber, Int32 linePosition)
   在 System.Windows.Markup.XamlParser.WriteDefAttribute(XamlDefAttributeNode xamlDefAttributeNode)
   在 System.Windows.Markup.XamlParser.WriteDefAttributeCore(XamlDefAttributeNode xamlDefAttributeNode)
   在 System.Windows.Markup.XamlParser.ProcessXamlNode(XamlNode xamlNode, Boolean& cleanup, Boolean& done)
   在 System.Windows.Markup.XamlParser.ReadXaml(Boolean singleRecordMode)
   在 System.Windows.Markup.XamlParser.GetParseMode()
   在 System.Windows.Markup.XamlTreeBuilder.ParseFragment()
   在 System.Windows.Markup.TreeBuilder.Parse()
   在 System.Windows.Markup.XamlReader.LoadAsync(Stream stream, ParserContext parserContext)
   在 MS.Internal.AppModel.AppModelKnownContentFactory.XamlConverter(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
   在 MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
   在 System.Windows.Navigation.NavigationService.GetObjectFromResponse(WebRequest request, WebResponse response, Uri destinationUri, Object navState)
   在 System.Windows.Navigation.NavigationService.HandleWebResponse(IAsyncResult ar)
   在 System.Windows.Navigation.NavigationService.<>c__DisplayClassc.<HandleWebResponseOnRightDispatcher>b__8(Object unused)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   在 System.Windows.Threading.DispatcherOperation.InvokeImpl()
   在 System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   在 System.Threading.ExecutionContext.runTryCode(Object userData)
   在 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Windows.Threading.DispatcherOperation.Invoke()
   在 System.Windows.Threading.Dispatcher.ProcessQueue()
   在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   在 System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   在 System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   在 System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   在 System.Windows.Threading.Dispatcher.Run()
   在 System.Windows.Application.RunDispatcher(Object ignore)
   在 System.Windows.Application.StartDispatcherInBrowser(Object unused)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   在 System.Windows.Threading.DispatcherOperation.InvokeImpl()
   在 System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   在 System.Threading.ExecutionContext.runTryCode(Object userData)
   在 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Windows.Threading.DispatcherOperation.Invoke()
   在 System.Windows.Threading.Dispatcher.ProcessQueue()
   在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   在 System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   在 System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)


-----------------------

PresentationHost.exe v3.0.6920.0 (vista_rtm_wcp.061020-1904) - C:\WINDOWS\system32\PresentationHost.exe
ntdll.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\ntdll.dll
kernel32.dll v5.1.2600.2945 (xpsp_sp2_gdr.060704-2349) - C:\WINDOWS\system32\kernel32.dll
ADVAPI32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\ADVAPI32.dll
RPCRT4.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\RPCRT4.dll
USER32.dll v5.1.2600.3099 (xpsp_sp2_gdr.070308-0222) - C:\WINDOWS\system32\USER32.dll
GDI32.dll v5.1.2600.3099 (xpsp_sp2_gdr.070308-0222) - C:\WINDOWS\system32\GDI32.dll
msvcrt.dll v7.0.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\msvcrt.dll
ole32.dll v5.1.2600.2726 (xpsp_sp2_gdr.050725-1528) - C:\WINDOWS\system32\ole32.dll
SHELL32.dll v6.00.2900.2951 (xpsp_sp2_gdr.060713-0009) - C:\WINDOWS\system32\SHELL32.dll
SHLWAPI.dll v6.00.2900.3121 (xpsp_sp2_gdr.070418-1302) - C:\WINDOWS\system32\SHLWAPI.dll
urlmon.dll v6.00.2900.3121 (xpsp_sp2_gdr.070418-1302) - C:\WINDOWS\system32\urlmon.dll
VERSION.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\VERSION.dll
WININET.dll v6.00.2900.3121 (xpsp_sp2_gdr.070418-1302) - C:\WINDOWS\system32\WININET.dll
CRYPT32.dll v5.131.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\CRYPT32.dll
MSASN1.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\MSASN1.dll
OLEAUT32.dll v5.1.2600.2180 - C:\WINDOWS\system32\OLEAUT32.dll
IMM32.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\IMM32.DLL
LPK.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\LPK.DLL
USP10.dll v1.0420.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\USP10.dll
comctl32.dll v6.0 (xpsp.060825-0040) - C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
uxtheme.dll v6.00.2900.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\uxtheme.dll
AST.dll v1.0.0.2 - C:\Documents and Settings\Administrator\桌面\ast\AST.dll
WINSPOOL.DRV v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\WINSPOOL.DRV
WS2_32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\WS2_32.dll
WS2HELP.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\WS2HELP.dll
MSCTF.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\MSCTF.dll
Yhelper.dll v3, 1, 0, 1028 - C:\PROGRA~1\Yahoo!\ASSIST~1\Yhelper.dll
NTMARTA.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\NTMARTA.DLL
WLDAP32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\WLDAP32.dll
SAMLIB.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\SAMLIB.dll
CLBCATQ.DLL v2001.12.4414.308 - C:\WINDOWS\system32\CLBCATQ.DLL
COMRes.dll v2001.12.4414.258 - C:\WINDOWS\system32\COMRes.dll
xpsp2res.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\xpsp2res.dll
PresentationHostDLL.dll v3.0.6920.0 (vista_rtm_wcp.061020-1904) - C:\WINDOWS\Microsoft.Net\Framework\v3.0\WPF\PresentationHostDLL.dll
mscoree.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\system32\mscoree.dll
Secur32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\Secur32.dll
mlang.dll v6.00.2900.2530 (xpsp.040919-1030) - C:\WINDOWS\system32\mlang.dll
dfshim.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\system32\dfshim.dll
mscorwks.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
MSVCR80.dll v8.00.50727.762 - C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\MSVCR80.dll
mscorlib.ni.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\eca539f182cd1f4e815ffa0657067581\mscorlib.ni.dll
System.ni.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System\8b663ed61834a14799004a32f9d24402\System.ni.dll
WindowsBase.ni.dll v3.0.6920.0 (vista_rtm_wcp.061020-1904) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\WindowsBase\df5ab158e2de4149ace44075853b0dcf\WindowsBase.ni.dll
PresentationCore.ni.dll v3.0.6920.0 (vista_rtm_wcp.061020-1904) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationCore\574bca5a6109fc44b835b95034814561\PresentationCore.ni.dll
PresentationFramework.ni.dll v3.0.6920.0 (vista_rtm_wcp.061020-1904) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\b025bb93d04dfc45a57a32a6c96c2789\PresentationFramework.ni.dll
msctfime.ime v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\msctfime.ime
actxprxy.dll v6.00.2900.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\actxprxy.dll
msi.dll v3.1.4000.2435 - C:\WINDOWS\system32\msi.dll
SXS.DLL v5.1.2600.3019 (xpsp_sp2_gdr.061019-0414) - C:\WINDOWS\system32\SXS.DLL
PresentationUI.ni.dll v3.0.6920.0 (vista_rtm_wcp.061020-1904) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationUI\7c59bd60c2446b449a99f06d1b3253e8\PresentationUI.ni.dll
rsaenh.dll v5.1.2600.2161 (xpsp.040706-1629) - C:\WINDOWS\system32\rsaenh.dll
mscorjit.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll
PresentationFramework.Classic.ni.dll v3.0.6920.0 (vista_rtm_wcp.061020-1904) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\6bcaf3045e2220498d8c72d905f6dbee\PresentationFramework.Classic.ni.dll
System.Configuration.ni.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\17db41822689b94396331ed1e1da45d4\System.Configuration.ni.dll
System.Xml.ni.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Xml\7b471c067fe92743be440da92de4dbb7\System.Xml.ni.dll
MilCore.dll v6.0.5840.16386 (vista_rtm_wcp.061020-1904) - C:\WINDOWS\system32\MilCore.dll
PSAPI.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\PSAPI.DLL
d3d9.dll v5.03.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\d3d9.dll
d3d8thk.dll v5.03.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\d3d8thk.dll
WINMM.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\system32\WINMM.dll
diasymreader.dll v8.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll
mscorlib.resources.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\assembly\GAC_MSIL\mscorlib.resources\2.0.0.0_zh-CHS_b77a5c561934e089\mscorlib.resources.dll
hi.baidu.com/sr521

TOP

仔细看一下这句话就知道了:System.Windows.Markup.XamlParseException: 'Class' attribute does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml' namespace. Line '5' Position '2'.

你这个XAML有Code-behind,所以不适合在IE中打开。

TOP

那如何用blend 像flash那样应用在网页里面
hi.baidu.com/sr521

TOP

编译为XBAP格式的。
或者你直接使用XAMLPad来写XAMl就可以了

TOP

谢谢明白了
hi.baidu.com/sr521

TOP