Get Flex modules from ASP MVC
We´re developing an ASP MVC application witch the View (aspx) has a Flex embed. This aspx/flex view is composed by a flex application and several modules.
So, when we call the application url (http://localhost:9090/MyProject/Flex/Index), the server invoke the method the will return the ActionResult that represents this action, in this case the ~/Views/Flex/Index.aspx (with the Flex app). However when the ModuleLoader, in the Flex application, try to load a module an error occurs. The problem is that the Flex application can´t directly access the modu开发者_StackOverflowles folder (~/Views/Flex/modules/module.swf).
Are there any way to get the module through an ASP MVC action? Or the best approach is to allow the access to this folder through web.config?
Again, sorry for the poor english!
Thanks, André
The views folder should be used for aspx/ascx views. You'll want to put .swf files in in a content folder like ~/Content/modules/module.swf.
精彩评论